custom/plugins/OttMoebelfirstTheme/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.     >
  9.         {% if breadcrumbCategory.type == 'folder' %}
  10.             <div itemprop="item">
  11.                 <div itemprop="name">{{ name }}</div>
  12.             </div>
  13.         {% else %}
  14.             {% set breadcrumbUrl = category_url(breadcrumbCategory) %}
  15.             {% if 'marken' === name|lower %}
  16.                 {% set breadcrumbUrl = path('frontend.cbax.manufacturer.index') %}
  17.             {% elseif 1 === loop.index0 and 'marken' === breadcrumbCategories|first.name|lower %}
  18.                 {% set breadcrumbName = name|lower|replace({' ': '-'}) %}
  19.                 {% set breadcrumbUrl = '/marken/' ~ breadcrumbName ~ '/' %}
  20.             {% endif %}
  21.             <a href="{{ breadcrumbUrl }}"
  22.                class="breadcrumb-link {% if key is same as(categoryId) %} is-active{% endif %}"
  23.                title="{{ name }}"
  24.                {% if category_linknewtab(breadcrumbCategory) %}target="_blank"{% endif %}
  25.                itemprop="item"
  26.             >
  27.                 <link itemprop="url"
  28.                       href="{{ breadcrumbUrl }}"
  29.                 />
  30.                 <span class="breadcrumb-title" itemprop="name">{{ name }}</span>
  31.             </a>
  32.         {% endif %}
  33.         <meta itemprop="position" content="{{ loop.index }}"/>
  34.     </li>
  35. {% endblock %}