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