custom/plugins/TraumPlugin/src/Resources/views/storefront/layout/breadcrumb.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/breadcrumb.html.twig' %}
  2. {% block layout_breadcrumb_list_item %}
  3.     <li class="breadcrumb-item"
  4.         {% if key is same as(categoryId) %}aria-current="page"{% endif %}
  5.         itemprop="itemListElement"
  6.         itemscope
  7.         itemtype="https://schema.org/ListItem">
  8.         {% if breadcrumbCategory.type == 'folder' %}
  9.             <div>{{ name }}</div>
  10.         {% else %}
  11.             <a href="{{ category_url(breadcrumbCategory) }}"
  12.                class="breadcrumb-link {% if (key is same as(categoryId)) and (not product) %} is-active{% endif %}"
  13.                title="{{ name }}"
  14.                {% if category_linknewtab(breadcrumbCategory) %}target="_blank"{% endif %}
  15.                itemprop="item">
  16.                 <link itemprop="url"
  17.                       href="{{ category_url(breadcrumbCategory) }}"/>
  18.                 <span class="breadcrumb-title" itemprop="name">{{ name }}</span>
  19.             </a>
  20.             <meta itemprop="position" content="{{ breadcrumbCategory.id }}"/>
  21.         {% endif %}
  22.     </li>
  23. {% endblock %}
  24. {% block layout_breadcrumb_placeholder %}
  25.     {% if key != breadcrumbKeys|last %}
  26.         <div class="breadcrumb-placeholder">
  27.             {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
  28.         </div>
  29.     {% endif %}
  30.     {% if (key == breadcrumbKeys|last) and product %}
  31.         <div class="breadcrumb-placeholder">
  32.             {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
  33.         </div>
  34.         <li class="breadcrumb-item"
  35.             {% if key is same as(categoryId) %}aria-current="page"{% endif %}
  36.             itemprop="itemListElement"
  37.             itemscope
  38.             itemtype="https://schema.org/ListItem">
  39.                 <a href="{{ seoUrl('frontend.detail.page', { productId: product.id }) }}"
  40.                    class="breadcrumb-link is-active"
  41.                    title="{{ product.translated.name }}"
  42.                    itemprop="item">
  43.                     <link itemprop="url"
  44.                           href="{{ seoUrl('frontend.detail.page', { productId: product.id }) }}"/>
  45.                     <span class="breadcrumb-title" itemprop="name">{{ product.translated.name }}</span>
  46.                 </a>
  47.                 <meta itemprop="position" content="{{ product.id }}"/>
  48.         </li>
  49.     {% endif %}
  50. {% endblock %}