vendor/shopware/storefront/Resources/views/storefront/layout/header/header.html.twig line 1

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