custom/apps/AtlKatanaTheme/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.         {% if breadcrumbCategory.type == 'folder' %}
  9.             <span class="breadcrumb-title" itemprop="name">{{ name }}</span>
  10.         {% else %}
  11.             <a href="{{ category_url(breadcrumbCategory) }}"
  12.                class="breadcrumb-link {% if key is same as(categoryId) %} is-active{% endif %}"
  13.                title="{{ name }}"
  14.                {% if category_linknewtab(breadcrumbCategory) %}target="_blank"{% endif %}
  15.                itemprop="item">
  16.                 <link itemprop="url"
  17.                       href="{{ category_url(breadcrumbCategory) }}"/>
  18.                 <span class="breadcrumb-title" itemprop="name">{{ name }}</span>
  19.             </a>
  20.         {% endif %}
  21.         <meta itemprop="position" content="{{ loop.index }}"/>
  22.     </li>
  23. {% endblock %}
  24. {% block layout_breadcrumb_placeholder %}
  25.     {% if key != breadcrumbKeys|last %}
  26.         <div class="breadcrumb-placeholder">
  27.             {% sw_icon 'arrow-head-right' style {
  28.                 'namespace': 'AtlKatanaTheme',
  29.                 'pack':  theme_config('atl-icon-set'),
  30.                 'class': 'text-color'
  31.             } %}
  32.         </div>
  33.     {% endif %}
  34. {% endblock %}