templates/default/menu_item.html.twig line 1
{% for rama in arbol %}{% if rama.translations[locale] is defined %}{% set ramat = rama.translations[locale] %}{% else %}{% set ramat = null %}{% endif %}{% if ramat and rama.activo == 1 %}{% if ( deep == 0 and (zona == "principal")) %}{% set uriPath = uri|split('://')|last %}{% set uriPath = uriPath|split('/')|slice(1)|join('/') %}{% if rama.__children %}<li class="nav-item dropdown sub{{ deep }} {% if loop.last and false %}ms-auto{%endif%}"><a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">{{ ramat.titulo }}</a><ul d="subMenu-{{ramat.id}}" class="dropdown-menu subMenu{{ deep }} {{tema}} collapse cf" data-button="#sub-button-{{ramat.id}}" >{% if rama.__children %}{% include "default/menu_item.html.twig" with {'arbol': rama.__children, 'deep': deep + 1, 'tema':tema } %}{% endif %}</ul></li>{%else%}<li class="nav-item sub{{ deep }} {% if loop.last and false %}ms-auto{%endif%}"><a class="nav-link {% if uriPath == ramat.url or ramat.url == "/"~uriPath or ( ramat.url == '/blog' and blog == "1") %}active{% endif %}" aria-current="page" href="{% if rama.tipo != 'Enlace' %}{{ path('index') }}{% if ramat.url != "/" %}{% if locale != 'es' %}/{% endif %}{{ ramat.url }}{% endif %}{%else%}{{ ramat.url }}{%endif%}" target="{{ rama.target }}">{{ ramat.titulo }}<span></span></a></li>{# {{ ramat.url~"/" }} {{ "/"~uriPath }}#}{% endif %}{% else %}<li class="nav-item sub{{ deep }}"><a class="nav-link {% if uri == url('index')~ rama.translations.es.url %}active{% endif %}" aria-current="page" href="{% if rama.tipo != 'Enlace' %}{{ path('index') }}{% if ramat.url != "/" %}{% if locale != 'es' %}/{% endif %}{{ ramat.url }}{% endif %}{%else%}{{ ramat.url }}{%endif%}" target="{{ rama.target }}">{{ ramat.titulo }}<span></span></a></li>{# {% if rama.__children %}<ol id="subMenu-{{ramat.id}}" class="subMenu subMenu{{ deep }} collapse cf" data-button="#sub-button-{{ramat.id}}" >{% if deep == 0 %}<div class="container np">{% endif %}{% include "ZonaBundle:Default:menuItem.html.twig" with {'arbol': rama.__children, 'deep': deep + 1 } %}{% if deep == 0 %}</div>{% endif %}</ol>{% endif %} #}{% endif %}{% endif %}{% endfor %}