custom/plugins/EmovaWbTheme/src/Resources/views/storefront/layout/breadcrumb.html.twig line 1

Open in your IDE?
  1. {% block layout_breadcrumb_inner %}
  2.     {% if category %}
  3.         {% set breadcrumbCategories = sw_breadcrumb_full(category, context.context) %}
  4.         {% set categoryId = category.id %}
  5.         {% set prod = product %}
  6.         {% if feature('v6.5.0.0') %}
  7.             {% set breadcrumbKeys = breadcrumbCategories|keys %}
  8.         {% else %}
  9.             {% sw_silent_feature_call "v6.5.0.0" %}
  10.             {# @deprecated tag:v6.5.0 - Use "sw_breadcrumb_full" directly. #}
  11.             {% set breadcrumb = sw_breadcrumb(category) %}
  12.             {# @deprecated tag:v6.5.0 - Use "sw_breadcrumb_full" directly. #}
  13.             {% set breadcrumbKeys = breadcrumb|keys %}
  14.             {# @deprecated tag:v6.5.0 - Use "sw_breadcrumb_full" directly. #}
  15.             {% set breadcrumbTypes = sw_breadcrumb_build_types(breadcrumbCategories) %}
  16.             {% endsw_silent_feature_call %}
  17.         {% endif %}
  18.         {% if breadcrumbCategories|length > 0 %}
  19.             <nav aria-label="breadcrumb" style="margin-top: 27px; text-transform: uppercase;">
  20.                 {% block layout_breadcrumb_list %}
  21.                     <ol class="breadcrumb" itemscope itemtype="https://schema.org/BreadcrumbList">
  22.                         {% for breadcrumbCategory in breadcrumbCategories %}
  23.             {% if loop.first %}
  24.                             {% set key = prod == null || prod == ""? breadcrumbCategory.id ?  breadcrumbCategory.id %}
  25.                             {% set name = breadcrumbCategory.translated.name %}
  26.                             {% block layout_breadcrumb_list_item %}
  27.                                 <li class="breadcrumb-item" {% if key is same as(categoryId) %} aria-current="page" {% endif %} itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
  28.                                     {% if breadcrumbCategory.type == 'folder' %}
  29.                                         <div itemprop="item">
  30.                                             <div itemprop="name">{{ name }}</div>
  31.                                         </div>
  32.                                     {% else %}
  33.                                         <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">
  34.                                             <link itemprop="url" href="{{ category_url(breadcrumbCategory) }}"/>
  35.                                             <span class="breadcrumb-title" itemprop="name">{{ name }}</span>
  36.                                         </a>
  37.                                     {% endif %}
  38.                                     <meta itemprop="position" content="{{ loop.index }}"/>
  39.                                 </li>
  40.                             {% endblock %}
  41.                             {% block layout_breadcrumb_placeholder %}
  42.                                 {% if key != breadcrumbKeys|last %}
  43.                                     <div
  44.                                         class="breadcrumb-placeholder">
  45.                                         {# {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %} #}
  46.                                         <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewbox="0 0 16 16">
  47.                                             <defs><path id="icons-solid-arrow-medium-right" d="M4.7071 5.2929c-.3905-.3905-1.0237-.3905-1.4142 0-.3905.3905-.3905 1.0237 0 1.4142l4 4c.3905.3905 1.0237.3905 1.4142 0l4-4c.3905-.3905.3905-1.0237 0-1.4142-.3905-.3905-1.0237-.3905-1.4142 0L8 8.5858l-3.2929-3.293z"/></defs><use transform="rotate(-90 8 8)" xlink:href="#icons-solid-arrow-medium-right" fill="#ffffff" fill-rule="evenodd"/></svg>
  48.                                     </div>
  49.                                 {% endif %}
  50.                             {% endblock %}
  51.                             {% if prod != null || prod != "" %}
  52.                                 <div itemprop="item">
  53.                                     <div itemprop="prod" style="color: white;">{{ prod }}</div>
  54.                                 </div>
  55.                             {% endif %}
  56.                         {% endif %}
  57.                         {% endfor %}
  58.                     </ol>
  59.                 {% endblock %}
  60.             </nav>
  61.         {% endif %}
  62.     {% endif %}
  63.     {% if type === "compare" %}
  64.         <nav aria-label="breadcrumb" style="margin-top: 27px; text-transform: uppercase;">
  65.             <ol class="breadcrumb" itemscope="" itemtype="https://schema.org/BreadcrumbList">
  66.                 <li class="breadcrumb-item" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
  67.                     <a href="/store/" class="breadcrumb-link " title="Wallboxen" itemprop="item">
  68.                         <link itemprop="url" href="/store/">
  69.                         <span class="breadcrumb-title" itemprop="name">Wallboxen</span>
  70.                     </a>
  71.                     <meta itemprop="position" content="1">
  72.                 </li>
  73.                 <div class="breadcrumb-placeholder">
  74.                     <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewbox="0 0 16 16">
  75.                         <defs>
  76.                             <path id="icons-solid-arrow-medium-right" d="M4.7071 5.2929c-.3905-.3905-1.0237-.3905-1.4142 0-.3905.3905-.3905 1.0237 0 1.4142l4 4c.3905.3905 1.0237.3905 1.4142 0l4-4c.3905-.3905.3905-1.0237 0-1.4142-.3905-.3905-1.0237-.3905-1.4142 0L8 8.5858l-3.2929-3.293z"></path>
  77.                         </defs>
  78.                         <use transform="rotate(-90 8 8)" xlink:href="#icons-solid-arrow-medium-right" fill="#ffffff" fill-rule="evenodd"></use>
  79.                     </svg>
  80.                 </div>
  81.                 <li class="breadcrumb-item" aria-current="page" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
  82.                     <a href="/store/compare" class="breadcrumb-link  is-active" title="Wallboxen" itemprop="item">
  83.                         <link itemprop="url" href="/store/compare">
  84.                         <span class="breadcrumb-title" itemprop="name">Compare</span>
  85.                     </a>
  86.                     <meta itemprop="position" content="2">
  87.                 </li>
  88.             </ol>
  89.         </nav>
  90.     {% else %}
  91.         <div></div>
  92.     {% endif %}
  93. {% endblock %}