From c42fc0608af33b5ac8bb14712241f1fe7afb0047 Mon Sep 17 00:00:00 2001 From: n3storm Date: Thu, 31 Jul 2025 11:37:15 +0000 Subject: [PATCH] Listado otros servicios tirando de submenu Servicios para el template-servicio --- style.css | 3 +++ views/menu-otros-servicios.twig | 33 +++++++++++++++++++++++++++++++++ views/template-servicio.twig | 28 ++++++++++++++++++++++------ 3 files changed, 58 insertions(+), 6 deletions(-) create mode 100644 views/menu-otros-servicios.twig diff --git a/style.css b/style.css index cb215a3..c691aa7 100644 --- a/style.css +++ b/style.css @@ -357,6 +357,9 @@ nav.navbar, .nav-link, .navbar-brand, .navbar-brand img { transition: all 1s eas #section-1-bis { font-size:22px; transition: all .5s ease-in-out 0s; -webkit-transition: all .5s ease-in-out 0s; -moz-transition: all .5s ease-in-out 0s; -o-transition: all .5s ease-in-out 0s; -ms-transition: all .5s ease-in-out 0s; } +.frontpage-servicios-row .frontpage-servicios-title, +.frontpage-servicios-row .section-title { font-size:22px; } + #section-1-bis.pt-150 { padding-top:120px; } @media (min-width:768px) { diff --git a/views/menu-otros-servicios.twig b/views/menu-otros-servicios.twig new file mode 100644 index 0000000..a734fc6 --- /dev/null +++ b/views/menu-otros-servicios.twig @@ -0,0 +1,33 @@ +{% if menu %} + + {% set servicio = post.path|replace({'/servicios/': '','/': ''}) %} + + {% 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 %} + + {% if servicio not in subitem.slug %} +
+ +
+
{{ subitem.title }}
+
+
+ {% endif %} + + {% endfor %} + + {% endif %} + + {% endfor %} + +{% endif %} \ No newline at end of file diff --git a/views/template-servicio.twig b/views/template-servicio.twig index 05d0dfc..37dab20 100644 --- a/views/template-servicio.twig +++ b/views/template-servicio.twig @@ -118,7 +118,28 @@

Llámanos y solicita información adicional
915 42 83 43

+ +
+ {#
+
+

Otros servicios

+
+
#} + +
+ +
+
+
Otros Servicios
+
+
+ + {{include('menu-otros-servicios.twig',{'menu':menu_old})}} + +
+
+ {#}
@@ -127,12 +148,6 @@
- {#
- - {{include('menu-servicios.twig',{'menu':menu_old})}} - -
#} - {% for post in servicios %}
@@ -158,6 +173,7 @@
+ #}