vendor/shopware/storefront/Resources/views/storefront/component/listing/breadcrumb.html.twig line 1

Open in your IDE?
  1. {# @deprecated tag:v6.4.0 -  Will be handled by generic "layout/breadcrumb.html.twig" template #}
  2. {% block component_listing_breadcrumb %}
  3.     {% set breadcrumb = sw_breadcrumb(category) %}
  4.     {% set breadcrumbKeys = breadcrumb|keys %}
  5.     {% set breadcrumbTypes = sw_breadcrumb_types(breadcrumbKeys, context.context) %}
  6.     {% for key, item in breadcrumb %}
  7.         <div class="breadcrumb-container">
  8.             {% block component_listing_breadcrumb_category %}
  9.                 {% if breadcrumbTypes[key] == 'folder' %}
  10.                     <div>{{ item }}</div>
  11.                 {% else %}
  12.                     <a class="{% if key is same as(category.id) %} is-active{% endif %}"
  13.                        href="{{ seoUrl('frontend.navigation.page', { navigationId: key }) }}">
  14.                         {% block component_listing_breadcrumb_link_name %}
  15.                             {{ item }}
  16.                         {% endblock %}
  17.                     </a>
  18.                 {% endif %}
  19.             {% endblock %}
  20.             {% block component_listing_breadcrumb_placeholder %}
  21.                 {% if key != breadcrumbKeys|last %}
  22.                     <div class="breadcrumb-placeholder">
  23.                         {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
  24.                     </div>
  25.                 {% endif %}
  26.             {% endblock %}
  27.         </div>
  28.     {% endfor %}
  29. {% endblock %}