templates/themes/theme/common/menu.html.twig line 1

Open in your IDE?
  1. <ul>
  2.     {% for item in menu %}
  3.     <li>
  4.         <a href="{{ item.slug }}" class="{{ item.slug == currentUrl ? 'active' : '' }}" {% if item.new_window %}target="_blank"{% endif %}>{{ item.navtitle }}</a>
  5.         {% if item.children is defined and item.children|length > 0 %}
  6.             <div class="sub-menu">
  7.                 <div class="container">
  8.                     <div class="menu-cols">
  9.                         {% include "@theme/common/menu.html.twig" with { 'menu' : item.children, 'currentUrl' : currentUrl } only %}
  10.                     </div>
  11.                 </div>
  12.             </div>
  13.         {% endif %}
  14.         {% if item.isdynamic and item.dynamic_items|length > 0 %}
  15.             {% for item in item.dynamic_items %}
  16.                 <li class="dynamic"><a href="{{ item.slug }}">{{ item.icon|raw }}{{ item.navtitle }}</a></li>
  17.             {% endfor %}
  18.         {% endif %}
  19.     </li>
  20.     {% endfor %}
  21. </ul>