custom/plugins/IabTheme/src/Resources/views/storefront/layout/header/header.html.twig line 1

Open in your IDE?
  1. {% extends '@Storefront/storefront/layout/header/header.html.twig' %}
  2. {% block layout_top_bar %} {# moved the top bar into the menu #}
  3. {% endblock %}
  4. {% block layout_header_logo %}
  5.         <div class="col-4 col-sm-3 header-logo-col">
  6.             <div class="header-logo-wrapper">
  7.                 {% sw_include '@Storefront/storefront/layout/header/logo.html.twig' %}
  8.             </div>
  9.         </div>
  10. {% endblock %}
  11. {% block layout_header_search %}
  12.     <div class="col-12 order-2 col-sm order-md-1 header-search-col collapse" id="searchCollapse">
  13.         <div class="col">
  14.             {% sw_include '@Storefront/storefront/layout/header/search.html.twig' %}
  15.         </div>
  16.     </div>
  17. {% endblock %}
  18. {% block layout_header_actions %}
  19.     <div class="col-8 col-sm-9 order-1 order-md-2 header-actions-col pr-1 pl-1 pr-sm-5">
  20.         <div class="row {{ gridNoGuttersClass }} header-actions-row">
  21.             {% set quickNavigation = page.header.navigation.tree|filter(n =>
  22.                 n.category.translated.name == 'Quick Navigation')|first %}
  23.             {% if quickNavigation %}
  24.                 {% for item in quickNavigation.children %}
  25.                     <div class="quick-navigation col-auto">
  26.                         <a class="quick-navigation-link{% if navigationTree.id == page.header.navigation.active.id or navigationTree.id in activePath %} active{% endif %}"
  27.                                 href="{{ category_url(item.category) }}"
  28.                                 itemprop="url"
  29.                                 title="{{ item.category.translated.name }}">
  30.                             {{ item.category.translated.name }}
  31.                         </a>
  32.                     </div>
  33.                 {% endfor %}
  34.             {% endif %}
  35.             {% block layout_header_search_toggle %}
  36.                 <div class="col-auto ml-auto"> <!-- removed d-sm-none from parent -->
  37.                     <div class="search-toggle">
  38.                         <button class="btn header-actions-btn search-toggle-btn js-search-toggle-btn collapsed"
  39.                                 type="button"
  40.                                 {{ dataBsToggleAttr }}="collapse"
  41.                                 {{ dataBsTargetAttr }}="#searchCollapse"
  42.                                 aria-expanded="false"
  43.                                 aria-controls="searchCollapse"
  44.                                 aria-label="{{ "header.searchButton"|trans|striptags }}">
  45.                             {% sw_icon 'magnifier' style { namespace: 'IabTheme' } %}
  46.                         </button>
  47.                     </div>
  48.                 </div>
  49.             {% endblock %}
  50.             {% if config('core.cart.wishlistEnabled') and context.customer %}
  51.                 {{ block('layout_header_actions_wishlist') }}
  52.             {% endif %}
  53.             {{ block('layout_header_actions_account') }}
  54.             {{ block('layout_header_actions_cart') }}
  55.             {% sw_include '@Storefront/storefront/layout/header/top-bar.html.twig' %}
  56.             {% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
  57.             {% block layout_header_navigation_toggle %}
  58.                 <div class="col d-lg-none flex-grow-0">
  59.                     <div class="menu-button">
  60.                         {% block layout_header_navigation_toggle_button %}
  61.                             <button class="btn nav-main-toggle-btn header-actions-btn"
  62.                                     type="button"
  63.                                     data-offcanvas-menu="true"
  64.                                     aria-label="{{ "general.menuLink"|trans|striptags }}">
  65.                                 {% block layout_header_navigation_toggle_button_icon %}
  66.                                     {% sw_icon 'stack' %}
  67.                                 {% endblock %}
  68.                             </button>
  69.                         {% endblock %}
  70.                     </div>
  71.                 </div>
  72.             {% endblock %}
  73.     </div>
  74. {% endblock %}