templates/includes/partials/ul-nav.html.twig line 1

Open in your IDE?
  1. <ul class="first-ul first-level flex ">
  2.     {% for page in mainNavigation %}
  3.         {% if (page.isVisible and menuRenderer.accept(page)) %}
  4.             <li class="first-li">
  5.                 <a href="{{ page.href }}" class="first-a {% if id == page.getId() %}act-link{% endif %}">{{ page.label }}</a>
  6.                 {% if page.hasPages %}
  7.                     <ul class="second-level">
  8.                         {% for child in page.pages %}
  9.                             {% if (child.isVisible and menuRenderer.accept(child)) %}
  10.                                 <li>
  11.                                     <a href="{{ child.href }}" {% if id == child.getId() %}class="act-link"{% endif %}>{{ child.label }}</a>
  12.                                 </li>
  13.                             {% endif %}
  14.                         {% endfor %}
  15.                     </ul>
  16.                 {% endif %}
  17.             </li>
  18.         {% endif %}
  19.     {% endfor %}
  20. </ul>