custom/static-plugins/LnbThemeDefault/src/Resources/views/storefront/layout/header/header.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@parent/storefront/layout/header/header.html.twig' %}
  2. {% block layout_top_bar %}
  3. {% endblock %}
  4. {% block layout_header_navigation %}
  5.     <div class="row align-items-center header-row">
  6.         {% block layout_header_logo %}
  7.             <div class="col-5 col-lg-auto header-logo-col">
  8.                 {% sw_include '@Storefront/storefront/layout/header/logo.html.twig' %}
  9.             </div>
  10.         {% endblock %}
  11.         <div class="nav-main">
  12.             {% block base_navigation_inner %}
  13.                 {% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
  14.             {% endblock %}
  15.         </div>
  16.         {% block layout_header_search %}
  17.             <div class="col-12 order-2 col-sm order-sm-1 header-search-col">
  18.                 <div class="row">
  19.                     <div class="col">
  20.                         {% sw_include '@Storefront/storefront/layout/header/search.html.twig' %}
  21.                     </div>
  22.                 </div>
  23.             </div>
  24.         {% endblock %}
  25.         {% block layout_header_actions %}
  26.             <div class="col-7 order-1 col-sm-auto order-sm-2 header-actions-col">
  27.                 <div class="row no-gutters justify-content-end ">
  28.                     {% block layout_header_navigation_toggle %}
  29.                     {% endblock %}
  30.                     {% block layout_header_search_toggle %}
  31.                     {% endblock %}
  32.                     {% if config('core.cart.wishlistEnabled') %}
  33.                         {% block layout_header_actions_wishlist %}
  34.                             <div class="col-auto">
  35.                                 <div class="header-wishlist">
  36.                                     <a class="btn header-wishlist-btn header-actions-btn"
  37.                                        href="{{ path('frontend.wishlist.page') }}"
  38.                                        title="{{ 'header.wishlist'|trans|striptags }}"
  39.                                        aria-label="{{ 'header.wishlist'|trans|striptags }}">
  40.                                         {% sw_include '@Storefront/storefront/layout/header/actions/wishlist-widget.html.twig' %}
  41.                                     </a>
  42.                                 </div>
  43.                             </div>
  44.                         {% endblock %}
  45.                     {% endif %}
  46.                     {% block layout_header_actions_account %}
  47.                         <div class="col-auto d-sm-none">
  48.                             <div class="search-menu">
  49.                                 <button class="btn header-actions-btn search-toggle-btn js-search-toggle-btn collapsed"
  50.                                         type="button"
  51.                                 {{ dataBsToggleAttr }}="collapse"
  52.                                 {{ dataBsTargetAttr }}="#searchCollapse"
  53.                                 aria-expanded="false"
  54.                                 aria-controls="searchCollapse"
  55.                                 aria-label="{{ "header.searchButton"|trans|striptags }}">
  56.                                 {% sw_icon 'magnifier' style {
  57.                                     'pack': 'lnb-icons',
  58.                                 } %}
  59.                                 </button>
  60.                             </div>
  61.                         </div>
  62.                         <div class="col-auto d-none d-md-block">
  63.                             {% sw_include '@Storefront/storefront/layout/header/actions/language-widget.html.twig' %}
  64.                         </div>
  65.                         <div class="col-auto">
  66.                             <div class="account-menu">
  67.                                 {% if context.customer is null %}
  68.                                     <a class="header-direct-login-link"
  69.                                        href="{{ path('frontend.account.login.page') }}"
  70.                                        title="{{ "account.loginSubmit"|trans|striptags }}"
  71.                                     >
  72.                                         <span>
  73.                                             {% sw_icon 'user' style {
  74.                                                 'pack': 'lnb-icons',
  75.                                             } %}
  76.                                         </span>
  77.                                         <span class="btn-text">
  78.                                            {{ "LnbThemeDefault.header.actions.account.label"|trans }}
  79.                                         </span>
  80.                                     </a>
  81.                                 {% else %}
  82.                                     {% sw_include '@Storefront/storefront/layout/header/actions/account-widget.html.twig' %}
  83.                                 {% endif %}
  84.                             </div>
  85.                         </div>
  86.                     {% endblock %}
  87.                     {% block layout_header_actions_cart %}
  88.                         <div class="col-auto">
  89.                             <div class="header-cart"
  90.                                  data-offcanvas-cart="true">
  91.                                 <a class="btn header-cart-btn header-actions-btn"
  92.                                    href="{{ path('frontend.checkout.cart.page') }}"
  93.                                    data-cart-widget="true"
  94.                                    title="{{ 'checkout.cartTitle'|trans|striptags }}"
  95.                                    aria-label="{{ 'checkout.cartTitle'|trans|striptags }}">
  96.                                     {% sw_include '@Storefront/storefront/layout/header/actions/cart-widget.html.twig' %}
  97.                                 </a>
  98.                             </div>
  99.                         </div>
  100.                         <div class="col-auto d-xl-none">
  101.                             <div class="menu-button">
  102.                                 {% block layout_header_navigation_toggle_button %}
  103.                                     <button class="btn nav-main-toggle-btn header-actions-btn"
  104.                                             type="button"
  105.                                             aria-label="{{ "general.menuLink"|trans|striptags }}">
  106.                                         {% block layout_header_navigation_toggle_button_icon %}
  107.                                             {% sw_icon 'stack' %}
  108.                                         {% endblock %}
  109.                                     </button>
  110.                                 {% endblock %}
  111.                             </div>
  112.                         </div>
  113.                     {% endblock %}
  114.                 </div>
  115.             </div>
  116.         {% endblock %}
  117.     </div>
  118. {% endblock %}