custom/plugins/IabTheme/src/Resources/views/storefront/layout/breadcrumb.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/breadcrumb.html.twig' %}
  2. {% set homeName = 'general.homeLink'|trans|sw_sanitize %}
  3. {% block layout_breadcrumb_list_item %}
  4.     {% if loop.index == 1 %}
  5.         <a href="{{ path('frontend.home.page') }}"
  6.                class="breadcrumb-link"
  7.                title="{{ homeName }}"
  8.                itemprop="item">
  9.             <link itemprop="url"
  10.                   href="{{ path('frontend.home.page') }}"/>
  11.             <span class="breadcrumb-title" itemprop="name">{{ homeName }}</span>
  12.         </a>
  13.         <div class="breadcrumb-placeholder">
  14.             {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
  15.         </div>
  16.     {% endif %}
  17.     <li class="breadcrumb-item"
  18.         {% if key is same as(categoryId) %}aria-current="page"{% endif %}
  19.         itemprop="itemListElement"
  20.         itemscope
  21.         itemtype="https://schema.org/ListItem">
  22.         {% if breadcrumbCategory.type == 'folder' or key == breadcrumbKeys|last %}
  23.             <div itemprop="item{% if key is same as(categoryId) %} is-active{% endif %}">
  24.                 <div itemprop="name">{{ name }}</div>
  25.             </div>
  26.         {% else %}
  27.             <a href="{{ category_url(breadcrumbCategory) }}"
  28.                class="breadcrumb-link {% if key is same as(categoryId) %} is-active{% endif %}"
  29.                title="{{ name }}"
  30.                {% if category_linknewtab(breadcrumbCategory) %}target="_blank"{% endif %}
  31.                itemprop="item">
  32.                 <link itemprop="url"
  33.                       href="{{ category_url(breadcrumbCategory) }}"/>
  34.                 <span class="breadcrumb-title" itemprop="name">{{ name }}</span>
  35.             </a>
  36.         {% endif %}
  37.         <meta itemprop="position" content="{{ loop.index }}"/>
  38.     </li>
  39. {% endblock %}