{% sw_extends '@Storefront/storefront/layout/header/header.html.twig' %}{% block layout_header %} {% set topBarStyle = theme_config('zen-top-bar-style') %} {% if theme_config('zen-top-bar-style') is same as ('hidden') and (page.header.languages.count > 1 or page.header.currencies.count > 1 or config('zenitPlatformGravity.config.marketingActive')) %} {% set topBarStyle = 'offcanvas' %} {% else %} {% set topBarStyle = theme_config('zen-top-bar-style') %} {% endif %} {% block layout_header_navigation %} <div class="nav-header {{ navHeaderClasses|join(' ') }}"> <div class="container"> <div class="header-row row header-gutters align-items-center {{ headerRowClasses }}"> {% block layout_header_logo %} <div class="header-logo-col {{ logoClasses }}"> {% sw_include '@Storefront/storefront/layout/header/logo.html.twig' %} </div> {% endblock %} {% if theme_config('zen-header-style') is same as ('single-line') %} {% block layout_header_main_navigation %} <div class="header-nav-col nav-main {{ mainNavigationClasses }} {{ navMainClasses|join(' ') }}"> {% block layout_header_main_navigation_inner %} {% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %} {% endblock %} </div> {% endblock %} {% endif %} {% if theme_config('zen-header-style') is same as ('two-line') %} {% block zen_layout_header_top_bar %} <div class="header-top-bar-col {{ topBarClasses }}"> <div class="row no-gutters"> {% block zen_layout_navigation_offcanvas_navigation_action_language %} {% sw_include '@Storefront/storefront/layout/header/actions/language-widget.html.twig' %} {% endblock %} {% block zen_layout_navigation_offcanvas_navigation_action_currency %} {% sw_include '@Storefront/storefront/layout/header/actions/currency-widget.html.twig' %} {% endblock %} {% block zen_layout_navigation_offcanvas_navigation_action_service %} {% sw_include '@Storefront/storefront/layout/header/actions/service-menu-widget.html.twig' %} {% endblock %} </div> </div> {% endblock %} {% endif %} {% block layout_header_navigation_toggle %} <div class="header-menu-button {{ mainNavigationToggleClasses }}"> {% block layout_header_navigation_toggle_button %} <button class="btn nav-main-toggle-btn header-actions-btn" type="button" data-offcanvas-menu="true" aria-label="{{ "general.menuLink"|trans|striptags }}"> {% block layout_header_navigation_toggle_button_icon %} {% sw_icon 'stack' %} {% endblock %} </button> {% endblock %} </div> {% endblock %} {% block layout_header_search %} <div class="nav-main order-2 {{ navMainClasses|join(' ') }}"> {% block base_navigation_inner %} {% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %} {% endblock %} </div> {% endblock %} {% block layout_header_actions %} <div class="header-actions-col col-auto order-3 ml-auto ml-lg-auto"> <div class="row no-gutters{% if theme_config('zen-logo-position') is not same as ('right') %} justify-content-end{% endif %}"> {% block layout_header_search_toggle %} {% endblock %} {% if config('core.cart.wishlistEnabled') %} {% block layout_header_actions_wishlist %} <div class="col-auto"> <div class="header-wishlist"> <a class="btn header-wishlist-btn header-actions-btn" href="{{ path('frontend.wishlist.page') }}" title="{{ 'header.wishlist'|trans|striptags }}" aria-label="{{ 'header.wishlist'|trans|striptags }}"> {% sw_include '@Storefront/storefront/layout/header/actions/wishlist-widget.html.twig' %} </a> </div> </div> {% endblock %} {% endif %} {% block layout_header_actions_account %} <div class="col-auto"> <div class="account-menu"> {% sw_include '@Storefront/storefront/layout/header/actions/account-widget.html.twig' %} </div> </div> {% endblock %} {% block layout_header_actions_cart %} <div class="col-auto"> <div class="header-cart" data-offcanvas-cart="true"> <a class="btn header-cart-btn header-actions-btn" href="{{ path('frontend.checkout.cart.page') }}" data-cart-widget="true" title="{{ 'checkout.cartTitle'|trans|striptags }}" aria-label="{{ 'checkout.cartTitle'|trans|striptags }}"> {% sw_include '@Storefront/storefront/layout/header/actions/cart-widget.html.twig' %} </a> </div> </div> {% endblock %} {% block zen_layout_header_top_bar_toggle %} {# marketingBannerId is needed for storagekey invalidation #} {% set marketingBanner = [] %} {% set marketingBanner = [config('zenitPlatformGravity.config.marketingActive')]|merge(marketingBanner) %} {% set marketingBanner = [config('zenitPlatformGravity.config.marketingText')]|merge(marketingBanner) %} {% set marketingBanner = [config('zenitPlatformGravity.config.marketingButtonText')]|merge(marketingBanner) %} {% set marketingBanner = [config('zenitPlatformGravity.config.marketingButtonLink')]|merge(marketingBanner) %} {% set marketingBanner = [config('zenitPlatformGravity.config.marketingButtonTarget')]|merge(marketingBanner) %} {% set marketingBannerId = marketingBanner|json_encode()|length %} {% set zenCollapseTopBarOptions = { id: topBarStyle ~ '-' ~ marketingBannerId, type: topBarStyle } %} {% endblock %} </div> </div> {% endblock %} </div> </div> {% block layout_header_search_expandable %} {% if theme_config('zen-search-style') is same as('expandable') %} <div class="header-search-col"> {% sw_include '@Storefront/storefront/layout/header/search.html.twig' %} </div> {% endif %} {% endblock %} </div> {% endblock %}{% endblock %}