custom/plugins/RHWebVenue/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_header %}
  6.     {% if theme_config('rhweb-topbar-activate-topbar') %}
  7.         <div class="d-none d-lg-block">
  8.             {% sw_include '@Storefront/storefront/layout/header/top-bar.html.twig' %}
  9.         </div>
  10.     {% endif %}
  11.     {{ parent() }}
  12. {% endblock %}
  13. {% block base_navigation %}
  14.     <div id="fixedNavigation" class="nav-main">
  15.         {% block base_navigation_inner %}
  16.             {% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
  17.         {% endblock %}
  18.     </div>
  19. {% endblock %}
  20. {% block base_body %}
  21.     <div class="rhweb-overlay-cookie-change"></div>
  22.     {% if theme_config('rhweb-general-activate-cookie-overlay') %}
  23.         <script>
  24.             window.activateCookieOverlay = true;
  25.         </script>
  26.     {% endif %}
  27.     {% if theme_config('rhweb-header-layout-header-fixed') and controllerName != 'Checkout' and controllerName != 'Register' %}
  28.         <script>
  29.             window.activateFixedNavigation = true;
  30.         </script>
  31.     {% endif %}
  32.     {{ parent() }}
  33. {% endblock %}
  34. {% block base_breadcrumb %}{% endblock %}
  35. {% block base_main %}
  36.     <main class="content-main">
  37.         {% if theme_config('rhweb-slider-activate-slider') %}
  38.             {% if theme_config('rhweb-slider-activate-slider-onlyfrontpage') %}
  39.                 {% if controllerAction|lower == 'home' %}
  40.                     {% sw_include '@Storefront/storefront/rhweb-custom/home/slider.html.twig' %}
  41.                 {% endif %}
  42.             {% else %}
  43.                 {% sw_include '@Storefront/storefront/rhweb-custom/home/slider.html.twig' %}
  44.             {% endif %}
  45.         {% endif %}
  46.         {% block base_flashbags %}
  47.             {{ parent() }}
  48.         {% endblock %}
  49.         {% block base_main_inner %}
  50.             <div class="breadcrumb rhweb-breadcrumb-container">
  51.                 <div class="container">
  52.                     {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  53.                         context: context,
  54.                         category: page.product.seoCategory
  55.                     } only %}
  56.                 </div>
  57.             </div>
  58.             {{ parent() }}
  59.         {% endblock %}
  60.     </main>
  61. {% endblock %}
  62. {% block base_body_script %}
  63.     {{ parent() }}
  64.     {% if theme_config('rhweb-custom-js') %}
  65.         <script>
  66.             {{ theme_config('rhweb-custom-js') | raw }}
  67.         </script>
  68.     {% endif %}
  69. {% endblock %}
  70. {% block base_footer %}
  71.     {% if theme_config('rhweb-mailchimp-activate-footer') %}
  72.         {% if theme_config('rhweb-mailchimp-activate-onlyfrontpage') %}
  73.             {% if controllerAction|lower == 'home' %}
  74.                 {% sw_include '@Storefront/storefront/rhweb-custom/home/mailchimp.html.twig' %}
  75.             {% endif %}
  76.         {% else %}
  77.             {% sw_include '@Storefront/storefront/rhweb-custom/home/mailchimp.html.twig' %}
  78.         {% endif %}
  79.     {% endif %}
  80.     {% if theme_config('rhweb-footer-activate-service') %}
  81.         <div class="service-menu-container text-center d-none d-lg-block">
  82.             <div class="container">
  83.                 {% sw_include '@Storefront/storefront/layout/header/actions/service-menu-widget.html.twig' %}
  84.             </div>
  85.         </div>
  86.     {% endif %}
  87.     {% if theme_config('rhweb-footer-activate-socials') %}
  88.         <div class="social-footer-container">
  89.             <div class="container">
  90.                 {% sw_include '@Storefront/storefront/rhweb-custom/social.html.twig' %}
  91.             </div>
  92.         </div>
  93.     {% endif %}
  94.     {% if theme_config('rhweb-footer-activate-newsletter') and theme_config('rhweb-newsletter-position') != 'column' %}
  95.         {% sw_include '@Storefront/storefront/rhweb-custom/snippets/footer/rhweb-newsletter.html.twig' with{
  96.             position: 'footer-above'
  97.         } %}
  98.     {% endif %}
  99.     {% if theme_config('rhweb-mailchimp-activate-popup') and not theme_config('rhweb-general-activate-cookie-overlay') %}
  100.         {% sw_include '@Storefront/storefront/rhweb-custom/newsletter-popup.html.twig' %}
  101.     {% endif %}
  102.     {{ parent() }}
  103. {% endblock %}