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.         {# ... add home link #}
  7.         {% if theme_config('zen-breadcrumbs-home-enabled') %}
  8.             {% set homeLabel = context.salesChannel.translated.homeName|default("general.homeLink"|trans) %}
  9.             <li class="breadcrumb-item home-link"
  10.                 itemprop="itemListElement"
  11.                 itemscope
  12.                 itemtype="https://schema.org/ListItem">
  13.                 <a href="{{ path('frontend.home.page') }}"
  14.                    class="breadcrumb-link{% if controllerAction is same as('home') %} is-active{% endif %}"
  15.                    title="{{ homeLabel|striptags }}"
  16.                    itemprop="item">
  17.                     <link itemprop="url"
  18.                           href="{{ path('frontend.home.page') }}"/>
  19.                     <span class="breadcrumb-title" itemprop="name">{{ homeLabel|sw_sanitize }}</span>
  20.                 </a>
  21.                 <meta itemprop="position" content="0"/>
  22.             </li>
  23.             {{ block('layout_breadcrumb_placeholder') }}
  24.         {% endif %}
  25.         {% for breadcrumbCategory in breadcrumbCategories %}
  26.             {% set key = breadcrumbCategory.id %}
  27.             {% set name = breadcrumbCategory.translated.name %}
  28.             {{ block('layout_breadcrumb_list_item') }}
  29.             {{ block('layout_breadcrumb_placeholder') }}
  30.         {% endfor %}
  31.     </ol>
  32. {% endblock %}