custom/plugins/BjerregaardTheme/src/Resources/views/storefront/layout/header/header.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@zenitPlatformHorizon/storefront/layout/header/header.html.twig' %}
  2.     {% block layout_header_navigation %}
  3.         <div class="nav-header {{ navHeaderClasses|join(' ') }}">
  4.             <div class="container">
  5.                 {# @deprecated @zenit tag:v3.1.0 - Bootstrap v5 #}
  6.                 <div class="header-row row{% if feature('v6.5.0.0') %} gx-1{% else %} header-gutters{% endif %} align-items-center {{ headerRowClasses }}">
  7.                     {% block layout_header_logo %}
  8.                         <div class="header-logo-col col-auto col-md-auto col-lg-2 order-1">
  9.                             {% sw_include '@Storefront/storefront/layout/header/logo.html.twig' %}
  10.                         </div>
  11.                     {% endblock %}
  12.                     {% if theme_config('zen-header-style') is same as ('single-line') %}
  13.                         {% block layout_header_main_navigation %}
  14.                             <div class="header-nav-col nav-main d-none d-lg-flex col-lg order-lg-3 bg-opacity-100">
  15.                                 {% block layout_header_main_navigation_inner %}
  16.                                     {% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
  17.                                 {% endblock %}
  18.                             </div>
  19.                         {% endblock %}
  20.                     {% endif %}
  21.                     {% if theme_config('zen-header-style') is same as ('two-line') %}
  22.                         {% block zen_layout_header_top_bar %}
  23.                             <div class="header-top-bar-col {{ topBarClasses }}">
  24.                                 <div class="row {{ gridNoGuttersClass }}">
  25.                                     {% block zen_layout_navigation_offcanvas_navigation_action_language %}
  26.                                         {% sw_include '@Storefront/storefront/layout/header/actions/language-widget.html.twig' %}
  27.                                     {% endblock %}
  28.                                     {% block zen_layout_navigation_offcanvas_navigation_action_currency %}
  29.                                         {% sw_include '@Storefront/storefront/layout/header/actions/currency-widget.html.twig' %}
  30.                                     {% endblock %}
  31.                                     {% block zen_layout_navigation_offcanvas_navigation_action_service %}
  32.                                     {% endblock %}
  33.                                 </div>
  34.                             </div>
  35.                         {% endblock %}
  36.                     {% endif %}
  37.                     {% block layout_header_navigation_toggle %}
  38.                         <div class="header-menu-button {{ mainNavigationToggleClasses }}"
  39.                              data-zen-tooltip-title="{{ "general.menuLink"|trans|striptags }}">
  40.                             {{ block('layout_header_navigation_toggle_button') }}
  41.                         </div>
  42.                     {% endblock %}
  43.                     {% block layout_header_search %}
  44.                         {% if theme_config('zen-search-style') is not same as('expandable') %}
  45.                             <div class="header-search-col col-12 col-sm-auto col-lg-4 order-4 order-sm-2 ml-auto ml-lg-0 mr-lg-0">
  46.                                 {% if theme_config('zen-search-style') is same as('overlay') %}
  47.                                     {% block zen_layout_header_search_overlay_close %}
  48.                                         <button class="d-none js-overlay-close"
  49.                                                 type="button"
  50.                                                 aria-label="Close">
  51.                                             {% block zen_layout_header_search_overlay_close_icon %}
  52.                                                 {% sw_icon 'x' style { 'size': 'lg' } %}
  53.                                             {% endblock %}
  54.                                         </button>
  55.                                     {% endblock %}
  56.                                 {% endif %}
  57.                                 {% sw_include '@Storefront/storefront/layout/header/search.html.twig' %}
  58.                             </div>
  59.                         {% endif %}
  60.                     {% endblock %}
  61.                     {% block layout_header_actions %}
  62.                         <div class="header-actions-col {{ actionClasses }}">
  63.                             {# @deprecated @zenit tag:v3.1.0 - Bootstrap v5 #}
  64.                             <div class="row{% if feature('v6.5.0.0') %} gx-1{% else %} no-gutters{% endif %}{% if theme_config('zen-logo-position') is not same as ('right') %} justify-content-end{% endif %}">
  65.                                 {% block layout_header_search_toggle %}
  66.                                     {{ parent() }}
  67.                                 {% endblock %}
  68.                                 {% if config('core.cart.wishlistEnabled') %}
  69.                                     {% block layout_header_actions_wishlist %}
  70.                                         <div class="col-auto">
  71.                                             <div class="header-wishlist"
  72.                                                  data-zen-tooltip-title="{{ "header.wishlist"|trans|striptags }}">
  73.                                                 <a class="btn header-wishlist-btn header-actions-btn"
  74.                                                    href="{{ path('frontend.wishlist.page') }}"
  75.                                                    title="{{ 'header.wishlist'|trans|striptags }}"
  76.                                                    aria-label="{{ 'header.wishlist'|trans|striptags }}">
  77.                                                     {% sw_include '@Storefront/storefront/layout/header/actions/wishlist-widget.html.twig' %}
  78.                                                 </a>
  79.                                             </div>
  80.                                         </div>
  81.                                     {% endblock %}
  82.                                 {% endif %}
  83.                                 {% block layout_header_actions_cart %}
  84.                                     <div class="col-auto">
  85.                                         <div class="header-cart"
  86.                                              data-offcanvas-cart="true"
  87.                                              data-zen-tooltip-title="{{ "checkout.cartTitle"|trans|striptags }}">
  88.                                             <a class="btn header-cart-btn header-actions-btn"
  89.                                                href="{{ path('frontend.checkout.cart.page') }}"
  90.                                                data-cart-widget="true"
  91.                                                title="{{ 'checkout.cartTitle'|trans|striptags }}"
  92.                                                aria-label="{{ 'checkout.cartTitle'|trans|striptags }}">
  93.                                                 {% sw_include '@Storefront/storefront/layout/header/actions/cart-widget.html.twig' %}
  94.                                             </a>
  95.                                         </div>
  96.                                     </div>
  97.                                 {% endblock %}
  98.                                 {% block layout_header_actions_account %}
  99.                                     {{ parent() }}
  100.                                 {% endblock %}
  101.                                 {% block zen_layout_header_top_bar_toggle %}
  102.                                     {# marketingBannerId is needed for storagekey invalidation #}
  103.                                     {% set marketingBanner = [] %}
  104.                                     {% set marketingBanner = [config('zenitPlatformHorizon.config.marketingActive')]|merge(marketingBanner) %}
  105.                                     {% set marketingBanner = [config('zenitPlatformHorizon.config.marketingText')]|merge(marketingBanner) %}
  106.                                     {% set marketingBanner = [config('zenitPlatformHorizon.config.marketingButtonText')]|merge(marketingBanner) %}
  107.                                     {% set marketingBanner = [config('zenitPlatformHorizon.config.marketingButtonLink')]|merge(marketingBanner) %}
  108.                                     {% set marketingBanner = [config('zenitPlatformHorizon.config.marketingButtonTarget')]|merge(marketingBanner) %}
  109.                                     {% set marketingBannerId = marketingBanner|json_encode()|length %}
  110.                                     {% set collapseTopBarOptions = {
  111.                                         id: topBarStyle ~ '-' ~ marketingBannerId,
  112.                                         type: topBarStyle
  113.                                     } %}
  114.                                     {% if topBarStyle is not same as ('default') and topBarStyle is not same as ('hidden')  %}
  115.                                         {% if theme_config('zen-header-style') is not same as ('two-line') or (theme_config('zen-header-style') is same as ('two-line') and config('zenitPlatformHorizon.config.marketingActive')) %}
  116.                                             <div class="col-auto d-none d-lg-block">
  117.                                                 <div class="top-bar-toggle"
  118.                                                      data-zen-tooltip-title="{{ "zentheme.general.moreLink"|trans|striptags }}">
  119.                                                     <button class="btn header-actions-btn top-bar-toggle-btn"
  120.                                                             type="button"
  121.                                                             aria-label="{{ "zentheme.general.moreLink"|trans|striptags }}"
  122.                                                         {% if topBarStyle is same as ('offcanvas') %}
  123.                                                             data-offcanvas-top-bar="true"
  124.                                                     {% endif %}
  125.                                                     {% if topBarStyle is same as ('collapsible') %}
  126.                                                         {{ dataBsToggleAttr }}="collapse"
  127.                                                         {{ dataBsTargetAttr }}="#topBarCollapse"
  128.                                                         aria-expanded="true"
  129.                                                         data-zen-collapse-top-bar-options="{{ collapseTopBarOptions|json_encode }}"
  130.                                                     {% endif %}
  131.                                                     {% if topBarStyle is same as ('expandable') %}
  132.                                                     {{ dataBsToggleAttr }}="collapse"
  133.                                                     {{ dataBsTargetAttr }}="#topBarCollapse"
  134.                                                     aria-expanded="false"
  135.                                                     data-zen-collapse-top-bar-options="{{ collapseTopBarOptions|json_encode }}"
  136.                                                     {% endif %}>
  137.                                                     {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-lg')
  138.                                                         or theme_config('zen-main-navigation-style') is same as ('offcanvas-xl')
  139.                                                         or theme_config('zen-header-style') is same as ('single-line') and theme_config('zen-logo-position') is same as ('center') and theme_config('zen-header-style-mobile') is same as ('single-line') %}
  140.                                                         {% sw_icon 'more-vertical' %}
  141.                                                     {% else %}
  142.                                                         {% sw_icon 'stack' %}
  143.                                                     {% endif %}
  144.                                                     </button>
  145.                                                 </div>
  146.                                             </div>
  147.                                         {% endif %}
  148.                                     {% endif %}
  149.                                 {% endblock %}
  150.                             </div>
  151.                         </div>
  152.                     {% endblock %}
  153.                 </div>
  154.             </div>
  155.             {% block layout_header_search_expandable %}
  156.                 {% if theme_config('zen-search-style') is same as('expandable') %}
  157.                     <div class="header-search-col">
  158.                         {% sw_include '@Storefront/storefront/layout/header/search.html.twig' %}
  159.                     </div>
  160.                 {% endif %}
  161.             {% endblock %}
  162.         </div>
  163.     {% endblock %}