custom/plugins/HelmaTheme/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="{{ path('frontend.home.page') }}" title="Startseite" itemprop="item">
  6.                 <link itemprop="url" href="{{ path('frontend.home.page') }}"/>
  7.                 <span class="breadcrumb-title" itemprop="name">Startseite</span>
  8.             </a>
  9.         </li>
  10.         <div class="breadcrumb-placeholder">
  11.             {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
  12.         </div>
  13.         {% for breadcrumbCategory in breadcrumbCategories %}
  14.             {% set key = breadcrumbCategory.id %}
  15.             {% set name = breadcrumbCategory.translated.name %}
  16.             {% block layout_breadcrumb_list_item %}
  17.                 <li class="breadcrumb-item" {% if key is same as(categoryId) %} aria-current="page" {% endif %} itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
  18.                     {% if breadcrumbCategory.type == 'folder' %}
  19.                         <div itemprop="item">
  20.                             <div itemprop="name">{{ name }}</div>
  21.                         </div>
  22.                     {% else %}
  23.                         <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">
  24.                             <link itemprop="url" href="{{ category_url(breadcrumbCategory) }}"/>
  25.                             <span class="breadcrumb-title" itemprop="name">{{ name }}</span>
  26.                         </a>
  27.                     {% endif %}
  28.                     <meta itemprop="position" content="{{ loop.index }}"/>
  29.                 </li>
  30.             {% endblock %}
  31.             {% block layout_breadcrumb_placeholder %}
  32.                 {% if key != breadcrumbKeys|last %}
  33.                     <div class="breadcrumb-placeholder">
  34.                         {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
  35.                     </div>
  36.                 {% endif %}
  37.             {% endblock %}
  38.         {% endfor %}
  39.     </ol>
  40. {% endblock %}