custom/plugins/LiamoriaBaseTheme/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.                 {% set countNav = '' %}
  4.                 {% if level == 0 %}
  5.                     {% set countNav = navigationTree|length %}
  6.                 {% endif %}
  7.                 <div class="{% if level == 0 %}{% if navigationMedia %}col-4 {% else %}{% if countNav > 4  %}col-2{% else %}col-3 {% endif %} {% endif %}{% endif %}navigation-flyout-col">
  8.                     {% block layout_navigation_categories_item_link %}
  9.                         {% if treeItem.category.type == 'folder' %}
  10.                             <div class="nav-item nav-link navigation-flyout-link is-level-{{ level }}"
  11.                                  title="{{ name }}">
  12.                                 <span itemprop="name">{{ name }}</span>
  13.                             </div>
  14.                         {% else %}
  15.                             <a class="nav-item nav-link navigation-flyout-link is-level-{{ level }}{% if id == activeId or id in activePath %} active{% endif %}"
  16.                                href="{{ link }}"
  17.                                itemprop="url"
  18.                                {% if category_linknewtab(treeItem.category) %}target="_blank"
  19.                                    {% if treeItem.category.linkType == "external" %}rel="noopener noreferrer"{% endif %}
  20.                                {% endif %}
  21.                                title="{{ name }}">
  22.                                 <span itemprop="name">{{ name }}</span>
  23.                             </a>
  24.                         {% endif %}
  25.                     {% endblock %}
  26.                     {% block layout_navigation_categories_recoursion %}
  27.                         {% if level < navigationMaxDepth %}
  28.                             {% sw_include '@Storefront/storefront/layout/navigation/categories.html.twig' with {
  29.                                 navigationTree: treeItem.children,
  30.                                 level: level + 1,
  31.                                 page: page
  32.                             } only %}
  33.                         {% endif %}
  34.                     {% endblock %}
  35.                 </div>
  36.             {% endblock %}