custom/plugins/ThemeOkeonline/src/Resources/views/storefront/layout/header/versions/version-03.html.twig line 1

Open in your IDE?
  1. {% extends '@Storefront/storefront/layout/header/header.html.twig' %}
  2. {% block layout_header %}
  3.     {% if theme_config('headerSettingsLayoutDisplayHeaderTop') %}
  4.         {% block layout_top_bar %}
  5.             {% block layout_header_top_bar %}
  6.                 <div class="header-top">
  7.                     <div class="header-top-container {% if theme_config('headerStylesLayoutContainer') == 'boxed' %}container{% else %}container-fluid{% endif %}">
  8.                         {% block layout_header_top_left_wrapper %}
  9.                             <div class="header-top-left">
  10.                                 {% block layout_header_top_left_container %}
  11.                                     {% sw_include '@Storefront/storefront/layout/header/header-content-renderer.html.twig' ignore missing with { 
  12.                                         headerContent: theme_config('headerStylesLayoutHeaderTopLeft'),
  13.                                         headerImage: theme_config('headerStylesLayoutHeaderTopImage'),
  14.                                         headerLocation: 'top',
  15.                                     } %}
  16.                                 {% endblock %}
  17.                             </div>
  18.                         {% endblock %}
  19.                         {% block layout_header_top_middle_wrapper %}
  20.                             <div class="header-top-middle">
  21.                                 {% block layout_header_top_middle_container %}
  22.                                     {% sw_include '@Storefront/storefront/layout/header/header-content-renderer.html.twig' ignore missing with { 
  23.                                         headerContent: theme_config('headerStylesLayoutHeaderTopMiddle'),
  24.                                         headerImage: theme_config('headerStylesLayoutHeaderTopImage'),
  25.                                         headerLocation: 'top',
  26.                                     } %}
  27.                                 {% endblock %}
  28.                             </div>
  29.                         {% endblock %}
  30.                         {% block layout_header_top_right_wrapper %}
  31.                             <div class="header-top-right">
  32.                                 {% block layout_header_top_right_container %}
  33.                                     {% sw_include '@Storefront/storefront/layout/header/header-content-renderer.html.twig' ignore missing with { 
  34.                                         headerContent: theme_config('headerStylesLayoutHeaderTopRight'),
  35.                                         headerImage: theme_config('headerStylesLayoutHeaderTopImage'),
  36.                                         headerLocation: 'top',
  37.                                     } %}
  38.                                 {% endblock %}
  39.                             </div>
  40.                         {% endblock %}
  41.                     </div>
  42.                 </div>
  43.             {% endblock %}
  44.         {% endblock %}
  45.     {% endif %}
  46.     {% if theme_config('headerSettingsLayoutDisplayHeaderCenter') %}
  47.         {% block layout_header_navigation %}
  48.             <div class="header-center">
  49.                 <div class="header-center-container {% if theme_config('headerStylesLayoutContainer') == 'boxed' %}container{% else %}container-fluid{% endif %}">
  50.                     <div class="header-center-left">
  51.                         {% block layout_header_logo %}
  52.                             <div class="header-logo-col">
  53.                                 {% sw_include '@Storefront/storefront/layout/header/logo.html.twig' %}
  54.                             </div>
  55.                         {% endblock %}
  56.                     </div>
  57.                     <div class="header-center-middle d-flex flex-row justify-content-center">
  58.                         {% if theme_config('headerStylesMobileMenuLayoutVersion') == 'version-03' %}
  59.                             {% block layout_header_bar_hamburger %}
  60.                                 <div class="header-action d-inline-block d-lg-none">
  61.                                     <div class="header-account-menu">
  62.                                         {% sw_include '@parent/storefront/layout/header/actions/hamburger-widget.html.twig' %}
  63.                                     </div>
  64.                                 </div>
  65.                             {% endblock %}
  66.                         {% endif %}
  67.                         {% block layout_header_search %}
  68.                             {% sw_include '@parent/storefront/layout/header/search-expanded.html.twig' %}
  69.                         {% endblock %}
  70.                         {% if theme_config('headerSettingsLayoutDisplayHeaderLanguage') %}
  71.                             {% block layout_header_bar_language %}
  72.                                 {% sw_include '@parent/storefront/layout/header/actions/language-widget.html.twig' %}
  73.                             {% endblock %}
  74.                         {% endif %}
  75.                     </div>
  76.                     {% block layout_header_center_right_wrapper %}
  77.                         <div class="header-center-right d-{{ theme_config('headerStylesMobileHeaderCenterRightDisplay') }} d-{{ theme_config('headerStylesMobileHeaderCenterRightBreakpointFlex') }}-flex">
  78.                             {% block layout_header_center_right_extra %}
  79.                                 {% sw_include '@Storefront/storefront/layout/header/header-content-renderer.html.twig' ignore missing with { 
  80.                                     headerContent: theme_config('headerStylesLayoutHeaderCenterRight'),
  81.                                     headerImage: theme_config('headerStylesLayoutHeaderTopImage'),
  82.                                     headerLocation: 'center',
  83.                                 } %}
  84.                             {% endblock %}
  85.                             {% block layout_header_actions %}
  86.                                 {% block layout_header_search_toggle %}
  87.                                     {# Adding element but hiding, to prevent js error #}
  88.                                     <div class="col-auto d-none">
  89.                                         <div class="search-toggle">
  90.                                             <button class="btn header-actions-btn search-toggle-btn js-search-toggle-btn collapsed" type="button" data-toggle="collapse" data-target="#searchCollapse" aria-expanded="false" aria-controls="searchCollapse" aria-label="{{ "header.searchButton"|trans|striptags }}">
  91.                                                 {% sw_icon 'search' %}
  92.                                             </button>
  93.                                         </div>
  94.                                     </div>
  95.                                 {% endblock %}
  96.                                 {% if config('core.cart.wishlistEnabled') %}
  97.                                     {% block layout_header_actions_wishlist %}
  98.                                         <div class="header-action">
  99.                                             <div class="header-wishlist">
  100.                                                 <a class="btn header-wishlist-btn header-actions-btn" href="{{ path('frontend.wishlist.page') }}" title="{{ 'header.wishlist'|trans|striptags }}" aria-label="{{ 'header.wishlist'|trans|striptags }}">
  101.                                                     {% sw_include '@Storefront/storefront/layout/header/actions/wishlist-widget.html.twig' %}
  102.                                                 </a>
  103.                                             </div>
  104.                                         </div>
  105.                                     {% endblock %}
  106.                                 {% endif %}
  107.                                 
  108.                                 
  109.                                 {% block layout_header_actions_account %}
  110.                                     <div class="header-action d-{{ theme_config('headerStylesMobileHeaderCenterRightDisplay') }} d-{{ theme_config('headerStylesMobileHeaderCenterRightBreakpointFlex')|default('md') }}-flex">
  111.                                         <div class="header-account-menu">
  112.                                             {% sw_include '@parent/storefront/layout/header/actions/account-widget.html.twig' %}
  113.                                         </div>
  114.                                     </div>
  115.                                 {% endblock %}
  116.                                 {% block layout_header_actions_cart %}
  117.                                     <div class="header-action d-{{ theme_config('headerStylesMobileHeaderCenterRightDisplay') }} d-{{ theme_config('headerStylesMobileHeaderCenterRightBreakpointFlex')|default('md') }}-flex">
  118.                                         <div class="header-cart" data-offcanvas-cart="true">
  119.                                             <a class="btn header-cart-btn header-actions-btn" href="{{ path('frontend.checkout.cart.page') }}" data-cart-widget="true" title="{{ 'checkout.cartTitle'|trans|striptags }}" aria-label="{{ 'checkout.cartTitle'|trans|striptags }}">
  120.                                                 {% sw_include '@Storefront/storefront/layout/header/actions/cart-widget.html.twig' %}
  121.                                             </a>
  122.                                         </div>
  123.                                     </div>
  124.                                 {% endblock %}
  125.                             {% endblock %}
  126.                         </div>
  127.                     {% endblock %}
  128.                 </div>
  129.             </div>
  130.         {% endblock %}
  131.     {% endif %}
  132.     {% if theme_config('headerSettingsLayoutDisplayHeaderBottom') %}
  133.         {% block layout_header_main_navigation %}
  134.             <div class="header-bottom{% if theme_config('headerSettingsLayoutHighlightFirstItem') %} highlight-first{% endif %}">
  135.                 <div class="header-bottom-container {% if theme_config('headerStylesLayoutContainer') == 'boxed' %}container{% else %}container-fluid{% endif %}">
  136.                     <div class="header-bottom-left">
  137.                         {% block base_navigation_inner %}
  138.                             {% sw_include '@parent/storefront/layout/navigation/navigation.html.twig' %}
  139.                         {% endblock %}
  140.                         {% block layout_header_navigation_toggle %}{% endblock %}
  141.                     </div>
  142.                     {% block layout_header_bottom_middle_wrapper %}
  143.                         <div class="header-bottom-middle">
  144.                             {% block layout_header_bottom_middle_container %}
  145.                                 {% sw_include '@Storefront/storefront/layout/header/header-content-renderer.html.twig' ignore missing with { 
  146.                                     headerContent: theme_config('headerStylesLayoutHeaderBottomMiddle'),
  147.                                     headerImage: theme_config('headerStylesLayoutHeaderBottomImage'),
  148.                                     headerLocation: 'bottom',
  149.                                 } %}
  150.                             {% endblock %}
  151.                         </div>
  152.                     {% endblock %}
  153.                     {% block layout_header_bottom_right_wrapper %}
  154.                         <div class="header-bottom-right">
  155.                             {% block layout_header_bottom_right_container %}
  156.                                 {% sw_include '@Storefront/storefront/layout/header/header-content-renderer.html.twig' ignore missing with { 
  157.                                     headerContent: theme_config('headerStylesLayoutHeaderBottomRight'),
  158.                                     headerImage: theme_config('headerStylesLayoutHeaderBottomImage'),
  159.                                     headerLocation: 'bottom',
  160.                                 } %}
  161.                             {% endblock %}
  162.                         </div>
  163.                     {% endblock %}
  164.                 </div>
  165.             </div>
  166.         {% endblock %}
  167.     {% endif %}
  168.     {# 'tail' of bottom can contain various things like USP's or extra (sub)categories #}
  169.     {% if theme_config('headerSettingsLayoutDisplayHeaderBottomTail') %}
  170.         {% block layout_header_bottom_tail_navigation %}
  171.             <div class="header-bottom-tail">
  172.                 <div class="header-bottom-tail-container {% if theme_config('headerStylesLayoutContainer') == 'boxed' %}container{% else %}container-fluid{% endif %}">
  173.                     {% block layout_header_bottom_tail_left_wrapper %}
  174.                         <div class="header-bottom-tail-left">
  175.                             {% block layout_header_bottom_tail_left_container %}
  176.                                 {% sw_include '@Storefront/storefront/layout/header/header-content-renderer.html.twig' ignore missing with { 
  177.                                     headerContent: theme_config('headerStylesLayoutHeaderBottomTailLeft'),
  178.                                     headerImage: theme_config('headerStylesLayoutHeaderBottomTailImage'),
  179.                                     headerLocation: 'bottomTail',
  180.                                 } %}
  181.                             {% endblock %}
  182.                         </div>
  183.                     {% endblock %}
  184.                     {% block layout_header_bottom_tail_middle_wrapper %}
  185.                         <div class="header-bottom-tail-middle">
  186.                             {% block layout_header_bottom_tail_middle_container %}
  187.                                 {% sw_include '@Storefront/storefront/layout/header/header-content-renderer.html.twig' ignore missing with { 
  188.                                     headerContent: theme_config('headerStylesLayoutHeaderBottomTailMiddle'),
  189.                                     headerImage: theme_config('headerStylesLayoutHeaderBottomTailImage'),
  190.                                     headerLocation: 'bottomTail',
  191.                                 } %}
  192.                             {% endblock %}
  193.                         </div>
  194.                     {% endblock %}
  195.                     {% block layout_header_bottom_tail_right_wrapper %}
  196.                         <div class="header-bottom-tail-right">
  197.                             {% block layout_header_bottom_tail_right_container %}
  198.                                 {% sw_include '@Storefront/storefront/layout/header/header-content-renderer.html.twig' ignore missing with { 
  199.                                     headerContent: theme_config('headerStylesLayoutHeaderBottomTailRight'),
  200.                                     headerImage: theme_config('headerStylesLayoutHeaderBottomTailImage'),
  201.                                     headerLocation: 'bottomTail',
  202.                                 } %}
  203.                             {% endblock %}
  204.                         </div>
  205.                     {% endblock %}
  206.                 </div>
  207.             </div>
  208.         {% endblock %}
  209.     {% endif %}
  210. {% endblock %}