modules/XC/CrispWhiteSkin/templates/web/customer/modules/CDev/SimpleCMS/primary_menu_items.twig line 1

Open in your IDE?
  1. {##
  2.  # Top menu
  3.  #}
  4. {% if not this.isSlidebar() %}
  5.   <ul class="nav navbar-nav top-main-menu">
  6. {% endif %}
  7.   {{ widget_list('header.flycategories') }}
  8.   {% for i, item in this.getItems() %}
  9. {% if item.depth !=3 %}
  10.     {% if this.isLevelUp(item.depth) %}
  11.       <ul class="sublevel level{{i}}">
  12.     {% else %}
  13.       {% if not this.isFirstElement() %}
  14.         </li>
  15.       {% endif %}
  16.     {% endif %}
  17.     {{ this.closeMenuList(item.depth)|raw }}
  18.     <li {{ this.displayItemClass(i, item)|raw }} id="li{{i}}">
  19.   {% endif %}
  20.   {% if item.depth ==3 %}
  21.  <p class="submenu-ord">
  22.    {% endif %}
  23.       {% if item.url %}
  24.         <a href="{{ item.url }}" {% if item.active %}class="active"{% endif %}>
  25.           <span>{{ item.label }}</span>
  26.         </a>
  27.       {% else %}
  28.         <span class="primary-title" aria-hidden="true">{{ item.label }}</span>
  29.       {% endif %}
  30.       
  31.     {% endfor %}
  32.      {% if item.depth ==3 %}
  33.  </p>
  34.    {% endif %}
  35.     </li>
  36.  {% if item.depth !=3 %}
  37.     {{ this.closeMenuList()|raw }}
  38.   {% if not this.isSlidebar() %}
  39.     </ul>
  40.       {% endif %}
  41.   {% endif %}