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 @@
-