{% sw_extends '@Storefront/storefront/layout/breadcrumb.html.twig' %}
{% block layout_breadcrumb_inner %}
{% if category %}
{% set breadcrumbCategories = sw_breadcrumb_full(category, context.context) %}
{% set categoryId = category.id %}
{% if feature('v6.5.0.0') %}
{% set breadcrumbKeys = breadcrumbCategories|keys %}
{% else %}
{% sw_silent_feature_call "v6.5.0.0" %}
{# @deprecated tag:v6.5.0 - Use "sw_breadcrumb_full" directly. #}
{% set breadcrumb = sw_breadcrumb(category) %}
{# @deprecated tag:v6.5.0 - Use "sw_breadcrumb_full" directly. #}
{% set breadcrumbKeys = breadcrumb|keys %}
{# @deprecated tag:v6.5.0 - Use "sw_breadcrumb_full" directly. #}
{% set breadcrumbTypes = sw_breadcrumb_build_types(breadcrumbCategories) %}
{% endsw_silent_feature_call %}
{% endif %}
{% if breadcrumbCategories|length > 0 %}
<nav aria-label="breadcrumb" id="flex">
{#------Home-Verzeichnis immer setzen-------#}
{% block page_product_detail_breadcrumb %}
{# @deprecated tag:v6.4.0 - Will be handled by generic "layout/breadcrumb.html.twig" template #}
{% block component_listing_breadcrumb %}
{% set breadcrumb = category.buildSeoBreadcrumb(context.salesChannel.navigationCategoryId) %}
<div class="breadcrumb-container">
<a class="breadcrumb-home-link" href="{{ path('frontend.home.page') }}" title="Home">HOME</a>
<div class="breadcrumb-placeholder">/</div>
</div>
{% for key, item in breadcrumb %}
<div class="breadcrumb-container">
{% block component_listing_breadcrumb_category %}
<a class="{% if key is same as(category.id) %} is-active{% endif %}"
href="{{ seoUrl('frontend.navigation.page', { navigationId: key }) }}">
{% block component_listing_breadcrumb_link_name %}
{{ item |upper}}
{% endblock %}
</a>
{% endblock %}
{% block component_listing_breadcrumb_placeholder %}
{% if item != breadcrumb|last %}
<div class="breadcrumb-placeholder">
<p> / </p>
</div>
{% endif %}
{% endblock %}
</div>
{% endfor %}
{% endblock %}
{% endblock %}
{#-------------------------------#}
{% block layout_breadcrumb_list %}
<ol class="breadcrumb"
itemscope
itemtype="https://schema.org/BreadcrumbList">
{% for breadcrumbCategory in breadcrumbCategories %}
{% set key = breadcrumbCategory.id %}
{% set name = breadcrumbCategory.translated.name %}
{% block layout_breadcrumb_list_item %}
<li class="breadcrumb-item"
{% if key is same as(categoryId) %}aria-current="page"{% endif %}
itemprop="itemListElement"
itemscope
itemtype="https://schema.org/ListItem">
{% if breadcrumbCategory.type == 'folder' %}
<div itemprop="item">
<div itemprop="name">{{ name }}</div>
</div>
{% else %}
<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">
<link itemprop="url"
href="{{ category_url(breadcrumbCategory) }}"/>
<span class="breadcrumb-title" itemprop="name">{{ name }}</span>
</a>
{% endif %}
<meta itemprop="position" content="{{ loop.index }}"/>
</li>
{% endblock %}
{% block layout_breadcrumb_placeholder %}
{% if key != breadcrumbKeys|last %}
<div class="breadcrumb-placeholder">
{% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
</div>
{% endif %}
{% endblock %}
{% endfor %}
</ol>
{% endblock %}
</nav>
{% endif %}
{% endif %}
{% endblock %}