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