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

Open in your IDE?
  1. {% block component_listing_breadcrumb %}
  2.     {% set breadcrumb = category.buildSeoBreadcrumb(context.salesChannel.navigationCategoryId) %}
  3.     {% for key, item in breadcrumb %}
  4.         <div class="breadcrumb-container">
  5.             {% block component_listing_breadcrumb_category %}
  6.                 <a class="{% if key is same as(category.id) %} is-active{% endif %}"
  7.                    href="{{ seoUrl('frontend.navigation.page', { navigationId: key }) }}">
  8.                     {% block component_listing_breadcrumb_link_name %}
  9.                         {{ item }}
  10.                     {% endblock %}
  11.                 </a>
  12.             {% endblock %}
  13.             {% block component_listing_breadcrumb_placeholder %}
  14.                 {% if item != breadcrumb|last %}
  15.                     <div class="breadcrumb-placeholder">
  16.                         {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
  17.                     </div>
  18.                 {% endif %}
  19.             {% endblock %}
  20.         </div>
  21.     {% endfor %}
  22. {% endblock %}