{% sw_extends '@Storefront/storefront/layout/header/header.html.twig' %}
{% block layout_header_actions_cart %}
<div class="col-auto">
<div class="header-tax-switch d-block">
{% if context.extensions.maxiaTaxSwitch.isNet %}
<a href="{{ path('frontend.plugins.maxia-tax-switch.update', { net: 0 }) }}" rel="nofollow" class="btn header-cart-btn header-actions-btn" href="{{ path('frontend.checkout.cart.page') }}" title="{{ 'checkout.cartTitle'|trans|striptags }}" aria-label="{{ 'checkout.cartTitle'|trans|striptags }}">
<b>{{ "maxia-tax-switch.dropdown.net"|trans|raw }}</b>
<br><span class="button-subline">{{ "lds.header.sublinenet"|trans|raw }}</span>
</a>
{% else %}
<a href="{{ path('frontend.plugins.maxia-tax-switch.update', { net: 1 }) }}" rel="nofollow" class="btn header-cart-btn header-actions-btn" href="{{ path('frontend.checkout.cart.page') }}" title="{{ 'checkout.cartTitle'|trans|striptags }}" aria-label="{{ 'checkout.cartTitle'|trans|striptags }}">
<b>{{ "maxia-tax-switch.dropdown.gross"|trans|raw }}</b>
<br><span class="button-subline">{{ "lds.header.sublinegross"|trans|raw }}</span>
</a>
{% endif %}
</div>
</div>
{{ parent() }}
{% endblock %}
{% block layout_header_navigation_toggle %}
{# ThemeWare: Klassen modifizieren um den Toggle-Button ein-/auszublenden. #}
{% set blockClassesMenuButton = ['col'] %}
{# ThemeWare: 'Top navigation' => hidden #}
{# "Top-Navigation" nur mobil anzeigen wenn Sie über die Theme-Konfiguration deaktiviert wurde #}
{% if twtNavMainShow == 1 %}
{% set blockClassesMenuButton = ['d-block d-lg-none']|merge(blockClassesMenuButton) %}
{% endif %}
{# ThemeWare: 'Top navigation' => list #}
{# Anpassungen falls die "Top-Navigation" als "Liste" dargestellt werden soll #}
{% if twtNavMainShow == 2 %}
{% if twtHeaderType == 4 %}
{# ThemeWare: Klassen für "Header 2.1" hinzufügen #}
{% set blockClassesMenuButton = ['d-block d-lg-none']|merge(blockClassesMenuButton) %}
{% elseif twtHeaderType == 10 %}
{# ThemeWare: Klassen für "Header 10" hinzufügen #customHeader #}
{% set blockClassesMenuButton = ['d-none twt-sticky-header-menu-button']|merge(blockClassesMenuButton) %}
{% else %}
{# ThemeWare: Klassen für alle anderen Header hinzufügen #}
{% if twtHeaderSearchType == 2 or twtHeaderSearchType == 4 %}
{# ThemeWare: "Flyout search" (twt-header-search-type 2) oder "Fullscreen search" (twt-header-search-type 4) aktiv #}
{% set blockClassesMenuButton = ['d-block d-lg-none']|merge(blockClassesMenuButton) %}
{% else %}
{% set blockClassesMenuButton = ['d-block d-sm-none']|merge(blockClassesMenuButton) %}
{% endif %}
{% endif %}
{% endif %}
{# ThemeWare: 'Top navigation' => button #}
{# Anpassungen falls die "Top-Navigation" als "Button" (default) dargestellt werden soll... #}
{% if twtNavMainShow == 3 %}
{# ThemeWare: Klassen für die "Flyout-Suche" oder die "Fullscreen-Suche" hinzufügen #}
{% if twtHeaderSearchType == 2 or twtHeaderSearchType == 4 %}
{% set blockClassesMenuButton = ['d-block']|merge(blockClassesMenuButton) %}
{% else %}
{# ThemeWare: Klassen für "Header 2.1" hinzufügen #}
{% if twtHeaderType == 4 %}
{% set blockClassesMenuButton = ['d-sm-block']|merge(blockClassesMenuButton) %}
{% else %}
{% set blockClassesMenuButton = ['d-sm-none d-lg-block']|merge(blockClassesMenuButton) %}
{% endif %}
{% endif %}
{% endif %}
{# ThemeWare: Anpassungen am Toggle-Button der "Top-Navigation" #}
{# Klassen (siehe oben) hinzufügen und Label 'Navigation' ergänzen #}
<div class="d-block d-xl-none col">
<div class="menu-button">
{% block layout_header_navigation_toggle_button %}
<button class="btn nav-main-toggle-btn header-actions-btn" type="button" title="{{ "twt.header.offcanvasMenuText"|trans }}" data-offcanvas-menu="true" aria-label="{{ "general.menuLink"|trans|striptags }}">
{% block layout_header_navigation_toggle_button_icon %}
{% sw_icon 'stack' %}
{% endblock %}
</button>
{% endblock %}
</div>
</div>
{% endblock %}