custom/plugins/zenitPlatformHorizon/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 class="breadcrumb"
  4.         itemscope
  5.         itemtype="https://schema.org/BreadcrumbList">
  6.         {# ... @zenit - add pretext #}
  7.         {% block zen_layout_breadcrumb_list_pretext %}
  8.             {% if theme_config('zen-breadcrumbs-pretext') %}
  9.                 <li class="breadcrumb-pretext"
  10.                     itemprop="itemListElement"
  11.                     itemscope
  12.                     itemtype="https://schema.org/ListItem">
  13.                     <span class="breadcrumb-title" itemprop="name">{{ "zentheme.layout.breadcrumbs.pretext"|trans|sw_sanitize }}</span>
  14.                 </li>
  15.             {% endif %}
  16.         {% endblock %}
  17.         {# ... @zenit - add home link #}
  18.         {% block zen_layout_breadcrumb_list_home %}
  19.             {% if theme_config('zen-breadcrumbs-home') %}
  20.                 {% set homeLabel = context.salesChannel.translated.homeName|default("general.homeLink"|trans) %}
  21.                 <li class="breadcrumb-item home-link"
  22.                     itemprop="itemListElement"
  23.                     itemscope
  24.                     itemtype="https://schema.org/ListItem">
  25.                     <a href="{{ path('frontend.home.page') }}"
  26.                        class="breadcrumb-link{% if controllerAction is same as('home') %} is-active{% endif %}"
  27.                        title="{{ homeLabel|striptags }}"
  28.                        itemprop="item">
  29.                         <link itemprop="url"
  30.                               href="{{ path('frontend.home.page') }}"/>
  31.                         <span class="breadcrumb-title" itemprop="name">{{ homeLabel|sw_sanitize }}</span>
  32.                     </a>
  33.                     <meta itemprop="position" content="0"/>
  34.                 </li>
  35.                 {{ block('layout_breadcrumb_placeholder') }}
  36.             {% endif %}
  37.         {% endblock %}
  38.         {% for breadcrumbCategory in breadcrumbCategories %}
  39.             {% set key = breadcrumbCategory.id %}
  40.             {% set name = breadcrumbCategory.translated.name %}
  41.             {{ block('layout_breadcrumb_list_item') }}
  42.             {# ... @zenit - change div to li #}
  43.             {% block layout_breadcrumb_placeholder %}
  44.                 {% if key != breadcrumbKeys|last %}
  45.                     <li class="breadcrumb-placeholder">
  46.                         {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
  47.                     </li>
  48.                 {% endif %}
  49.             {% endblock %}
  50.         {% endfor %}
  51.     </ol>
  52. {% endblock %}