{% sw_extends '@Storefront/storefront/layout/header/header.html.twig' %}
{% block layout_header_navigation %}
{{ parent() }}
{# Custom tabnav navigation #}
{% block layout_header_navigation_tabnav %}
{% apply spaceless %}
<div class="row header-row">
<div class="col-12">
<div class="d-none d-lg-flex justify-content-end">
<nav>
{% for category in context.context.extensions.topnav['categories'] %}
{% set name = category.translated.name %}
<a href="{{ category_url(category) }}" class="tabnav-link main-navigation-link{% if category.id == page.header.navigation.active.id or category.id in activePath %} active{% endif %}" title="{{ name }}">
<span class="tabnav-item--{{ name|lower|replace({' ' : '-'}) }}">{{ name }}</span>
</a>
{% endfor %}
</nav>
</div>
</div>
</div>
{% endapply %}
{% endblock %}
{% endblock %}
{% block layout_header_search_toggle %}
{# Display on all mobile devices #}
<div class="col-auto d-lg-none">
<div class="search-toggle">
<button class="btn header-actions-btn search-toggle-btn js-search-toggle-btn collapsed"
type="button"
data-toggle="collapse"
data-target="#searchCollapse"
aria-expanded="false"
aria-controls="searchCollapse"
aria-label="{{ "header.searchButton"|trans|striptags }}">
{% sw_icon 'search' %}
</button>
</div>
</div>
{% endblock %}