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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% block base_body_classes %}
  3.     {{ parent() }} {{ theme_config('rhweb-custom-body-class') }}
  4. {% endblock %}
  5. {% block base_body %}
  6.     <div class="rhweb-overlay-cookie-change"></div>
  7.     {% if theme_config('rhweb-general-activate-cookie-overlay') %}
  8.         <script>
  9.             window.activateCookieOverlay = true;
  10.         </script>
  11.     {% endif %}
  12.     {% if theme_config('rhweb-header-layout-header-fixed') and controllerName != 'Checkout' and controllerName != 'Register' %}
  13.         <script>
  14.             window.activateFixedNavigation = true;
  15.         </script>
  16.     {% endif %}
  17.     {{ parent() }}
  18. {% endblock %}
  19. {% block base_header %}
  20.     {% if theme_config('rhweb-general-activate-preloader') %}
  21.         <div class="preloader">
  22.             <div class="preloader-content">
  23.                 {% sw_include '@Storefront/storefront/rhweb-custom/snippets/preloader.html.twig' %}
  24.             </div>
  25.         </div>
  26.     {% endif %}
  27.     {% sw_include '@Storefront/storefront/layout/header/top-bar.html.twig' %}
  28.     <header id="fixedNavigation" class="header-main shadow-sm">
  29.         {% block base_header_inner %}
  30.             <div class="container">
  31.                 {% sw_include '@Storefront/storefront/layout/header/header.html.twig' %}
  32.             </div>
  33.         {% endblock %}
  34.     </header>
  35. {% endblock %}
  36. {% block base_navigation %}{% endblock %}
  37. {% block base_script_hmr_mode %}
  38.  {{ parent() }}
  39. {% endblock %}
  40. {% block base_body_script %}
  41.     {{ parent() }}
  42.     {% if theme_config('rhweb-custom-js') %}
  43.         <script>
  44.             {{ theme_config('rhweb-custom-js') | raw }}
  45.         </script>
  46.     {% endif %}
  47. {% endblock %}
  48. {% block base_breadcrumb %}{% endblock %}
  49. {% block base_main %}
  50.     <main class="content-main">
  51.         {% if controllerAction|lower == 'home' %}
  52.             {% sw_include '@Storefront/storefront/rhweb-custom/home/slider.html.twig' %}
  53.         {% endif %}
  54.         {% block base_flashbags %}
  55.             {{ parent() }}
  56.         {% endblock %}
  57.         {% block base_main_inner %}
  58.             <div class="breadcrumb rhweb-breadcrumb-container">
  59.                 <div class="container">
  60.                     {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  61.                         context: context,
  62.                         category: page.product.seoCategory
  63.                     } only %}
  64.                 </div>
  65.             </div>
  66.             {{ parent() }}
  67.         {% endblock %}
  68.     </main>
  69. {% endblock %}
  70. {% block base_footer %}
  71.     {% block rhweb_theme_newsletter %}
  72.         {% if theme_config('rhweb-footer-activate-newsletter') %}
  73.             {% sw_include '@Storefront/storefront/rhweb-custom/snippets/footer/rhweb-newsletter.html.twig' %}
  74.         {% endif %}
  75.     {% endblock %}
  76.     {{ parent() }}
  77. {% endblock %}