custom/plugins/LogBchange/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.     {# {{parent()}} #}
  4.     {% if loop.first %}
  5.         {% block layout_breadcrumb_home_item %}
  6.             {% if theme_config('log-breadcrumb-home') == 1 and (theme_config('log-breadcrumb-size') == false or breadcrumbCategories|length > 0) %}
  7.                 {% set breadcrumbIndex = 1 %}
  8.                 <li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
  9.                     <a class="breadcrumb-home" href="{{ path('frontend.home.page') }}" title="{{ "header.logoLink"|trans|striptags }}" itemprop="item">
  10.                         <link itemprop="url" href="{{ path('frontend.home.page') }}"/>
  11.                         {% if theme_config('log-breadcrumb-home-icon-label') == "icon" %}
  12.                             {% sw_icon 'shop' style { 'size': '1rem', 'pack': 'default'} %}
  13.                         {% else %}
  14.                             <span class="breadcrumb-title" itemprop="name">
  15.                                 {{ config('core.basicInformation.shopName')  }}
  16.                             </span>
  17.                         {% endif %}
  18.                     </a>
  19.                     <meta itemprop="position" content="{{ breadcrumbIndex }}"/>
  20.                 </li>
  21.             {% endif %}
  22.             {% block layout_breadcrumb_home_placeholder %}
  23.                 <div class="breadcrumb-placeholder">
  24.                     |
  25.                     {# {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %} #}
  26.                 </div>
  27.             {% endblock %}
  28.         {% endblock %}
  29.     {% endif %}
  30.     <li class="breadcrumb-item{% if theme_config('log-breadcrumb-size') == 1 and key != breadcrumbKeys|last %} d-none d-md-inline-block{% endif %}" {% if key is same as(categoryId) %} aria-current="page" {% endif %} itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
  31.         {% if breadcrumbCategory.type == 'folder' %}
  32.             <div>{{ name }}</div>
  33.         {% else %}
  34.             <a href="{{ category_url(breadcrumbCategory) }}" class="breadcrumb-link {% if key is same as(categoryId) %} is-active{% endif %}" title="{{ name }}" {% if category_linknewtab(breadcrumbCategory) %} target="_blank" {% endif %} itemprop="item">
  35.                 <link itemprop="url" href="{{ category_url(breadcrumbCategory) }}"/>
  36.                 <span class="breadcrumb-title" itemprop="name">{{ name }}</span>
  37.             </a>
  38.             <meta itemprop="position" content="{{ loop.index + breadcrumbIndex }}"/>
  39.         {% endif %}
  40.     </li>
  41.     {% if loop.last and pageTitle %}
  42.         <div class="breadcrumb-placeholder {% if theme_config('log-breadcrumb-size') == 1 and key != breadcrumbKeys|last %} d-none d-md-inline-block{% endif %}">
  43.             |        </div>
  44.         <li class="breadcrumb-item">
  45.             <div>
  46.                 <div>{{ pageTitle }}</div>
  47.             </div>
  48.         </li>
  49.     {% endif %}
  50. {% endblock %}
  51. {% block layout_breadcrumb_placeholder %}
  52.     {% if key != breadcrumbKeys|last %}
  53.         <div class="breadcrumb-placeholder {% if theme_config('log-breadcrumb-size') == 1 and key != breadcrumbKeys|last %} d-none d-md-inline-block{% endif %}">
  54.             |
  55.             {# {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %} #}
  56.         </div>
  57.     {% endif %}
  58. {% endblock %}