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