custom/static-plugins/Ldscustomise/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 %}
  3.                     <ol class="breadcrumb"
  4.                         itemscope
  5.                         itemtype="https://schema.org/BreadcrumbList">
  6.                         <li class="breadcrumb-item">
  7.                             <a href="/"
  8.                                 class="breadcrumb-link"
  9.                                 title="{{ context.salesChannel.name }}"
  10.                                 itemprop="item">
  11.                                 <link itemprop="url" href="/"/>
  12.                                 <span class="breadcrumb-title" itemprop="name">Meier-Medizintechnik.de</span>
  13.                             </a>
  14.                             <meta itemprop="position" content=""/>
  15.                         </li>
  16.                         <div class="breadcrumb-placeholder">
  17.                             {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
  18.                         </div>
  19.                         {% for breadcrumbCategory in breadcrumbCategories %}
  20.                             {% set key = breadcrumbCategory.id %}
  21.                             {% set name = breadcrumbCategory.translated.name %}
  22.                             {% block layout_breadcrumb_list_item %}
  23.                                 <li class="breadcrumb-item"
  24.                                     {% if key is same as(categoryId) %}aria-current="page"{% endif %}
  25.                                     itemprop="itemListElement"
  26.                                     itemscope
  27.                                     itemtype="https://schema.org/ListItem">
  28.                                     {% if breadcrumbCategory.type == 'folder' %}
  29.                                         <div itemprop="name">{{ name }}</div>
  30.                                     {% else %}
  31.                                         <a href="{{ category_url(breadcrumbCategory) }}"
  32.                                            class="breadcrumb-link {% if key is same as(categoryId) %} is-active{% endif %}"
  33.                                            title="{{ name }}"
  34.                                            {% if category_linknewtab(breadcrumbCategory) %}target="_blank"{% endif %}
  35.                                            itemprop="item">
  36.                                             <link itemprop="url"
  37.                                                   href="{{ category_url(breadcrumbCategory) }}"/>
  38.                                             <span class="breadcrumb-title" itemprop="name">{{ name }}</span>
  39.                                         </a>
  40.                                     {% endif %}
  41.                                     <meta itemprop="position" content="{{ loop.index }}"/>
  42.                                 </li>
  43.                             {% endblock %}
  44.                             {% block layout_breadcrumb_placeholder %}
  45.                                 {% if key != breadcrumbKeys|last %}
  46.                                     <div class="breadcrumb-placeholder">
  47.                                         {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
  48.                                     </div>
  49.                                 {% endif %}
  50.                             {% endblock %}
  51.                         {% endfor %}
  52.                     </ol>
  53.                 {% endblock %}