custom/plugins/WynTheme/src/Resources/views/storefront/layout/breadcrumb-home-item.html.twig line 1

Open in your IDE?
  1. {% block breakcrumb_home_item %}
  2.   {# Link to home #}
  3.   {% set homeLabel = context.salesChannel.translated.homeName|default("general.homeLink"|trans) %}
  4.   <li
  5.     class="breadcrumb-item breadcrumb-item-home"
  6.     itemprop="itemListElement"
  7.     itemscope
  8.     itemtype="https://schema.org/ListItem"
  9.   >
  10.     {% if breadcrumbCategory.type == 'folder' %}
  11.       <div itemprop="name">{{ name }}</div>
  12.     {% else %}
  13.       <a
  14.         href="{{ path('frontend.home.page') }}"
  15.         class="breadcrumb-link breadcrumb-link-home"
  16.         title="Home"
  17.         itemprop="item"
  18.       >
  19.         <link
  20.           itemprop="url"
  21.           href="{{ path('frontend.home.page') }}"
  22.         />
  23.         {% sw_icon 'home' style { 'size': 'sm' } %}
  24.         <span
  25.           class="breadcrumb-title"
  26.           itemprop="name"
  27.         >
  28.           {{ homeLabel|sw_sanitize }}
  29.         </span>
  30.       </a>
  31.     {% endif %}
  32.     <meta itemprop="position" content="-1"/>
  33.   </li>
  34. {% endblock %}