custom/plugins/MDR_Theme/src/Resources/views/storefront/component/product/breadcrumb.html.twig line 1

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