{% sw_extends '@Storefront/storefront/base.html.twig' %}
{% block base_body_classes %}
{{ parent() }} {{ theme_config('rhweb-custom-body-class') }}
{% endblock %}
{% block base_body %}
<div class="rhweb-overlay-cookie-change"></div>
{% if theme_config('rhweb-general-activate-cookie-overlay') %}
<script>
window.activateCookieOverlay = true;
</script>
{% endif %}
{% if theme_config('rhweb-header-layout-header-fixed') and controllerName != 'Checkout' and controllerName != 'Register' %}
<script>
window.activateFixedNavigation = true;
</script>
{% endif %}
{% if theme_config('rhweb-general-layout-type') == 'boxed' %}
<div class="container p-0 shadow-lg">
{{ parent() }}
</div>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block base_main %}
<main class="content-main">
{% if controllerAction|lower == 'home' and theme_config('rhweb-slider-activate-slider') %}
{% sw_include '@Storefront/storefront/rhweb-custom/snippets/home/slider.html.twig' %}
{% endif %}
{% if activeRoute == 'frontend.navigation.page' and theme_config('rhweb-listing-general-activate-title') %}
<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 %}>
<div class="container">
<{{ theme_config('rhweb-listing-general-title-size') }}>{{ page.header.navigation.active.translated.name }}</{{ theme_config('rhweb-listing-general-title-size') }}>
</div>
</div>
{% endif %}
{% block base_flashbags %}
{{ parent() }}
{% endblock %}
{% block base_main_inner %}
{{ parent() }}
{% endblock %}
</main>
{% endblock %}
{% block base_body_script %}
{{ parent() }}
{% sw_include '@Storefront/storefront/rhweb-custom/snippets/header/scripts/rhweb-javascript.html.twig' %}
{% endblock %}
{% block base_header %}
{% block layout_top_bar %}{% endblock %}
<header class="header-main">
{% block base_header_inner %}
<div class="d-none d-lg-block">
<div class="rhweb-header-{{ theme_config('rhweb-header-layout-type') }}">
{% sw_include '@Storefront/storefront/rhweb-custom/snippets/header/rhweb-' ~ theme_config('rhweb-header-layout-type') ~ '.html.twig' %}
</div>
</div>
<div class="d-lg-none">
<div class="rhweb-header-mobile">
{% sw_include '@Storefront/storefront/rhweb-custom/snippets/header/rhweb-mobile.html.twig' %}
</div>
</div>
{% endblock %}
</header>
{% endblock %}
{% block base_navigation %}{% endblock %}
{% block base_footer %}
{% if theme_config('rhweb-footer-activate-newsletter') and theme_config('rhweb-newsletter-position') != 'column' %}
{% sw_include '@Storefront/storefront/rhweb-custom/snippets/footer/rhweb-newsletter.html.twig' with{
position: 'footer-above'
} %}
{% endif %}
<footer class="footer-main">
{% block base_footer_inner %}
{% sw_include '@Storefront/storefront/rhweb-custom/snippets/footer/rhweb-' ~ theme_config('rhweb-footer-layout-type') ~ '.html.twig' %}
{% endblock %}
</footer>
{% endblock %}