From 96b9586842658f8c2948ff69821419843d21cd37 Mon Sep 17 00:00:00 2001 From: n3storm Date: Wed, 30 Jul 2025 17:03:12 +0000 Subject: [PATCH] Listado de servicios en frontpage a partir de subitems del menu servicios --- style.css | 3 +- views/frontpage-servicios.twig | 61 ++++++++-------------------------- views/frontpage.twig | 48 +------------------------- views/menu-servicios.twig | 29 ++++++++++++++++ 4 files changed, 46 insertions(+), 95 deletions(-) create mode 100644 views/menu-servicios.twig diff --git a/style.css b/style.css index 81c23f3..21fc24f 100644 --- a/style.css +++ b/style.css @@ -88,7 +88,8 @@ img { opacity:.9; } .linea { height:10px; border-radius:5px; } .linea-consultoria { background-color:#FF8D76; } -.linea-investigacion { background-color:#9dcd8f; } +.linea-investigacion, +.linea-investigacion-social-aplicada { background-color:#9dcd8f; } .linea-evaluacion { background-color:#fba451; } .linea-intervencion { background-color:#63B0B6; } .linea-formacion { background-color:#f3bd48; } diff --git a/views/frontpage-servicios.twig b/views/frontpage-servicios.twig index c7945bb..202893b 100644 --- a/views/frontpage-servicios.twig +++ b/views/frontpage-servicios.twig @@ -1,4 +1,15 @@
+
+
+
Servicios
+
+
+ + {{include('menu-servicios.twig',{'menu':menu_old})}} + +
+ +{#
Servicios
@@ -18,6 +29,8 @@
- - -{##} +#} diff --git a/views/frontpage.twig b/views/frontpage.twig index 454475c..9decdbd 100644 --- a/views/frontpage.twig +++ b/views/frontpage.twig @@ -28,36 +28,7 @@

- - {##} - -
+
{% include 'frontpage-servicios.twig' %} @@ -77,23 +48,6 @@
- {##} -
diff --git a/views/menu-servicios.twig b/views/menu-servicios.twig new file mode 100644 index 0000000..951e290 --- /dev/null +++ b/views/menu-servicios.twig @@ -0,0 +1,29 @@ +{% if menu %} + + {% for item in menu.items %} + + {% if item.slug == 'servicios' %} + + {% set icon = '' %} + + {% for subitem in item.children %} + {% if 'investigacion' in subitem.slug %} + {% set icon = 'icono_investigacion_2x.png' %} + {% else %} + {% set icon = 'icono_' ~ subitem.slug ~ '_2x.png' %} + {% endif %} + + + + {% endfor %} + + {% endif %} + + {% endfor %} + +{% endif %} \ No newline at end of file