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