From 3573e34ff616a93a391775a1ca4f2b3515588330 Mon Sep 17 00:00:00 2001 From: n3storm Date: Wed, 30 Jul 2025 11:50:28 +0000 Subject: [PATCH] Enlaces para redes sociales desde acf --- src/AndairaSite.php | 7 +++++++ views/footer.twig | 16 +++++++--------- views/header.twig | 10 ++++++---- 3 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/AndairaSite.php b/src/AndairaSite.php index 6fb87ad..beb9345 100644 --- a/src/AndairaSite.php +++ b/src/AndairaSite.php @@ -152,6 +152,10 @@ class AndairaSite extends Site { function add_to_context( $context ) { // $context = parent::add_to_context($context); + + $context['menu'] = Timber::get_menu('menu-cabecera'); + $context['footer_menu'] = Timber::get_menu('menu-pie'); + // Servicios $svs = array( 'child_of' => 27, @@ -179,7 +183,10 @@ class AndairaSite extends Site { //Logotipos $context['logotipo_cabecera'] = get_field('logotipo_cabecera', 'option'); + $context['logotipo_destacado_portada'] = get_field('logotipo_destacado_portada', 'option'); + $context['enlaces_redes'] = get_field('enlaces_redes', 'option'); + //Mobile Detect $context['is_desktop'] = false; if ($this->detect->isMobile() == false and $this->detect->isTablet() == false) { diff --git a/views/footer.twig b/views/footer.twig index 0f87cd7..11a7fde 100644 --- a/views/footer.twig +++ b/views/footer.twig @@ -2,14 +2,6 @@