custom/plugins/ATNTheme/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_link %}
  3.     {# redirect to product if possible #}
  4.     {% if (treeItem.category.translated.customFields.wbn_category_settings_nav_products == 'active' and treeItem.category.extensions.wbnRedirectTo) %}
  5.         {% set link = seoUrl('frontend.detail.page', {'productId': treeItem.category.extensions.wbnRedirectTo.id}) %}
  6.         <a class="nav-item nav-link navigation-flyout-link is-level-{{ level }}{% if id == activeId or id in activePath %} active{% endif %} wbn-redirect"
  7.            href="{{ link }}"
  8.            itemprop="url"
  9.            title="{{ name }}">
  10.             <span itemprop="name">{{ name }}</span>
  11.         </a>
  12.     {% else %}
  13.         {{ parent() }}
  14.     {% endif %}
  15. {% endblock %}
  16. {% block layout_navigation_categories_item %}
  17.     <div class="{% if level == 0 %}col-3{% endif %} navigation-flyout-col">
  18.         {{ block('layout_navigation_categories_item_link') }}
  19.         {{ block('layout_navigation_categories_recoursion') }}
  20.     </div>
  21. {% endblock %}