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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/navigation/categories.html.twig' %}
  2. {% block layout_navigation_categories_item %}
  3.     <div class="{% if level == 0 %}col-5 {% endif %}navigation-flyout-col">
  4.         {% block layout_navigation_categories_item_link %}
  5.             {% if treeItem.category.type == 'folder' %}
  6.                 <div class="nav-item nav-link navigation-flyout-link is-level-{{ level }}" title="{{ name }}">
  7.                     <span itemprop="name">{{ name }}</span>
  8.                 </div>
  9.             {% else %}
  10.                 <a class="nav-item nav-link navigation-flyout-link is-level-{{ level }}{% if id == activeId or id in activePath %} active{% endif %}" href="{{ link }}" itemprop="url" {% if category_linknewtab(treeItem.category) %} target="_blank" {% if treeItem.category.linkType == "external" %} rel="noopener noreferrer" {% endif %} {% endif %} title="{{ name }}">
  11.                     <span itemprop="name">{{ name }}</span>
  12.                 </a>
  13.             {% endif %}
  14.         {% endblock %}
  15.         {% block layout_navigation_categories_recoursion %}
  16.             {% if level < navigationMaxDepth %}
  17.                 {% sw_include '@Storefront/storefront/layout/navigation/categories.html.twig' with {
  18.                     navigationTree: treeItem.children,
  19.                     level: level + 1,
  20.                     page: page
  21.                 } only %}
  22.             {% endif %}
  23.         {% endblock %}
  24.     </div>
  25. {% endblock %}