custom/plugins/zenitPlatformHorizon/src/Resources/views/storefront/base.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {# @deprecated @zenit tag:v3.1.0 - Bootstrap v5 #}
  3. {% if feature('v6.5.0.0') %}
  4.     {% set dataBsPlacementAttr = 'data-bs-placement' %}
  5. {% else %}
  6.     {% set dataBsPlacementAttr = 'data-placement' %}
  7. {% endif %}
  8. {# ... @zenit - custom fields #}
  9. {% set zenCustomFields = {
  10.     category: page.header.navigation.active.translated.customFields,
  11.     product: page.product.translated.customFields
  12. } %}
  13. {# ... @zenit - body classes #}
  14. {% set bodyClasses = [] %}
  15. {% set bodyClasses = ['is-lo-' ~ theme_config('zen-layout-style')]|merge(bodyClasses) %}
  16. {% set bodyClasses = ['is-tb-' ~ theme_config('zen-top-bar-style')]|merge(bodyClasses) %}
  17. {% set bodyClasses = ['is-srch-' ~ theme_config('zen-search-style')]|merge(bodyClasses) %}
  18. {% set bodyClasses = ['is-mn-' ~ theme_config('zen-main-navigation-style')]|merge(bodyClasses) %}
  19. {% if zenCustomFields.category.zenit_horizon_category_classes is not empty %}
  20.     {% set bodyClasses = [zenCustomFields.category.zenit_horizon_category_classes]|merge(bodyClasses) %}
  21. {% endif %}
  22. {% if theme_config('zen-flyout-navigation-full-width') %}
  23.     {% set bodyClasses = ['is-flyout-fullscreen']|merge(bodyClasses) %}
  24. {% endif %}
  25. {% if theme_config('zen-layout-forms-floating-labels') %}
  26.     {% set bodyClasses = ['has-lbl-floating']|merge(bodyClasses) %}
  27. {% endif %}
  28. {% if config('zenitPlatformHorizon.config.marketingActive') %}
  29.     {% set bodyClasses = ['has-marketing-slider']|merge(bodyClasses) %}
  30. {% endif %}
  31. {# ... @zenit - gallery slider mode #}
  32. {% if zenCustomFields.product.zenit_horizon_gallery_mode is empty or zenCustomFields.product.zenit_horizon_gallery_mode is same as ('inherit') %}
  33.     {% set galleryMode = theme_config("zen-product-gallery-mode") %}
  34. {% else %}
  35.     {% set galleryMode = zenCustomFields.product.zenit_horizon_gallery_mode %}
  36. {% endif %}
  37. {#{% block base_html %}#}
  38. {#    {% dump %}#}
  39. {#    {{ parent() }}#}
  40. {#{% endblock %}#}
  41. {% block base_body_classes %}{{ parent() }} {{ bodyClasses|join(' ') }}{% endblock %}
  42. {% block base_body_inner %}
  43.     {{ block('base_noscript') }}
  44.     {% block zen_base_preloader %}
  45.         {% sw_include '@zenitPlatformHorizon/storefront/layout/zen-preloader.html.twig' %}
  46.     {% endblock %}
  47.     <div class="page-wrapper">
  48.         {% block base_header %}
  49.             {# ... @zenit - single lined header #}
  50.             {% if theme_config('zen-header-style') is same as ('single-line') %}
  51.                 {# logo left #}
  52.                 {% if theme_config('zen-logo-position') is same as ('left') %}
  53.                     {# search default #}
  54.                     {% if theme_config('zen-search-style') is same as ('default')  %}
  55.                         {# offcanvas style #}
  56.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  57.                             {% set logoClasses =                        "col-12 col-md-auto order-1" %}
  58.                             {% set searchClasses =                      "col-12 col-sm-auto order-4 order-sm-2 #{marginStartClass}-auto" %}
  59.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  60.                             {% set mainNavigationClasses =              "d-none d-lg-flex col-lg order-lg-2" %}
  61.                             {% set mainNavigationToggleClasses =        "col-auto d-lg-none order-2 order-md-3" %}
  62.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  63.                             {% set logoClasses =                        "col-12 col-md-auto order-1" %}
  64.                             {% set searchClasses =                      "col-12 col-sm-auto order-4 order-sm-2 #{marginStartClass}-auto" %}
  65.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  66.                             {% set mainNavigationClasses =              "d-none d-xl-flex col-xl order-lg-2" %}
  67.                             {% set mainNavigationToggleClasses =        "col-auto d-xl-none order-2 order-md-3" %}
  68.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  69.                             {% set logoClasses =                        "col-12 col-md-auto order-1" %}
  70.                             {% set searchClasses =                      "col-12 col-sm-auto order-4 order-sm-2 #{marginStartClass}-auto" %}
  71.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  72.                             {% set mainNavigationClasses =              "d-none" %}
  73.                             {% set mainNavigationToggleClasses =        "col-auto order-2 order-md-3" %}
  74.                         {% endif %}
  75.                     {# search not default #}
  76.                     {% elseif theme_config('zen-search-style') is not same as ('default') %}
  77.                         {# offcanvas style #}
  78.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  79.                             {% set logoClasses =                        "col-12 col-sm-auto order-1" %}
  80.                             {% set searchClasses =                      "col-12 order-5" %}
  81.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  82.                             {% set mainNavigationClasses =              "d-none d-lg-flex col-lg order-lg-2 " %}
  83.                             {% set mainNavigationToggleClasses =        "col-auto d-lg-none order-2 #{marginStartClass}-sm-auto" %}
  84.                             {% if theme_config('zen-main-navigation-align') is same as ('center') %}
  85.                                 {% set logoClasses =                    "col-12 col-sm-auto col-xl-3 order-1" %}
  86.                                 {% set actionClasses =                  "col-auto col-xl-3 order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  87.                             {% endif %}
  88.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  89.                             {% set logoClasses =                        "col-12 col-sm-auto order-1" %}
  90.                             {% set searchClasses =                      "col-12 order-5" %}
  91.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  92.                             {% set mainNavigationClasses =              "d-none d-xl-flex col-xl order-lg-2" %}
  93.                             {% set mainNavigationToggleClasses =        "col-auto d-xl-none order-2 #{marginStartClass}-sm-auto" %}
  94.                             {% if theme_config('zen-main-navigation-align') is same as ('center') %}
  95.                                 {% set logoClasses =                    "col-12 col-sm-auto col-xl-3 order-1" %}
  96.                                 {% set actionClasses =                  "col-auto col-xl-3 order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  97.                             {% endif %}
  98.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  99.                             {% set logoClasses =                        "col-12 col-sm-auto order-1" %}
  100.                             {% set searchClasses =                      "col-12 order-5" %}
  101.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  102.                             {% set mainNavigationClasses =              "d-none" %}
  103.                             {% set mainNavigationToggleClasses =        "col-auto order-2 #{marginStartClass}-sm-auto" %}
  104.                             {% if theme_config('zen-main-navigation-align') is same as ('center') %}
  105.                                 {% set logoClasses =                    "col-12 col-sm-auto col-xl-3 order-1" %}
  106.                             {% endif %}
  107.                         {% endif %}
  108.                     {% endif %}
  109.                 {# logo center #}
  110.                 {% elseif theme_config('zen-logo-position') is same as ('center') %}
  111.                     {# search default #}
  112.                     {% if theme_config('zen-search-style') is same as ('default')  %}
  113.                         {# offcanvas style #}
  114.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  115.                             {% set logoClasses =                        "col-12 pos-xl-center col-xl-2 order-1" %}
  116.                             {% set searchClasses =                      "col-12 col-sm-auto order-4 order-sm-2 order-md-3 order-lg-2 #{marginStartClass}-auto" %}
  117.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  118.                             {% set mainNavigationClasses =              "d-none d-lg-flex col-lg col-xl-5 order-lg-2" %}
  119.                             {% set mainNavigationToggleClasses =        "col-auto d-lg-none order-2" %}
  120.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  121.                             {% set logoClasses =                        "col-12 pos-lg-center col-lg-2 order-1" %}
  122.                             {% set searchClasses =                      "col-12 col-sm-auto order-4 order-sm-2 order-md-3 order-lg-2 #{marginStartClass}-auto" %}
  123.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  124.                             {% set mainNavigationClasses =              "d-none d-xl-flex col-xl-5 order-lg-2" %}
  125.                             {% set mainNavigationToggleClasses =        "col-auto d-xl-none order-2" %}
  126.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  127.                             {% set logoClasses =                        "col-12 col-lg-auto pos-lg-center order-1 order-lg-3" %} {# TODO: @zenit - pos-lg-center better solution? #}
  128.                             {% set searchClasses =                      "col-12 col-sm-auto order-4 order-sm-2 order-md-3 order-lg-2 #{marginStartClass}-auto" %}
  129.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  130.                             {% set mainNavigationClasses =              "d-none" %}
  131.                             {% set mainNavigationToggleClasses =        "col-auto order-2 order-lg-1" %}
  132.                         {% endif %}
  133.                     {# search not default #}
  134.                     {% elseif theme_config('zen-search-style') is not same as ('default') %}
  135.                         {# offcanvas style #}
  136.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  137.                             {% set logoClasses =                        "col-12 col-md-4 col-lg-12 col-xl-2 order-1 order-md-2 order-lg-1 order-xl-2" %}
  138.                             {% set searchClasses =                      "col-12 order-5" %}
  139.                             {% set actionClasses =                      "col-auto order-3 #{marginStartClass}-auto" %}
  140.                             {% set mainNavigationClasses =              "d-none d-lg-flex col-lg col-xl-5 order-lg-2 order-xl-1" %}
  141.                             {% set mainNavigationToggleClasses =        "col-auto col-md-4 d-lg-none order-1" %}
  142.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  143.                             {% set logoClasses =                        "col-12 col-md-4 col-xl-2 order-1 order-md-2" %}
  144.                             {% set searchClasses =                      "col-12 order-5" %}
  145.                             {% set actionClasses =                      "col-auto order-3 #{marginStartClass}-auto" %}
  146.                             {% set mainNavigationClasses =              "d-none d-xl-flex col-xl-5 order-xl-1" %}
  147.                             {% set mainNavigationToggleClasses =        "col-auto col-md-4 d-xl-none order-1" %}
  148.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  149.                             {% set logoClasses =                        "col-12 col-md-4 col-xl-2 order-1 order-md-2 order-xl-2" %}
  150.                             {% set searchClasses =                      "col-12 order-5" %}
  151.                             {% set actionClasses =                      "col-auto order-3 #{marginStartClass}-auto" %}
  152.                             {% set mainNavigationClasses =              "d-none" %}
  153.                             {% set mainNavigationToggleClasses =        "col-auto col-md-4 col-xl-5 order-1" %}
  154.                         {% endif %}
  155.                     {% endif %}
  156.                 {# logo right #}
  157.                 {% elseif theme_config('zen-logo-position') is same as ('right') %}
  158.                     {# search default #}
  159.                     {% if theme_config('zen-search-style') is same as ('default') %}
  160.                         {# offcanvas style #}
  161.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  162.                             {% set logoClasses =                        "col-12 col-md-auto order-1 order-md-4 #{marginStartClass}-md-auto" %}
  163.                             {% set searchClasses =                      "col-12 col-sm-auto order-5 order-sm-3 order-lg-2 #{marginStartClass}-auto #{marginStartClass}-md-0" %}
  164.                             {% set actionClasses =                      "col-auto order-4 order-md-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-md" %}
  165.                             {% set mainNavigationClasses =              "d-none d-lg-flex col-lg order-lg-3 justify-content-end" %}
  166.                             {% set mainNavigationToggleClasses =        "col-auto d-lg-none order-2" %}
  167.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  168.                             {% set logoClasses =                        "col-12 col-md-auto order-1 order-md-4 #{marginStartClass}-md-auto" %}
  169.                             {% set searchClasses =                      "col-12 col-sm-auto order-5 order-sm-3 order-lg-2 #{marginStartClass}-auto #{marginStartClass}-md-0" %}
  170.                             {% set actionClasses =                      "col-auto order-4 order-md-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-md" %}
  171.                             {% set mainNavigationClasses =              "d-none d-xl-flex col-lg order-lg-3 justify-content-end" %}
  172.                             {% set mainNavigationToggleClasses =        "col-auto d-xl-none order-2" %}
  173.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  174.                             {% set logoClasses =                        "col-12 col-md-auto order-1 order-md-4 #{marginStartClass}-md-auto" %}
  175.                             {% set searchClasses =                      "col-12 col-sm-auto order-5 order-sm-3 order-lg-2 #{marginStartClass}-auto #{marginStartClass}-md-0" %}
  176.                             {% set actionClasses =                      "col-auto order-4 order-md-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-md" %}
  177.                             {% set mainNavigationClasses =              "d-none" %}
  178.                             {% set mainNavigationToggleClasses =        "col-auto order-2" %}
  179.                         {% endif %}
  180.                     {# search not default #}
  181.                     {% elseif theme_config('zen-search-style') is not same as ('default') %}
  182.                         {# offcanvas style #}
  183.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  184.                             {% set logoClasses =                        "col-12 col-sm-auto col-xl-3 order-1 order-sm-4 #{marginStartClass}-sm-auto" %}
  185.                             {% set searchClasses =                      "col-12 order-5" %}
  186.                             {% set actionClasses =                      "col-auto order-3 order-sm-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-sm" %}
  187.                             {% set mainNavigationClasses =              "d-none d-lg-flex col-lg order-lg-2 justify-content-end" %}
  188.                             {% set mainNavigationToggleClasses =        "col-auto d-lg-none order-2" %}
  189.                             {% if theme_config('zen-main-navigation-align') is same as ('center') %}
  190.                                 {% set actionClasses =                  "col-auto col-xl-3 order-3 order-sm-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-sm" %}
  191.                             {% endif %}
  192.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  193.                             {% set logoClasses =                        "col-12 col-sm-auto col-xl-3 order-1 order-sm-4 #{marginStartClass}-sm-auto" %}
  194.                             {% set searchClasses =                      "col-12 order-5" %}
  195.                             {% set actionClasses =                      "col-auto order-3 order-sm-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-sm" %}
  196.                             {% set mainNavigationClasses =              "d-none d-xl-flex col-lg order-lg-2 justify-content-end" %}
  197.                             {% set mainNavigationToggleClasses =        "col-auto d-xl-none order-2" %}
  198.                             {% if theme_config('zen-main-navigation-align') is same as ('center') %}
  199.                                 {% set actionClasses =                      "col-auto col-xl-3 order-3 order-sm-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-sm" %}
  200.                             {% endif %}
  201.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  202.                             {% set logoClasses =                        "col-12 col-sm-auto order-1 order-sm-4 #{marginStartClass}-sm-auto" %}
  203.                             {% set searchClasses =                      "col-12 order-5" %}
  204.                             {% set actionClasses =                      "col-auto order-3 order-sm-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-sm" %}
  205.                             {% set mainNavigationClasses =              "d-none" %}
  206.                             {% set mainNavigationToggleClasses =        "col-auto order-2" %}
  207.                         {% endif %}
  208.                     {% endif %}
  209.                 {% endif %}
  210.             {# ... @zenit - multi lined header #}
  211.             {% elseif theme_config('zen-header-style') is same as ('multi-line') %}
  212.                 {# logo left #}
  213.                 {% if theme_config('zen-logo-position') is same as ('left') %}
  214.                     {# search default #}
  215.                     {% if theme_config('zen-search-style') is same as ('default') %}
  216.                         {# offcanvas style #}
  217.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  218.                             {% set logoClasses =                        "col-12 col-md-auto col-lg-3 order-1" %}
  219.                             {% set searchClasses =                      "col-12 col-sm-auto col-lg-6 order-4 order-sm-2 #{marginStartClass}-auto #{marginStartClass}-lg-0 #{marginEndClass}-lg-0" %}
  220.                             {% set actionClasses =                      "col-auto order-3 #{marginStartClass}-auto #{marginStartClass}-sm-0 #{marginStartClass}-lg-auto" %}
  221.                             {% set mainNavigationToggleClasses =        "col-auto d-lg-none order-2 order-md-3" %}
  222.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  223.                             {% set logoClasses =                        "col-12 col-md-auto col-xl-3 order-1" %}
  224.                             {% set searchClasses =                      "col-12 col-sm-auto col-xl-6 order-4 order-sm-2 #{marginStartClass}-auto #{marginStartClass}-xl-0 #{marginEndClass}-xl-0" %}
  225.                             {% set actionClasses =                      "col-auto order-3 #{marginStartClass}-auto #{marginStartClass}-sm-0 #{marginStartClass}-xl-auto" %}
  226.                             {% set mainNavigationToggleClasses =        "col-auto d-xl-none order-2 order-md-3" %}
  227.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  228.                             {% set logoClasses =                        "col-12 col-md-auto order-1" %}
  229.                             {% set searchClasses =                      "col-12 col-sm order-4 order-sm-2 #{marginStartClass}-auto #{marginStartClass}-sm-3" %}
  230.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0 #{marginStartClass}-xl-auto" %}
  231.                             {% set mainNavigationToggleClasses =        "col-auto order-2 order-md-3" %}
  232.                         {% endif %}
  233.                     {# search not default #}
  234.                     {% elseif theme_config('zen-search-style') is not same as ('default') %}
  235.                         {# offcanvas style #}
  236.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  237.                             {% set logoClasses =                        "col-12 col-sm-auto col-xl-3 order-1" %}
  238.                             {% set searchClasses =                      "col-12 order-5" %}
  239.                             {% set actionClasses =                      "col-auto col-xl-3 order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0 #{marginStartClass}-lg-auto" %}
  240.                             {% set mainNavigationToggleClasses =        "col-auto d-lg-none order-2 #{marginStartClass}-sm-auto" %}
  241.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  242.                             {% set logoClasses =                        "col-12 col-sm-auto col-xl-3 order-1" %}
  243.                             {% set searchClasses =                      "col-12 order-5" %}
  244.                             {% set actionClasses =                      "col-auto col-xl-3 order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0 #{marginStartClass}-xl-auto" %}
  245.                             {% set mainNavigationToggleClasses =        "col-auto d-xl-none order-2 #{marginStartClass}-sm-auto" %}
  246.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  247.                             {% set logoClasses =                        "col-12 col-sm-auto order-1" %}
  248.                             {% set searchClasses =                      "col-12 order-5" %}
  249.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  250.                             {% set mainNavigationToggleClasses =        "col-auto order-2 #{marginStartClass}-sm-auto" %}
  251.                         {% endif %}
  252.                     {% endif %}
  253.                 {# logo center #}
  254.                 {% elseif theme_config('zen-logo-position') is same as ('center') %}
  255.                     {# search default #}
  256.                     {% if theme_config('zen-search-style') is same as ('default') %}
  257.                         {# offcanvas style #}
  258.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  259.                             {% set logoClasses =                        "col-12 col-lg-4 pos-lg-center order-1 order-lg-2" %}
  260.                             {% set searchClasses =                      "col-12 col-sm-auto col-lg-2 order-4 order-sm-2 order-md-3 order-lg-1 #{marginStartClass}-auto #{marginStartClass}-lg-0" %}
  261.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0 #{marginStartClass}-lg-auto" %}
  262.                             {% set mainNavigationToggleClasses =        "col-auto d-lg-none order-2" %}
  263.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  264.                             {% set logoClasses =                        "col-12 col-xl-4 pos-xl-center order-1 order-lg-2" %}
  265.                             {% set searchClasses =                      "col-12 col-sm-auto col-lg-2 order-4 order-sm-2 order-md-3 order-xl-1 #{marginStartClass}-auto #{marginStartClass}-xl-0" %}
  266.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0 #{marginStartClass}-xl-auto" %}
  267.                             {% set mainNavigationToggleClasses =        "col-auto d-xl-none order-2" %}
  268.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  269.                             {% set logoClasses =                        "col-12 col-lg-auto pos-lg-center order-1 order-lg-3" %}
  270.                             {% set searchClasses =                      "col-12 col-sm-auto order-4 order-sm-3 order-lg-2 #{marginStartClass}-auto #{marginStartClass}-lg-0 #{marginEndClass}-lg-auto" %}
  271.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  272.                             {% set mainNavigationToggleClasses =        "col-auto order-2 order-lg-3" %}
  273.                         {% endif %}
  274.                     {# search not default #}
  275.                     {% elseif theme_config('zen-search-style') is not same as ('default') %}
  276.                         {# offcanvas style #}
  277.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  278.                             {% set logoClasses =                        "col-12 col-md-4 col-lg-4 pos-lg-center order-1 order-md-2 order-lg-1" %}
  279.                             {% set searchClasses =                      "col-12 order-5" %}
  280.                             {% set actionClasses =                      "col-auto order-3 #{marginStartClass}-auto" %}
  281.                             {% set mainNavigationToggleClasses =        "col-auto col-md-4 d-lg-none order-1" %}
  282.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  283.                             {% set logoClasses =                        "col-12 col-md-4 pos-xl-center order-1 order-md-2" %}
  284.                             {% set searchClasses =                      "col-12 order-5" %}
  285.                             {% set actionClasses =                      "col-auto order-3 #{marginStartClass}-auto" %}
  286.                             {% set mainNavigationToggleClasses =        "col-auto col-md-4 d-xl-none order-1" %}
  287.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  288.                             {% set logoClasses =                        "col-12 col-md-4 order-1 order-md-2 order-xl-2" %}
  289.                             {% set searchClasses =                      "col-12 order-5" %}
  290.                             {% set actionClasses =                      "col-auto order-3 #{marginStartClass}-auto" %}
  291.                             {% set mainNavigationToggleClasses =        "col-auto col-md-4 col-xl-4 order-1" %}
  292.                         {% endif %}
  293.                     {% endif %}
  294.                 {# logo right #}
  295.                 {% elseif theme_config('zen-logo-position') is same as ('right') %}
  296.                     {# search default #}
  297.                     {% if theme_config('zen-search-style') is same as ('default') %}
  298.                         {# offcanvas style #}
  299.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  300.                             {% set logoClasses =                        "col-12 col-md-auto order-1 order-md-4 #{marginStartClass}-md-auto" %}
  301.                             {% set searchClasses =                      "col-12 col-sm-auto col-lg-6 order-5 order-sm-3 order-lg-2 #{marginStartClass}-auto #{marginStartClass}-md-0" %}
  302.                             {% set actionClasses =                      "col-auto col-lg-3 order-4 order-md-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-md" %}
  303.                             {% set mainNavigationToggleClasses =        "col-auto d-lg-none order-2" %}
  304.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  305.                             {% set logoClasses =                        "col-12 col-md-auto order-1 order-md-4 #{marginStartClass}-md-auto" %}
  306.                             {% set searchClasses =                      "col-12 col-sm-auto col-xl-6 order-5 order-sm-3 order-lg-2 #{marginStartClass}-auto #{marginStartClass}-md-0" %}
  307.                             {% set actionClasses =                      "col-auto col-xl-3 order-4 order-md-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-md" %}
  308.                             {% set mainNavigationToggleClasses =        "col-auto d-xl-none order-2" %}
  309.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  310.                             {% set logoClasses =                        "col-12 col-md-auto order-1 order-md-4 #{marginStartClass}-md-3" %}
  311.                             {% set searchClasses =                      "col-12 col-sm order-5 order-sm-3 order-lg-2 #{marginStartClass}-auto #{marginStartClass}-md-0" %}
  312.                             {% set actionClasses =                      "col-auto order-4 order-md-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-md" %}
  313.                             {% set mainNavigationToggleClasses =        "col-auto order-2" %}
  314.                         {% endif %}
  315.                     {# search not default #}
  316.                     {% elseif theme_config('zen-search-style') is not same as ('default') %}
  317.                         {# offcanvas style #}
  318.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  319.                             {% set logoClasses =                        "col-12 col-sm-auto col-xl-3 order-1 order-sm-4 #{marginStartClass}-sm-auto" %}
  320.                             {% set searchClasses =                      "col-12 order-5" %}
  321.                             {% set actionClasses =                      "col-auto order-3 order-sm-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-sm" %}
  322.                             {% set mainNavigationToggleClasses =        "col-auto d-lg-none order-2" %}
  323.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  324.                             {% set logoClasses =                        "col-12 col-sm-auto col-xl-3 order-1 order-sm-4 #{marginStartClass}-sm-auto" %}
  325.                             {% set searchClasses =                      "col-12 order-5" %}
  326.                             {% set actionClasses =                      "col-auto order-3 order-sm-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-sm" %}
  327.                             {% set mainNavigationToggleClasses =        "col-auto d-xl-none order-2" %}
  328.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  329.                             {% set logoClasses =                        "col-12 col-sm-auto order-1 order-sm-4 #{marginStartClass}-sm-auto" %}
  330.                             {% set searchClasses =                      "col-12 order-5" %}
  331.                             {% set actionClasses =                      "col-auto order-3 order-sm-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-sm" %}
  332.                             {% set mainNavigationToggleClasses =        "col-auto order-2" %}
  333.                         {% endif %}
  334.                     {% endif %}
  335.                 {% endif %}
  336.             {# ... @zenit - Two lined header #}
  337.             {% elseif theme_config('zen-header-style') is same as ('two-line') %}
  338.                 {# logo left #}
  339.                 {% if theme_config('zen-logo-position') is same as ('left') %}
  340.                     {# search default #}
  341.                     {% if theme_config('zen-search-style') is same as ('default') %}
  342.                         {# offcanvas style #}
  343.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  344.                             {% set logoClasses =                        "col-12 col-md-auto order-1" %}
  345.                             {% set searchClasses =                      "col-12 col-sm-auto order-4 order-sm-2 #{marginStartClass}-auto" %}
  346.                             {% set topBarClasses =                      "d-none d-lg-flex col-auto order-lg-3" %}
  347.                             {% set actionClasses =                      "col-auto order-3 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  348.                             {% set mainNavigationToggleClasses =        "col-auto d-lg-none order-2 order-md-3" %}
  349.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  350.                             {% set logoClasses =                        "col-12 col-md-auto order-1" %}
  351.                             {% set searchClasses =                      "col-12 col-sm-auto order-4 order-sm-2 #{marginStartClass}-auto" %}
  352.                             {% set topBarClasses =                      "d-none d-lg-flex col-auto order-lg-3" %}
  353.                             {% set actionClasses =                      "col-auto order-3 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  354.                             {% set mainNavigationToggleClasses =        "col-auto d-xl-none order-2 order-md-3" %}
  355.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  356.                             {% set logoClasses =                        "col-12 col-md-3 order-1" %}
  357.                             {% set searchClasses =                      "col-12 col-sm order-4 order-sm-2 col-md-6 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  358.                             {% set topBarClasses =                      "d-none" %}
  359.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  360.                             {% set mainNavigationToggleClasses =        "col-auto order-2 order-md-3 #{marginStartClass}-md-auto" %}
  361.                         {% endif %}
  362.                     {# search not default #}
  363.                     {% elseif theme_config('zen-search-style') is not same as ('default') %}
  364.                         {# offcanvas style #}
  365.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  366.                             {% set logoClasses =                        "col-12 col-sm-auto col-xl-3 order-1" %}
  367.                             {% set searchClasses =                      "col-12 order-5" %}
  368.                             {% set topBarClasses =                      "d-none d-lg-flex col-auto order-lg-3 #{marginStartClass}-auto" %}
  369.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  370.                             {% set mainNavigationToggleClasses =        "col-auto d-lg-none order-2 #{marginStartClass}-sm-auto" %}
  371.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  372.                             {% set logoClasses =                        "col-12 col-sm-auto col-xl-3 order-1" %}
  373.                             {% set searchClasses =                      "col-12 order-5" %}
  374.                             {% set topBarClasses =                      "d-none d-xl-flex col-auto order-lg-3 #{marginStartClass}-auto" %}
  375.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  376.                             {% set mainNavigationToggleClasses =        "col-auto d-xl-none order-2 #{marginStartClass}-sm-auto" %}
  377.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  378.                             {% set logoClasses =                        "col-12 col-sm-auto order-1" %}
  379.                             {% set searchClasses =                      "col-12 order-5" %}
  380.                             {% set topBarClasses =                      "d-none" %}
  381.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  382.                             {% set mainNavigationToggleClasses =        "col-auto order-2 #{marginStartClass}-sm-auto" %}
  383.                         {% endif %}
  384.                     {% endif %}
  385.                 {# logo center #}
  386.                 {% elseif theme_config('zen-logo-position') is same as ('center') %}
  387.                     {# search default #}
  388.                     {% if theme_config('zen-search-style') is same as ('default') %}
  389.                         {# offcanvas style #}
  390.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  391.                             {% set logoClasses =                        "col-12 col-lg-4 pos-lg-center order-1 order-lg-2" %}
  392.                             {% set searchClasses =                      "col-12 col-sm-auto col-lg-3 order-4 order-sm-2 order-md-3 order-lg-1 #{marginStartClass}-auto #{marginStartClass}-lg-0" %}
  393.                             {% set topBarClasses =                      "d-none d-lg-flex col-auto order-lg-3 #{marginStartClass}-auto" %}
  394.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  395.                             {% set mainNavigationToggleClasses =        "col-auto d-lg-none order-2" %}
  396.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  397.                             {% set logoClasses =                        "col-12 col-xl-4 pos-xl-center order-1 order-lg-2" %}
  398.                             {% set searchClasses =                      "col-12 col-sm-auto col-lg-3 order-4 order-sm-2 order-md-3 order-xl-1 #{marginStartClass}-auto #{marginStartClass}-xl-0" %}
  399.                             {% set topBarClasses =                      "d-none d-xl-flex col-auto order-xl-3 #{marginStartClass}-auto" %}
  400.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  401.                             {% set mainNavigationToggleClasses =        "col-auto d-xl-none order-2" %}
  402.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  403.                             {% set logoClasses =                        "col-12 col-lg-auto pos-lg-center order-1 order-lg-2" %}
  404.                             {% set searchClasses =                      "col-12 col-sm-auto order-4 order-sm-3 order-lg-2 #{marginStartClass}-auto #{marginStartClass}-lg-0 #{marginEndClass}-lg-auto" %}
  405.                             {% set topBarClasses =                      "d-none" %}
  406.                             {% set actionClasses =                      "col-auto order-3 order-md-4 #{marginStartClass}-auto #{marginStartClass}-sm-0" %}
  407.                             {% set mainNavigationToggleClasses =        "col-auto order-2 order-lg-3" %}
  408.                         {% endif %}
  409.                     {# search not default #}
  410.                     {% elseif theme_config('zen-logo-position') is same as ('center') %}
  411.                         {# offcanvas style #}
  412.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  413.                             {% set logoClasses =                        "col-12 col-md-4 col-lg-4 pos-lg-center order-1 order-md-2 order-lg-2" %}
  414.                             {% set searchClasses =                      "col-12 order-5" %}
  415.                             {% set topBarClasses =                      "d-none d-lg-flex col-auto order-lg-1" %}
  416.                             {% set actionClasses =                      "col-auto order-3 #{marginStartClass}-auto" %}
  417.                             {% set mainNavigationToggleClasses =        "col-auto col-md-4 d-lg-none order-1" %}
  418.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  419.                             {% set logoClasses =                        "col-12 col-md-4 pos-xl-center order-1 order-md-2" %}
  420.                             {% set searchClasses =                      "col-12 order-5" %}
  421.                             {% set topBarClasses =                      "d-none d-xl-flex col-auto order-xl-1" %}
  422.                             {% set actionClasses =                      "col-auto order-3 #{marginStartClass}-auto" %}
  423.                             {% set mainNavigationToggleClasses =        "col-auto col-md-4 d-xl-none order-1" %}
  424.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  425.                             {% set logoClasses =                        "col-12 col-md-4 order-1 order-md-2 order-xl-2" %}
  426.                             {% set searchClasses =                      "col-12 order-5" %}
  427.                             {% set topBarClasses =                      "d-none" %}
  428.                             {% set actionClasses =                      "col-auto order-3 #{marginStartClass}-auto" %}
  429.                             {% set mainNavigationToggleClasses =        "col-auto col-md-4 col-xl-4 order-1" %}
  430.                         {% endif %}
  431.                     {% endif %}
  432.                 {# logo right #}
  433.                 {% elseif theme_config('zen-logo-position') is same as ('right') %}
  434.                     {# search default #}
  435.                     {% if theme_config('zen-search-style') is same as ('default') %}
  436.                         {# offcanvas style #}
  437.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  438.                             {% set logoClasses =                        "col-12 col-md-auto order-1 order-md-4 #{marginStartClass}-md-auto" %}
  439.                             {% set searchClasses =                      "col-12 col-sm-auto order-5 order-sm-3 order-lg-2 #{marginStartClass}-auto #{marginStartClass}-md-0" %}
  440.                             {% set topBarClasses =                      "d-none d-lg-flex col-auto order-lg-2" %}
  441.                             {% set actionClasses =                      "col-auto order-4 order-md-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-md" %}
  442.                             {% set mainNavigationToggleClasses =        "col-auto d-lg-none order-2" %}
  443.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  444.                             {% set logoClasses =                        "col-12 col-md-auto order-1 order-md-4 #{marginStartClass}-md-auto" %}
  445.                             {% set searchClasses =                      "col-12 col-sm-auto order-5 order-sm-3 order-lg-2 #{marginStartClass}-auto #{marginStartClass}-md-0" %}
  446.                             {% set topBarClasses =                      "d-none d-xl-flex col-auto order-xl-2" %}
  447.                             {% set actionClasses =                      "col-auto order-4 order-md-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-md" %}
  448.                             {% set mainNavigationToggleClasses =        "col-auto d-xl-none order-2" %}
  449.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  450.                             {% set logoClasses =                        "col-12 col-md-auto order-1 order-md-4 #{marginStartClass}-md-auto" %}
  451.                             {% set searchClasses =                      "col-12 col-sm order-5 order-sm-3 order-lg-2 #{marginStartClass}-auto #{marginStartClass}-md-0" %}
  452.                             {% set topBarClasses =                      "d-none" %}
  453.                             {% set actionClasses =                      "col-auto order-4 order-md-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-md" %}
  454.                             {% set mainNavigationToggleClasses =        "col-auto order-2" %}
  455.                         {% endif %}
  456.                     {# search not default #}
  457.                     {% elseif theme_config('zen-search-style') is not same as ('default') %}
  458.                         {# offcanvas style #}
  459.                         {% if theme_config('zen-main-navigation-style') is same as ('offcanvas-md') %}
  460.                             {% set logoClasses =                        "col-12 col-sm-auto col-xl-3 order-1 order-sm-4 #{marginStartClass}-sm-auto" %}
  461.                             {% set searchClasses =                      "col-12 order-5" %}
  462.                             {% set topBarClasses =                      "d-none d-lg-flex col-auto order-lg-2" %}
  463.                             {% set actionClasses =                      "col-auto order-3 order-sm-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-sm" %}
  464.                             {% set mainNavigationToggleClasses =        "col-auto d-lg-none order-2" %}
  465.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-lg') %}
  466.                             {% set logoClasses =                        "col-12 col-sm-auto col-xl-3 order-1 order-sm-4 #{marginStartClass}-sm-auto" %}
  467.                             {% set searchClasses =                      "col-12 order-5" %}
  468.                             {% set topBarClasses =                      "d-none d-xl-flex col-auto order-xl-2" %}
  469.                             {% set actionClasses =                      "col-auto order-3 order-sm-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-sm" %}
  470.                             {% set mainNavigationToggleClasses =        "col-auto d-xl-none order-2 #{marginEndClass}-sm-auto #{marginEndClass}-xl-0" %}
  471.                         {% elseif theme_config('zen-main-navigation-style') is same as ('offcanvas-xl') %}
  472.                             {% set logoClasses =                        "col-12 col-sm-auto order-1 order-sm-4 #{marginStartClass}-sm-auto" %}
  473.                             {% set searchClasses =                      "col-12 order-5" %}
  474.                             {% set topBarClasses =                      "d-none" %}
  475.                             {% set actionClasses =                      "col-auto order-3 order-sm-1 #{marginStartClass}-auto #{marginStartClass}-sm-0 reverse-sm" %}
  476.                             {% set mainNavigationToggleClasses =        "col-auto order-2" %}
  477.                         {% endif %}
  478.                     {% endif %}
  479.                 {% endif %}
  480.             {% endif %}
  481.             {# ... @zenit - single lined mobile headers #}
  482.             {% if theme_config('zen-header-style-mobile') is same as ('single-line') %}
  483.                 {# logo left, search default #}
  484.                 {% if theme_config('zen-logo-position') is same as ('left') and theme_config('zen-search-style') is same as ('default') %}
  485.                     {% set logoClasses =                        logoClasses|replace({'col-12': 'col-auto'}) %}
  486.                     {% set actionClasses =                      actionClasses|replace({'#{marginStartClass}-auto': ''}) %}
  487.                     {% set mainNavigationToggleClasses =        mainNavigationToggleClasses|replace({'col-auto': 'col-auto #{marginStartClass}-auto #{marginStartClass}-sm-0', 'order-2': 'order-3'}) %}
  488.                     {# logo left, search not default #}
  489.                 {% elseif theme_config('zen-logo-position') is same as ('left') and theme_config('zen-search-style') is not same as ('default') %}
  490.                     {% set logoClasses =                        logoClasses|replace({'col-12': 'col-auto'}) %}
  491.                     {% set actionClasses =                      actionClasses|replace({'#{marginStartClass}-auto': ''}) %}
  492.                     {% set mainNavigationToggleClasses =        mainNavigationToggleClasses|replace({'#{marginStartClass}-sm-auto': '#{marginStartClass}-auto'}) %}
  493.                     {# logo center, search default #}
  494.                 {% elseif theme_config('zen-logo-position') is same as ('center') and theme_config('zen-search-style') is same as ('default') %}
  495.                     {% set logoClasses =                        logoClasses|replace({'col-12': 'col-auto', 'pos-xl-center': 'pos-center', 'pos-lg-center': 'pos-center'}) %}
  496.                     {% set actionClasses =                      actionClasses|replace({'col-auto': 'col col-lg-auto'}) %}
  497.                     {% if theme_config('zen-header-style') is same as ('single-line') %}
  498.                         {% set searchClasses =                      searchClasses|replace({'col-sm-auto': 'col-sm-3 col-lg-auto', '#{marginStartClass}-auto': '#{marginStartClass}-xl-auto'}) %}
  499.                         {% set actionClasses =                      actionClasses|replace({'#{marginStartClass}-sm-0': '#{marginStartClass}-xl-0'}) %}
  500.                         {% set mainNavigationClasses =              mainNavigationClasses|replace({'d-lg-flex': 'd-xl-flex'}) %} {# ... @zenit - have to move the main navigation as offcanvas breakpoint #}
  501.                         {% set mainNavigationToggleClasses =        mainNavigationToggleClasses|replace({'d-lg-none': 'd-xl-none'}) %} {# ... @zenit - have to move the main navigation as offcanvas breakpoint #}
  502.                     {% elseif theme_config('zen-header-style') is same as ('multi-line') %}
  503.                         {% set searchClasses =                      searchClasses|replace({'col-sm-auto': 'col-sm-3 col-lg-auto', '#{marginStartClass}-auto': ''}) %}
  504.                         {% set actionClasses =                      actionClasses|replace({'#{marginStartClass}-sm-0': ''}) %}
  505.                     {% elseif theme_config('zen-header-style') is same as ('two-line') %}
  506.                         {% set searchClasses =                      searchClasses|replace({'col-sm-auto': 'col-sm-3 col-lg-auto', '#{marginStartClass}-auto': ''}) %}
  507.                         {% set actionClasses =                      actionClasses|replace({'#{marginStartClass}-sm-0': '#{marginStartClass}-xl-0'}) %}
  508.                     {% endif %}
  509.                     {# logo center, search not default #}
  510.                 {% elseif theme_config('zen-logo-position') is same as ('center') and theme_config('zen-search-style') is not same as ('default') %}
  511.                     {% set logoClasses =                        logoClasses|replace({'col-12': 'col-auto pos-center'}) %}
  512.                     {% set actionClasses =                      actionClasses|replace({'col-auto': 'col col-lg-auto'}) %}
  513.                     {% if theme_config('zen-header-style') is same as ('single-line') %}
  514.                         {% set mainNavigationClasses =              mainNavigationClasses|replace({'d-lg-flex': 'd-xl-flex'}) %} {# ... @zenit - have to move the main navigation as offcanvas breakpoint #}
  515.                         {% set mainNavigationToggleClasses =        mainNavigationToggleClasses|replace({'col-md-4':'col-auto', 'd-lg-none': 'd-xl-none'}) %} {# ... @zenit - have to move the main navigation as offcanvas breakpoint #}
  516.                     {% else %}
  517.                         {% set mainNavigationToggleClasses =        mainNavigationToggleClasses|replace({'col-md-4':'col-auto'}) %}
  518.                     {% endif %}
  519.                     {# logo right, search default #}
  520.                 {% elseif theme_config('zen-logo-position') is same as ('right') and theme_config('zen-search-style') is same as ('default') %}
  521.                     {% set logoClasses =                        logoClasses|replace({'col-12': 'col-auto', 'order-1 order-md-4': 'order-4', '#{marginStartClass}-md-auto': '#{marginStartClass}-auto', '#{marginStartClass}-md-3': '#{marginStartClass}-3' }) %}
  522.                     {% set searchClasses =                      searchClasses|replace({'#{marginStartClass}-auto #{marginStartClass}-md-0': ''}) %}
  523.                     {% set actionClasses =                      actionClasses|replace({'#{marginStartClass}-auto #{marginStartClass}-sm-0': '', 'order-4 order-md-1': 'order-1', 'reverse-sm': 'reverse', 'reverse-md': 'reverse'}) %}
  524.                     {# logo right, search not default #}
  525.                 {% elseif theme_config('zen-logo-position') is same as ('right') and theme_config('zen-search-style') is not same as ('default') %}
  526.                     {% set logoClasses =                        logoClasses|replace({'col-12': 'col-auto', 'order-1 order-sm-4': 'order-4', '#{marginStartClass}-sm-auto': '#{marginStartClass}-auto'}) %}
  527.                     {% set actionClasses =                      actionClasses|replace({'#{marginStartClass}-auto #{marginStartClass}-sm-0': '', 'order-3 order-sm-1': 'order-1', 'reverse-sm': 'reverse', 'reverse-md': 'reverse'}) %}
  528.                 {% endif %}
  529.             {% endif %}
  530.             {# ... @zenit - modify zen-sticky-header to include the new xxl viewport #}
  531.             {% set stickyHeaderViewports =                      theme_config('zen-sticky-header') %}
  532.             {# @deprecated @zenit tag:v3.1.0 - Bootstrap v5 #}
  533.             {% if feature('v6.5.0.0') %}
  534.                 {% if 'XL' in stickyHeaderViewports %}
  535.                     {% set stickyHeaderViewports =              ['XXL']|merge(stickyHeaderViewports) %}
  536.                 {% endif %}
  537.             {% endif %}
  538.             {# sticky header js options #}
  539.             {% set stickyHeaderOptions = {
  540.                 viewports: stickyHeaderViewports,
  541.                 scrollOffset: theme_config('zen-sticky-header-offset'),
  542.                 autoHide: theme_config('zen-sticky-header-hide')
  543.             } %}
  544.             {% set stickyHeader = theme_config('zen-sticky-header') ? 'true' : 'false' %}
  545.             {% set headerOpacity = zenCustomFields.category.zenit_horizon_category_header_bg_opacity|replace({'%': ''}) %}
  546.             {% set navigationOpacity = zenCustomFields.category.zenit_horizon_category_nav_main_opacity|replace({'%': ''}) %}
  547.             {# header classes array #}
  548.             {% set headerClasses = ['header-' ~ theme_config('zen-header-style'), 'header-' ~ theme_config('zen-header-style-mobile') ~ '-mobile', 'header-logo-' ~ theme_config('zen-logo-position')]%}
  549.             {% if (controllerName|lower is same as ('navigation') or controllerName|lower is same as ('landingpage')) and zenCustomFields.category.zenit_horizon_category_header_position is empty or zenCustomFields.category.zenit_horizon_category_header_position is same as ('inherit') %}
  550.                 {% set headerClasses = ['header-pos-' ~ theme_config('zen-category-header-position')]|merge(headerClasses) %}
  551.             {% elseif (controllerName|lower is same as ('navigation') or controllerName|lower is same as ('landingpage')) %}
  552.                 {% set headerClasses = ['header-pos-' ~ zenCustomFields.category.zenit_horizon_category_header_position]|merge(headerClasses) %}
  553.             {% endif %}
  554.             {# ... @zenit - checks if header got any opacity settings #}
  555.             {% if (controllerName|lower is same as ('navigation') or controllerName|lower is same as ('landingpage')) %}
  556.                 {% if ( headerOpacity is not empty and headerOpacity is not same as ('inherit') and headerOpacity is not same as ('100') )
  557.                     or ( navigationOpacity is not empty and navigationOpacity is not same as ('inherit') and navigationOpacity is not same as ('100') ) %}
  558.                     {% set headerClasses = ['has-bg-opacity']|merge(headerClasses) %}
  559.                 {% elseif theme_config('zen-category-header-bg-opacity') is not same as ('100')
  560.                     or theme_config('zen-category-nav-main-opacity') is not same as ('100') %}
  561.                     {% set headerClasses = ['has-bg-opacity']|merge(headerClasses) %}
  562.                 {% endif %}
  563.             {% endif %}
  564.             {# nav header classes array #}
  565.             {% set navHeaderClasses = [] %}
  566.             {% if (controllerName|lower is same as ('navigation') or controllerName|lower is same as ('landingpage')) and headerOpacity is empty or headerOpacity is same as ('inherit') %}
  567.                 {% set navHeaderClasses = ['bg-opacity-' ~ theme_config('zen-category-header-bg-opacity')]|merge(navHeaderClasses)  %}
  568.             {% elseif (controllerName|lower is same as ('navigation') or controllerName|lower is same as ('landingpage')) %}
  569.                 {% set navHeaderClasses = ['bg-opacity-' ~ headerOpacity]|merge(navHeaderClasses) %}
  570.             {% endif %}
  571.             {# nav main classes array #}
  572.             {% set navMainClasses = [] %}
  573.             {% if (controllerName|lower is same as ('navigation') or controllerName|lower is same as ('landingpage')) and navigationOpacity is empty or navigationOpacity is same as ('inherit') %}
  574.                 {% set navMainClasses = ['bg-opacity-' ~ theme_config('zen-category-nav-main-opacity')]|merge(navMainClasses) %}
  575.             {% elseif (controllerName|lower is same as ('navigation') or controllerName|lower is same as ('landingpage')) %}
  576.                 {% set navMainClasses = ['bg-opacity-' ~ navigationOpacity]|merge(navMainClasses) %}
  577.             {% endif %}
  578.             {% if theme_config('zen-main-navigation-scroll') %}
  579.                 {% set navMainClasses = ['navbar-nav-scroll']|merge(navMainClasses) %}
  580.             {% endif %}
  581.             {# ... @zenit - theme script options #}
  582.             {% set headerTooltipOptions = {
  583.                 tooltipPlacement: theme_config('zen-shop-navigation-tooltips-placement')
  584.             } %}
  585.             <header class="header-main {{ headerClasses|join(' ') }}"
  586.                     data-zen-sticky-header="{{ stickyHeader }}"
  587.                     data-zen-sticky-header-options="{{ stickyHeaderOptions|json_encode }}"
  588.                     data-zen-header-tooltips="true"
  589.                     data-zen-header-tooltips-options="{{ headerTooltipOptions|json_encode }}">
  590.                 <div class="header-inner">
  591.                     {% block base_header_inner %}
  592.                         {% sw_include '@Storefront/storefront/layout/header/header.html.twig' %}
  593.                     {% endblock %}
  594.                     {# ... @zenit - multi-line header navigation #}
  595.                     {% if theme_config('zen-header-style') is not same as ('single-line') %}
  596.                         {% block base_navigation %}
  597.                             <div class="nav-main {{ navMainClasses|join(' ') }}">
  598.                                 {% block base_navigation_inner %}
  599.                                     {% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
  600.                                 {% endblock %}
  601.                             </div>
  602.                         {% endblock %}
  603.                     {% endif %}
  604.                 </div>
  605.             </header>
  606.         {% endblock %}
  607.         {{ block('base_offcanvas_navigation') }}
  608.         {{ block('base_main') }}
  609.         {{ block('base_footer') }}
  610.     </div>
  611. {% endblock %}
  612. {% block base_breadcrumb %}
  613.     {# ... @zenit - checks if custom zenit-breadcrumb is in use #}
  614.     {% set defaultBreadcrumbs = true %}
  615.     {% for section in page.cmsPage.sections %}
  616.         {% for block in section.blocks %}
  617.             {% if block.type is same as ('zenit-breadcrumb') %}
  618.                 {% set defaultBreadcrumbs = false %}
  619.             {% endif %}
  620.         {% endfor %}
  621.     {% endfor %}
  622.     {% if defaultBreadcrumbs %}
  623.         <div class="breadcrumb-wrap base-breadcrumb justify-content-{{ theme_config('zen-breadcrumbs-align')|replace({'flex-': ''}) }}">
  624.             {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  625.                 context: context,
  626.                 category: page.product.seoCategory
  627.             } only %}
  628.         </div>
  629.     {% endif %}
  630. {% endblock %}
  631. {% block base_body_script %}
  632.     {{ parent() }}
  633.     {% block zen_base_theme_js_files %}
  634.         {% if config('zenitPlatformHorizon.config.customJsFilesActive') %}
  635.             {{ config('zenitPlatformHorizon.config.customJsFiles')|raw }}
  636.         {% endif %}
  637.     {% endblock %}
  638.     {% block zen_base_theme_js_custom %}
  639.         {% if config('zenitPlatformHorizon.config.customJsActive') %}
  640.             <script data-plugin="zenitHorizonCustomJs">
  641.                 {{ config('zenitPlatformHorizon.config.customJs')|replace({'<script>': '','</script>': ''})|raw }}
  642.             </script>
  643.         {% endif %}
  644.     {% endblock %}
  645.     {# Cookie Banner #}
  646.     {% block zen_base_cookie_banner_config %}
  647.         <script data-plugin="zenitHorizon">
  648.             window.zenCookieBannerStyle = '{{ theme_config('zen-cookie-banner-style') }}'
  649.         </script>
  650.     {% endblock %}
  651. {% endblock %}