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

  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
  20.                                             class="btn nav-main-toggle-btn header-actions-btn"
  21.                                             type="button"
  22.                                             {# @deprecated tag:v6.6.0 - Registering plugin on selector "data-offcanvas-menu" is deprecated. Use "data-off-canvas-menu" instead #}
  23.                                             {% if feature('v6.6.0.0') %}
  24.                                                 data-off-canvas-menu="true"
  25.                                             {% else %}
  26.                                                 data-offcanvas-menu="true"
  27.                                             {% endif %}
  28.                                             aria-label="{{ "general.menuLink"|trans|striptags }}"
  29.                                         >
  30.                                             {% block layout_header_navigation_toggle_tablet_button_icon %}
  31.                                                 {% sw_icon 'stack' %}
  32.                                             {% endblock %}
  33.                                         </button>
  34.                                     {% endblock %}
  35.                                 </div>
  36.                             {% endblock %}
  37.                         </div>
  38.                         <div class="col">
  39.                             {% sw_include '@Storefront/storefront/layout/header/search.html.twig' %}
  40.                         </div>
  41.                     </div>
  42.                 </div>
  43.             {% endblock %}
  44.             {% block layout_header_actions %}
  45.                 <div class="col-12 order-1 col-sm-auto order-sm-2 header-actions-col">
  46.                     <div class="row g-0">
  47.                         {% block layout_header_navigation_toggle %}
  48.                             <div class="col d-sm-none">
  49.                                 <div class="menu-button">
  50.                                     {% block layout_header_navigation_toggle_button %}
  51.                                         <button
  52.                                             class="btn nav-main-toggle-btn header-actions-btn"
  53.                                             type="button"
  54.                                             {# @deprecated tag:v6.6.0 - Registering plugin on selector "data-offcanvas-menu" is deprecated. Use "data-off-canvas-menu" instead #}
  55.                                             {% if feature('v6.6.0.0') %}
  56.                                                 data-off-canvas-menu="true"
  57.                                             {% else %}
  58.                                                 data-offcanvas-menu="true"
  59.                                             {% endif %}
  60.                                             aria-label="{{ "general.menuLink"|trans|striptags }}"
  61.                                         >
  62.                                             {% block layout_header_navigation_toggle_button_icon %}
  63.                                                 {% sw_icon 'stack' %}
  64.                                             {% endblock %}
  65.                                         </button>
  66.                                     {% endblock %}
  67.                                 </div>
  68.                             </div>
  69.                         {% endblock %}
  70.                         {% block layout_header_search_toggle %}
  71.                             <div class="col-auto d-sm-none">
  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-bs-toggle="collapse"
  76.                                             data-bs-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.                         {% if config('core.cart.wishlistEnabled') %}
  86.                             {% block layout_header_actions_wishlist %}
  87.                                 <div class="col-auto">
  88.                                     <div class="header-wishlist">
  89.                                         <a class="btn header-wishlist-btn header-actions-btn"
  90.                                            href="{{ path('frontend.wishlist.page') }}"
  91.                                            title="{{ 'header.wishlist'|trans|striptags }}"
  92.                                            aria-label="{{ 'header.wishlist'|trans|striptags }}">
  93.                                             {% sw_include '@Storefront/storefront/layout/header/actions/wishlist-widget.html.twig' %}
  94.                                         </a>
  95.                                     </div>
  96.                                 </div>
  97.                             {% endblock %}
  98.                         {% endif %}
  99.                         {% block layout_header_actions_account %}
  100.                             <div class="col-auto">
  101.                                 <div class="account-menu">
  102.                                     {% sw_include '@Storefront/storefront/layout/header/actions/account-widget.html.twig' %}
  103.                                 </div>
  104.                             </div>
  105.                         {% endblock %}
  106.                         {% block layout_header_actions_cart %}
  107.                             <div class="col-auto">
  108.                                 <div
  109.                                     class="header-cart"
  110.                                     {# @deprecated tag:v6.6.0 - Registering plugin on selector "data-offcanvas-cart" is deprecated. Use "data-off-canvas-cart" instead #}
  111.                                     {% if feature('v6.6.0.0') %}
  112.                                         data-off-canvas-cart="true"
  113.                                     {% else %}
  114.                                         data-offcanvas-cart="true"
  115.                                     {% endif %}
  116.                                 >
  117.                                     <a class="btn header-cart-btn header-actions-btn"
  118.                                        href="{{ path('frontend.checkout.cart.page') }}"
  119.                                        data-cart-widget="true"
  120.                                        title="{{ 'checkout.cartTitle'|trans|striptags }}"
  121.                                        aria-label="{{ 'checkout.cartTitle'|trans|striptags }}">
  122.                                         {% sw_include '@Storefront/storefront/layout/header/actions/cart-widget.html.twig' %}
  123.                                     </a>
  124.                                 </div>
  125.                             </div>
  126.                         {% endblock %}
  127.                     </div>
  128.                 </div>
  129.             {% endblock %}
  130.         </div>
  131.     {% endblock %}
  132. {% endblock %}