custom/plugins/WebLabels/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. {% block layout_header_actions %}
  3.                 <div class="col-12 order-1 col-sm-auto order-sm-2 header-actions-col">
  4.                     <div class="row no-gutters">
  5.                         {% block layout_header_navigation_toggle %}
  6.                             <div class="col d-sm-none">
  7.                                 <div class="menu-button">
  8.                                     {% block layout_header_navigation_toggle_button %}
  9.                                         <button class="btn nav-main-toggle-btn header-actions-btn"
  10.                                                 type="button"
  11.                                                 data-offcanvas-menu="true"
  12.                                                 aria-label="{{ "general.menuLink"|trans|striptags }}">
  13.                                             {% block layout_header_navigation_toggle_button_icon %}
  14.                                                 {% sw_icon 'stack' %}
  15.                                             {% endblock %}
  16.                                         </button>
  17.                                     {% endblock %}
  18.                                 </div>
  19.                             </div>
  20.                         {% endblock %}
  21.                         {% block layout_header_search_toggle %}
  22.                             <div class="col-auto d-sm-none">
  23.                                 <div class="search-toggle">
  24.                                     <button class="btn header-actions-btn search-toggle-btn js-search-toggle-btn collapsed"
  25.                                             type="button"
  26.                                             data-toggle="collapse"
  27.                                             data-target="#searchCollapse"
  28.                                             aria-expanded="false"
  29.                                             aria-controls="searchCollapse"
  30.                                             aria-label="{{ "header.searchButton"|trans|striptags }}">
  31.                                         {% sw_icon 'search' %}
  32.                                     </button>
  33.                                 </div>
  34.                             </div>
  35.                         {% endblock %}
  36.                         {% if config('core.cart.wishlistEnabled') %}
  37.                             {% block layout_header_actions_wishlist %}
  38.                                 <div class="col-auto">
  39.                                     <div class="header-wishlist">
  40.                                         <a class="btn header-wishlist-btn header-actions-btn"
  41.                                            href="{{ path('frontend.wishlist.page') }}"
  42.                                            title="{{ 'header.wishlist'|trans|striptags }}"
  43.                                            aria-label="{{ 'header.wishlist'|trans|striptags }}">
  44.                                             {% sw_include '@Storefront/storefront/layout/header/actions/wishlist-widget.html.twig' %}
  45.                                         </a>
  46.                                     </div>
  47.                                 </div>
  48.                             {% endblock %}
  49.                         {% endif %}
  50.                         {% block layout_header_actions_account %}
  51.                             <div class="col-auto">
  52.                                 <div class="account-menu">
  53.                                     {% sw_include '@Storefront/storefront/layout/header/actions/account-widget.html.twig' %}
  54.                                 </div>
  55.                             </div>
  56.                         {% endblock %}
  57.                         {% block layout_header_actions_cart %}
  58.                             <div class="col-auto">
  59.                                 <div class="header-cart"
  60.                                      data-offcanvas-cart="true">
  61.                                     <a class="btn header-cart-btn header-actions-btn"
  62.                                        href="{{ path('frontend.checkout.cart.page') }}"
  63.                                        data-cart-widget="true"
  64.                                        title="{{ 'checkout.cartTitle'|trans|striptags }}"
  65.                                        aria-label="{{ 'checkout.cartTitle'|trans|striptags }}">
  66.                                         {% sw_include '@Storefront/storefront/layout/header/actions/cart-widget.html.twig' %}
  67.                                     </a>
  68.                                 </div>
  69.                             </div>
  70.                         {% endblock %}
  71.                     </div>
  72.                      {% if context.customer.firstName %}<p class="header-name">Moin {{ context.customer.firstName }}</p>{% endif %}
  73.                 </div>
  74.             {% endblock %}