vendor/shopware/platform/src/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.                         {% if config('core.cart.wishlistEnabled') %}
  72.                             {% block layout_header_actions_wishlist %}
  73.                                 <div class="col-auto">
  74.                                     <div class="header-wishlist">
  75.                                         <a class="btn header-wishlist-btn header-actions-btn"
  76.                                            href="{{ path('frontend.wishlist.page') }}"
  77.                                            title="{{ 'header.wishlist'|trans|striptags }}"
  78.                                            aria-label="{{ 'header.wishlist'|trans|striptags }}">
  79.                                             {% sw_include '@Storefront/storefront/layout/header/actions/wishlist-widget.html.twig' %}
  80.                                         </a>
  81.                                     </div>
  82.                                 </div>
  83.                             {% endblock %}
  84.                         {% endif %}
  85.                         {% block layout_header_actions_account %}
  86.                             <div class="col-auto">
  87.                                 <div class="account-menu">
  88.                                     {% sw_include '@Storefront/storefront/layout/header/actions/account-widget.html.twig' %}
  89.                                 </div>
  90.                             </div>
  91.                         {% endblock %}
  92.                         {% block layout_header_actions_cart %}
  93.                             <div class="col-auto">
  94.                                 <div class="header-cart"
  95.                                      data-offcanvas-cart="true">
  96.                                     <a class="btn header-cart-btn header-actions-btn"
  97.                                        href="{{ path('frontend.checkout.cart.page') }}"
  98.                                        data-cart-widget="true"
  99.                                        title="{{ 'checkout.cartTitle'|trans|striptags }}"
  100.                                        aria-label="{{ 'checkout.cartTitle'|trans|striptags }}">
  101.                                         {% sw_include '@Storefront/storefront/layout/header/actions/cart-widget.html.twig' %}
  102.                                     </a>
  103.                                 </div>
  104.                             </div>
  105.                         {% endblock %}
  106.                     </div>
  107.                 </div>
  108.             {% endblock %}
  109.         </div>
  110.     {% endblock %}
  111. {% endblock %}