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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/header/header.html.twig' %}
  2. {% set searchBarCollapsed = true %} {# false = search-bar not is collapsed, true = search-bar is collapsed #}
  3. {% block layout_header %}
  4.     {% block layout_top_bar %}
  5.         {% sw_include '@Storefront/storefront/layout/header/top-bar.html.twig' %}
  6.     {% endblock %}
  7.     {% block layout_header_navigation %}
  8.         <div class="row align-items-center header-row">
  9.                 {% block layout_header_logo %}
  10.                     <div class="col-2 col-lg-auto header-logo-col">
  11.                         {% sw_include '@Storefront/storefront/layout/header/logo.html.twig' %}
  12.                     </div>
  13.             {% endblock %}
  14.             {% block layout_header_nav %}
  15.                 <div class="header-nav-col d-none d-xl-block">
  16.                     {% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
  17.                 </div>
  18.             {% endblock %}
  19.             {% block layout_header_search %}
  20.                         <div class="search col-md">
  21.                             {% sw_include '@Storefront/storefront/layout/header/search.html.twig' %}
  22.                         </div>
  23.             {% endblock %}
  24.             {% block layout_header_actions %}
  25.                 <div class="header-actions-col">
  26.                     <div class="row no-gutters">
  27.                         {% block layout_header_navigation_toggle %}
  28.                             <div class="col d-xl-none">
  29.                                 <div class="menu-button">
  30.                                     {% block layout_header_navigation_toggle_button %}
  31.                                         <button class="btn nav-main-toggle-btn header-actions-btn"
  32.                                                 type="button"
  33.                                                 data-offcanvas-menu="true"
  34.                                                 aria-label="{{ "general.menuLink"|trans|striptags }}">
  35.                                             {% block layout_header_navigation_toggle_button_icon %}
  36.                                                 {% sw_icon 'stack' %}
  37.                                             {% endblock %}
  38.                                         </button>
  39.                                     {% endblock %}
  40.                                 </div>
  41.                             </div>
  42.                         {% endblock %}
  43.                         {% block layout_header_actions_account %}
  44.                             <div class="col-auto">
  45.                                 <div class="account-menu">
  46.                                     {% sw_include '@Storefront/storefront/layout/header/actions/account-widget.html.twig' %}
  47.                                 </div>
  48.                             </div>
  49.                         {% endblock %}
  50.                         {% block layout_header_actions_cart %}
  51.                             <div class="col-auto">
  52.                                 <div class="header-cart"
  53.                                      data-offcanvas-cart="true">
  54.                                     <a class="btn header-cart-btn header-actions-btn"
  55.                                        href="{{ path('frontend.checkout.cart.page') }}"
  56.                                        data-cart-widget="true"
  57.                                        title="{{ 'checkout.cartTitle'|trans|striptags }}"
  58.                                        aria-label="{{ 'checkout.cartTitle'|trans|striptags }}">
  59.                                         {% sw_include '@Storefront/storefront/layout/header/actions/cart-widget.html.twig' %}
  60.                                     </a>
  61.                                 </div>
  62.                             </div>
  63.                         {% endblock %}
  64.                         {% block layout_header_email %}
  65.                             <div>
  66.                                 <a class="icon email-item"
  67.                                    href="https://www.unserekinder.at/kontakt/"></a>
  68.                             </div>
  69.                         {% endblock %}
  70.                         {% block layout_header_search_toggle %}
  71.                             <div class="col-auto">
  72.                                 <div class="search-toggle">
  73.                                     <button class="btn header-actions-btn search-toggle-btn js-search-toggle-btn collapsed"
  74.                                             type="button"
  75.                                             data-toggle="collapse"
  76.                                             data-target="#searchCollapse"
  77.                                             aria-expanded="false"
  78.                                             aria-controls="searchCollapse"
  79.                                             aria-label="{{ "header.searchButton"|trans|striptags }}">
  80.                                         {% sw_icon 'search' %}
  81.                                     </button>
  82.                                 </div>
  83.                             </div>
  84.                         {% endblock %}
  85.                     </div>
  86.                 </div>
  87.             {% endblock %}
  88.         </div>
  89.     {% endblock %}
  90. {% endblock %}