From 803f86e4bef83dc81c591f0eb2f31b61621d4ad7 Mon Sep 17 00:00:00 2001 From: gustavo Date: Mon, 3 Nov 2025 11:03:58 +0000 Subject: [PATCH] refactor accesibilidad etiquetas y encabezados --- src/StarterSite.php | 8 +++++ views/layouts/base.twig | 6 ++-- views/partials/btn-search.twig | 2 +- views/partials/footer.twig | 20 +++++++++---- views/partials/logos-header.twig | 6 ++-- views/partials/menu-burger.twig | 2 +- views/partials/pagination-custom.twig | 2 +- views/partials/section-videos&opinion.twig | 6 ++-- views/partials/top-bar.twig | 11 +++++-- .../templates/page-conflictos-laborales.twig | 2 +- views/templates/page-industria.twig | 2 +- views/templates/page-noticias.twig | 2 +- views/templates/page-opinion.twig | 2 +- views/templates/page-portada.twig | 29 ++++++++++--------- views/templates/page-servicios.twig | 2 +- views/templates/page-videos.twig | 2 +- views/templates/single.twig | 8 ++--- 17 files changed, 69 insertions(+), 43 deletions(-) diff --git a/src/StarterSite.php b/src/StarterSite.php index 17e1c7d..f7f01f3 100644 --- a/src/StarterSite.php +++ b/src/StarterSite.php @@ -463,6 +463,14 @@ class StarterSite extends Site { $context['listContacts'] = $this->getListContacts(); $context['footer_1'] = get_field('footer_text_1', 'option'); $context['footer_2'] = get_field('footer_text_2', 'option'); + $footer_img_id = get_option('options_logo_footer'); + if ($footer_img_id) { + $context['footer_img'] = wp_get_attachment_image_url($footer_img_id, 'full'); + $context['footer_img_alt'] = get_post_meta($footer_img_id, '_wp_attachment_image_alt', true); + } else { + $context['footer_img'] = ''; + $context['footer_img_alt'] = ''; + } //Otras páginas $context['enlaces'] = $this->getEnlaces(); diff --git a/views/layouts/base.twig b/views/layouts/base.twig index 096da1b..22f206d 100644 --- a/views/layouts/base.twig +++ b/views/layouts/base.twig @@ -8,7 +8,7 @@ {{ function('wp_body_open') }} -
+
{% block header %}
{% include "partials/top-bar.twig" %} @@ -21,7 +21,7 @@
-