src/Notaris/FrontendBundle/Resources/views/module/mobile_subsite_subnav.html.twig line 1

Open in your IDE?
  1. {% for section in subsite.sections|filter(section => section.parent is null and section.isActive and section.showNavigation) %}
  2. <li class="{% if currentslug is defined %}{% if currentslug == section.slug %}active{% endif %}{% endif %}">
  3. {% if section.redirectUrl %}
  4.     {% if 'rekenmodule' in section.redirectUrl or 'calcul' in section.redirectUrl %}
  5.         {% set rekenmodule = "rekenmodule" %}
  6.     {% endif %}
  7. {% else %}
  8.     {% set rekenmodule = '' %}
  9. {% endif %}
  10.         <a class="u-color-black" href="{% if section.redirectUrl %}{{ section.redirectUrl }}{% else %}{{ path('notaris_frontend_subsite_detail', {'slug': subsite.slug, 'slugdetail': section.slug }) }}{% endif %}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ section.navigation | raw  }}">{{ section.navigation | raw }}</a>
  11.         {% if currentslug is defined %}
  12.             {% if currentslug == section.slug %}
  13.                 <ul>
  14.                     {% for children in section.children|filter(children => children.isActive) %}
  15.                         <li {% if currentslug2 is defined and currentslug2 == children.slug %}class="active"{% endif %}>
  16.                         {% if children.redirectUrl %}
  17.                             {% if 'rekenmodule' in children.redirectUrl or 'calcul' in children.redirectUrl %}
  18.                                 {% set rekenmodule = "rekenmodule" %}
  19.                             {% endif %}
  20.                         {% else %}
  21.                             {% set rekenmodule = '' %}
  22.                         {% endif %}
  23.                             {% if 'notaris_frontend_tv' in app.request.get('_route') %}
  24.                                 <a class="u-color-black-60" href="{% if children.redirectUrl %}{{ children.redirectUrl }}{% else %}{{ path('notaris_frontend_tv_detail', {'slug': children.slug }) }}{% endif %}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ children.navigation | raw  }}">{{ children.navigation | raw  }}</a>
  25.                             {% else %}
  26.                                 {% if currentslug == 'other-languages' or currentslug == 'other-languages-1' %}
  27.                                     <a class="u-color-black" href="{{ path('notaris_frontend_subsite_detail', {'slug': subsite.slug, 'slugdetail': children.slug}) }}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ children.navigation | raw  }}">{{ children.navigation  | raw  }}</a>
  28.                                 {% else %}
  29.                                     <a class="u-color-black" href="{% if children.redirectUrl %}{{ children.redirectUrl }}{% else %}{{ path('notaris_frontend_subsite_detail2', {'slug': subsite.slug, 'slugdetail': section.slug, 'slugdetail2': children.slug}) }}{% endif %}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ children.navigation | raw  }}">{{ children.navigation  | raw  }}</a>
  30.                                 {% endif %}
  31.                             {% endif %}
  32.                             {% if currentslug2 is defined and currentslug2 == children.slug %}
  33.                                 <ul>
  34.                                     {% for subchildren in children.children|filter(subchildren => subchildren.isActive) %}
  35.                                         <li {% if currentslug3 == subchildren.slug %}class="active"{% endif %}>
  36.                                         {% if subchildren.redirectUrl %}
  37.                                             {% if 'rekenmodule' in subchildren.redirectUrl or 'calcul' in subchildren.redirectUrl %}
  38.                                                 {% set rekenmodule = "rekenmodule" %}
  39.                                             {% endif %}
  40.                                         {% else %}
  41.                                             {% set rekenmodule = '' %}
  42.                                         {% endif %}
  43.                                             {% if currentslug == 'other-languages' or currentslug == 'other-languages-1' %}
  44.                                                 <a class="u-color-black" href="{{ path('notaris_frontend_subsite_detail2', {'slug': subsite.slug, 'slugdetail': children.slug, 'slugdetail2': subchildren.slug}) }}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ subchildren.navigation | raw  }}">{{ subchildren.navigation  | raw }}</a>
  45.                                             {% else %}
  46.                                                 <a class="u-color-black" href="{% if subchildren.redirectUrl %}{{ subchildren.redirectUrl }}{% else %}{{ path('notaris_frontend_subsite_detail3', {'slug': subsite.slug, 'slugdetail': section.slug, 'slugdetail2': children.slug, 'slugdetail3': subchildren.slug}) }}{% endif %}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ subchildren.navigation | raw  }}">{{ subchildren.navigation  | raw }}</a>
  47.                                             {% endif %}
  48.                                         </li>
  49.                                     {% endfor %}
  50.                                 </ul>
  51.                             {% endif %}
  52.                         </li>
  53.                     {% endfor %}
  54.                 </ul>
  55.             {% endif %}
  56.         {% endif %}
  57.     </li>
  58. {% endfor %}
  59. <li {% if 'notaris_frontend_subsite_news' in app.request.get('_route') %}class="active"{% endif %}>
  60.     <a class="u-color-black" href="{{ path('notaris_frontend_subsite_news', {'subsiteslug': subsite.slug}) }}" title="{{ "sn_actueel" | trans | raw }}">{{ "sn_actueel" | trans | raw }}</a>
  61. </li>
  62. <li {% if 'notaris_frontend_faq_subsite' in app.request.get('_route') %}class="active"{% endif %}>
  63.     <a class="u-color-black" href="{{ path('notaris_frontend_faq_subsite', {'subsiteSlug': subsite.slug}) }}" title="{{ "sn_vragenenantwoorden" | trans | raw }}">{{ "sn_vragenenantwoorden" | trans | raw }}</a>
  64. </li>
  65. <li {% if 'notaris_frontend_brochures' in app.request.get('_route') %}class="active"{% endif %}>
  66.     <a class="u-color-black" href="{{ path('notaris_frontend_brochures', {'subsiteSlug': subsite.slug}) }}" title="{{ "md_publi" | trans | raw }}">{{ "md_publi" | trans | raw }}</a>
  67. </li>
  68. <li {% if 'notaris_frontend_tv_detail' in app.request.get('_route') %}class="active"{% endif %}>
  69.     <a class="u-color-black" href="{{ path('notaris_frontend_tv_detail', {'slug': subsite.slug}) }}" title="{{ "sv_notaristv" | trans | raw }}">{{ "sv_notaristv" | trans | raw }}</a>
  70. </li>