custom/plugins/zenitPlatformStratus/src/Resources/views/storefront/layout/sidebar/category-navigation.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/sidebar/category-navigation.html.twig' %}
  2. {% block layout_navigation_categories_link_children %}
  3.     {# ... add class has-children #}
  4.     <a class="category-navigation-link{% if item.category.id is same as(activeResult.id) %} is-active{% endif %}{% if item.category.id in activeResult.path %} in-path{% endif %}{% if item.children %} has-children{% endif %}"
  5.        href="{{ category_url(item.category) }}"
  6.        {% if category_linknewtab(item.category) %}target="_blank"{% endif %}>
  7.         {% block layout_navigation_categories_link_children_name %}
  8.             {# ... add inner span #}
  9.             <span class="category-navigation-link-inner">{{ item.category.translated.name }}</span>
  10.         {% endblock %}
  11.         {# ... add arrow #}
  12.         {% if theme_config('zen-sidebar-navigation-arrow') and level == 0 and item.children %}
  13.             {% sw_icon 'arrow-medium-down' style {
  14.                 'pack': 'solid', 'size': 'xs', 'class': 'category-navigation-link-toggle'
  15.             } %}
  16.         {% endif %}
  17.     </a>
  18. {% endblock %}
  19. {% block layout_navigation_categories_link %}
  20.     <a class="category-navigation-link{% if item.category.id is same as(activeResult.id) %} is-active{% endif %}"
  21.        href="{{ category_url(item.category) }}"
  22.        {% if category_linknewtab(item.category) %}target="_blank"{% endif %}>
  23.         {% block layout_navigation_categories_link_name %}
  24.             {# ... add inner span #}
  25.             <span class="category-navigation-link-inner">{{ item.category.translated.name }}</span>
  26.         {% endblock %}
  27.         {# ... add arrow #}
  28.         {% if theme_config('zen-sidebar-navigation-arrow') and level == 0 and item.children %}
  29.             {% sw_icon 'arrow-medium-down' style {
  30.                 'pack': 'solid', 'size': 'xs', 'class': 'category-navigation-link-toggle'
  31.             } %}
  32.         {% endif %}
  33.     </a>
  34. {% endblock %}