custom/plugins/DecomTheme/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 %}
  3.     {% block layout_top_bar %}
  4.         {% sw_include '@Storefront/storefront/layout/header/top-bar.html.twig' %}
  5.     {% endblock %}
  6.     {% block layout_header_navigation %}
  7.         <div class="container">
  8.             <div class="container">
  9.                 <div class="row align-items-center header-row">                
  10.                     {% block layout_header_logo %}
  11.                         <div class="col-12 col-lg-auto header-logo-col">
  12.                             {% sw_include '@Storefront/storefront/layout/header/logo.html.twig' %}
  13.                         </div>
  14.                     {% endblock %}
  15.                     {% block layout_header_menu %}
  16.                         <div class="col-12 order-2 col-sm order-sm-1 nav-main">
  17.                             {% block layout_header_menu_inner %}
  18.                                 {% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
  19.                             {% endblock %}
  20.                         </div>
  21.                     {% endblock %}
  22.                     {% block layout_header_search %}
  23.                         <div class="header-search-col">
  24.                             <div class="row">
  25.                                 <div class="col-sm-auto d-sm-block d-lg-none">
  26.                                     {% block layout_header_navigation_toggle_tablet %}
  27.                                         <div class="nav-main-toggle">
  28.                                             {% block layout_header_navigation_toggle_tablet_button %}
  29.                                                 <button class="btn nav-main-toggle-btn header-actions-btn"
  30.                                                         type="button"
  31.                                                         data-offcanvas-menu="true"
  32.                                                         aria-label="{{ "general.menuLink"|trans|striptags }}">
  33.                                                     {% block layout_header_navigation_toggle_tablet_button_icon %}
  34.                                                         {% sw_icon 'stack' %}
  35.                                                     {% endblock %}
  36.                                                     <span>
  37.                                                         MENÜ
  38.                                                     </span>
  39.                                                 </button>
  40.                                             {% endblock %}
  41.                                         </div>
  42.                                     {% endblock %}
  43.                                 </div>
  44.                                 <div class="col">
  45.                                     {% sw_include '@Storefront/storefront/layout/header/search.html.twig' %}
  46.                                 </div>
  47.                             </div>
  48.                         </div>
  49.                     {% endblock %}
  50.                     {% block layout_header_actions %}
  51.                         <div class="col-12 order-1 col-sm-auto order-sm-2 header-actions-col">
  52.                             <div class="row no-gutters">
  53.                                 {% block layout_header_navigation_toggle %}
  54.                                     <div class="col d-none">
  55.                                         <div class="menu-button">
  56.                                             {% block layout_header_navigation_toggle_button %}
  57.                                                 <button class="btn nav-main-toggle-btn header-actions-btn"
  58.                                                         type="button"
  59.                                                         data-offcanvas-menu="true"
  60.                                                         aria-label="{{ "general.menuLink"|trans|striptags }}">
  61.                                                     {% block layout_header_navigation_toggle_button_icon %}
  62.                                                         {% sw_icon 'stack' %}
  63.                                                     {% endblock %}
  64.                                                     <span>
  65.                                                         MENÜ
  66.                                                     </span>
  67.                                                 </button>
  68.                                             {% endblock %}
  69.                                         </div>
  70.                                     </div>
  71.                                 {% endblock %}
  72.                                 {% block layout_header_search_toggle %}
  73.                                     <div class="col-auto">
  74.                                         <div class="search-toggle">
  75.                                             <button class="btn header-actions-btn search-toggle-btn js-search-toggle-btn collapsed"
  76.                                                     type="button"
  77.                                                     data-toggle="collapse"
  78.                                                     data-target="#searchCollapse"
  79.                                                     aria-expanded="false"
  80.                                                     aria-controls="searchCollapse"
  81.                                                     aria-label="{{ "header.searchButton"|trans|striptags }}">
  82.                                                     {% sw_icon 'search-icon' style {'namespace': 'DecomTheme'} %}
  83.                                             </button>
  84.                                         </div>
  85.                                     </div>
  86.                                 {% endblock %}
  87.                                 {% block layout_header_actions_account %}
  88.                                     <div class="col-auto">
  89.                                         <div class="account-menu">
  90.                                             {% sw_include '@Storefront/storefront/layout/header/actions/account-widget.html.twig' %}
  91.                                         </div>
  92.                                     </div>
  93.                                 {% endblock %}                            
  94.                                 
  95.                                 {% if config('core.cart.wishlistEnabled') %}
  96.                                     {% block layout_header_actions_wishlist %}
  97.                                         <div class="col-auto">
  98.                                             <div class="header-wishlist">
  99.                                                 <a class="btn header-wishlist-btn header-actions-btn"
  100.                                                 href="{{ path('frontend.wishlist.page') }}"
  101.                                                 title="{{ 'header.wishlist'|trans|striptags }}"
  102.                                                 aria-label="{{ 'header.wishlist'|trans|striptags }}">
  103.                                                     {% sw_include '@Storefront/storefront/layout/header/actions/wishlist-widget.html.twig' %}
  104.                                                 </a>
  105.                                             </div>
  106.                                         </div>
  107.                                     {% endblock %}
  108.                                 {% endif %}
  109.                                 {% block layout_header_actions_cart %}
  110.                                     <div class="col-auto">
  111.                                         <div class="header-cart"
  112.                                             data-offcanvas-cart="true">
  113.                                             <a class="btn header-cart-btn header-actions-btn"
  114.                                             href="{{ path('frontend.checkout.cart.page') }}"
  115.                                             data-cart-widget="true"
  116.                                             title="{{ 'checkout.cartTitle'|trans|striptags }}"
  117.                                             aria-label="{{ 'checkout.cartTitle'|trans|striptags }}">
  118.                                                 {% sw_include '@Storefront/storefront/layout/header/actions/cart-widget.html.twig' %}
  119.                                             </a>
  120.                                         </div>
  121.                                     </div>
  122.                                 {% endblock %}
  123.                             </div>
  124.                         </div>
  125.                     {% endblock %}
  126.                 </div>
  127.             </div>
  128.         </div>
  129.     {% endblock %}
  130. {% endblock %}