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

Open in your IDE?
  1. {% block component_product_breadcrumb %}
  2.     {% for item in navigationTree %}
  3.         {% if item.category.id == product.categoryTree|last %}
  4.             {% set breadcrumb = item.category.getPlainBreadcrumb(item.category.id)|slice(1) %}
  5.             {% for key, item in breadcrumb %}
  6.                 {% block component_product_breadcrumb_category %}
  7.                     <a class="{% if key is same as(product.categoryTree|last) %} is-active{% endif %}"
  8.                        href="{{ seoUrl('frontend.navigation.page', { navigationId: key }) }}">
  9.                         {% block component_product_breadcrumb_link_name %}
  10.                             {{ item }}
  11.                         {% endblock %}
  12.                     </a>
  13.                 {% endblock %}
  14.                 {% block component_product_breadcrumb_placeholder %}
  15.                     {% if item != breadcrumb|last %}
  16.                         <div class="breadcrumb-placeholder">
  17.                             {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
  18.                         </div>
  19.                     {% endif %}
  20.                 {% endblock %}
  21.             {% endfor %}
  22.         {% else %}
  23.             {% if item.children|length %}
  24.                 {% sw_include '@Storefront/storefront/component/product/breadcrumb.html.twig' with {
  25.                     navigationTree: item.children,
  26.                     product: product
  27.                 } only %}
  28.             {% endif %}
  29.         {% endif %}
  30.     {% endfor %}
  31. {% endblock %}