custom/plugins/WabsIgmTheme/src/Resources/views/storefront/layout/navigation/navigation.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
  2. {# hides home tab from menu #}
  3. {% block layout_main_navigation_menu_home %}
  4. {% endblock %}
  5.  {% block layout_main_navigation_menu_item %}
  6.      {% if category.type == 'folder' %}
  7.          <div class="nav-link main-navigation-link"
  8.              {% if treeItem.children|length > 0 %}
  9.                  data-flyout-menu-trigger="{{ categorId }}"
  10.              {% endif %}
  11.               title="{{ name }}">
  12.              <div class="main-navigation-link-text">
  13.                  <span itemprop="name">{{ name }}</span>
  14.              </div>
  15.          </div>
  16.      {% else %}
  17.          <a class="nav-link main-navigation-link{% if categorId is same as(page.header.navigation.active.id) or categorId in page.header.navigation.active.path %} active{% endif %}"
  18.             href="{% if category.translated.externalLink %}{{ category.translated.externalLink }}{% else %}{{ seoUrl('frontend.navigation.page', { navigationId: categorId }) }}{% endif %}"
  19.             itemprop="url"
  20.              {% if treeItem.children|length > 0 %}
  21.                  data-flyout-menu-trigger="{{ categorId }}"
  22.              {% endif %}
  23.             title="{{ name }}">
  24.              <div class="main-navigation-link-text">
  25.                  <span itemprop="name">{{ name }}</span>
  26.              </div>
  27.          </a>
  28.      {% endif %}
  29.  {% endblock %}