vendor/shopware/storefront/Resources/views/storefront/component/product/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_product_breadcrumb %}
  3.     {% if category %}
  4.         {% set breadcrumb = sw_breadcrumb(category) %}
  5.         {% set breadcrumbKeys = breadcrumb|keys %}
  6.         {% set breadcrumbTypes = sw_breadcrumb_types(breadcrumbKeys, context.context) %}
  7.         {% for key, item in breadcrumb %}
  8.             <div class="breadcrumb-container">
  9.                 {% block component_product_breadcrumb_category %}
  10.                     {% if breadcrumbTypes[key] == 'folder' %}
  11.                         <div>
  12.                             {% block component_product_breadcrumb_folder_name %}
  13.                                 {{ item }}
  14.                             {% endblock %}
  15.                         </div>
  16.                     {% else %}
  17.                         <a class="{% if key is same as(category.id) %} is-active{% endif %}"
  18.                            href="{{ seoUrl('frontend.navigation.page', { navigationId: key }) }}">
  19.                             {% block component_product_breadcrumb_link_name %}
  20.                                 {{ item }}
  21.                             {% endblock %}
  22.                         </a>
  23.                     {% endif %}
  24.                 {% endblock %}
  25.                 {% block component_product_breadcrumb_placeholder %}
  26.                     {% if key != breadcrumbKeys|last %}
  27.                         <div class="breadcrumb-placeholder">
  28.                             {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
  29.                         </div>
  30.                     {% endif %}
  31.                 {% endblock %}
  32.             </div>
  33.         {% endfor %}
  34.     {% endif %}
  35. {% endblock %}