custom/plugins/RHWebCannamed/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.     {% if theme_config('rhweb-general-layout-type') == 'boxed' %}
  18.         <div class="container p-0 shadow-lg">
  19.             {{ parent() }}
  20.         </div>
  21.     {% else %}
  22.         {{ parent() }}
  23.     {% endif %}
  24. {% endblock %}
  25. {% block base_main %}
  26.     <main class="content-main">
  27.         {% if controllerAction|lower == 'home' and theme_config('rhweb-slider-activate-slider') %}
  28.             {% sw_include '@Storefront/storefront/rhweb-custom/snippets/home/slider.html.twig' %}
  29.         {% endif %}
  30.         {% if activeRoute == 'frontend.navigation.page' and theme_config('rhweb-listing-general-activate-title') %}
  31.             <div class="rhweb-category-title-container"{% if theme_config('rhweb-listing-general-activate-image') and page.header.navigation.active.media.url %} style="background-image:url('{{ page.header.navigation.active.media.url }}')"{% endif %}>
  32.                 <div class="container">
  33.                     <{{ theme_config('rhweb-listing-general-title-size') }}>{{ page.header.navigation.active.translated.name }}</{{ theme_config('rhweb-listing-general-title-size') }}>
  34.                 </div>
  35.             </div>
  36.         {% endif %}
  37.         {% block base_flashbags %}
  38.             {{ parent() }}
  39.         {% endblock %}
  40.         {% block base_main_inner %}
  41.             {{ parent() }}
  42.         {% endblock %}
  43.     </main>
  44. {% endblock %}
  45. {% block base_body_script %}
  46.     {{ parent() }}
  47.     {% sw_include '@Storefront/storefront/rhweb-custom/snippets/header/scripts/rhweb-javascript.html.twig' %}
  48. {% endblock %}
  49. {% block base_header %}
  50.     {% block layout_top_bar %}{% endblock %}
  51.     <header class="header-main">
  52.         {% block base_header_inner %}
  53.             <div class="d-none d-lg-block">
  54.                 <div class="rhweb-header-{{ theme_config('rhweb-header-layout-type') }}">
  55.                     {% sw_include '@Storefront/storefront/rhweb-custom/snippets/header/rhweb-' ~ theme_config('rhweb-header-layout-type') ~ '.html.twig' %}
  56.                 </div>
  57.             </div>
  58.             <div class="d-lg-none">
  59.                 <div class="rhweb-header-mobile">
  60.                     {% sw_include '@Storefront/storefront/rhweb-custom/snippets/header/rhweb-mobile.html.twig' %}
  61.                 </div>
  62.             </div>
  63.         {% endblock %}
  64.     </header>
  65. {% endblock %}
  66. {% block base_navigation %}{% endblock %}
  67. {% block base_footer %}
  68.     {% if theme_config('rhweb-footer-activate-newsletter') and theme_config('rhweb-newsletter-position') != 'column' %}
  69.         {% sw_include '@Storefront/storefront/rhweb-custom/snippets/footer/rhweb-newsletter.html.twig' with{
  70.             position: 'footer-above'
  71.         } %}
  72.     {% endif %}
  73.     <footer class="footer-main">
  74.         {% block base_footer_inner %}
  75.             {% sw_include '@Storefront/storefront/rhweb-custom/snippets/footer/rhweb-' ~ theme_config('rhweb-footer-layout-type') ~ '.html.twig' %}
  76.         {% endblock %}
  77.     </footer>
  78. {% endblock %}