{# Layout : Default #}
{% extends '/layouts/main.twig' %}


{% block site_wrapper %}
    

    <div class="siteWrapper {{ site_wrapper_class }} {{ page_class }}" {{ disable_vue ? '' : 'id="vue_environment"' }}>


        {#
            If true, the USP banner will be displayed
            show_usp_banner: true
            If true, the usp banner will be attached below the header
            usp_banner_after_header: true (Default: false)
        #}
        {% if fullWidth is empty %}
            {% include 'includes/page_structure/header.twig' with {
                show_usp_banner: false,
                usp_banner_after_header: true
            }%}
        {% endif %}

        <div class="siteInnerWrapper">
            

            <div id="content" role="main">

                {% block content %}

                    Content Block

                {% endblock %}

            </div> <!-- #content -->

        </div> <!-- .siteInnerWrapper -->

        {#
           Shows a logo bar under the footer. This will hide the logos under the newsletter
           logo_bar: true,
           If true, this will hide the logos that appear under the newsletter form
           hide_newsletter_logos: true,
           If true, the meta colours will switch to a light background version
           meta_light_background: true
           Use a light background on main footer body
           light_bg: true
       #}

        {% if fullWidth is empty %}
            {% include 'includes/page_structure/footer.twig' with {
                logo_bar: false,
                hide_newsletter_logos: false,
                meta_light_background: false,
                light_bg: false
            }%}
        {% endif %}

    </div> <!-- .siteWrapper -->


    {% block frontend_footer %}

        {# Trust Logo Scripts #}
        {% if trust_logo_scripts is not empty %}
            {% for script in trust_logo_scripts %}
                <script src="{{ script }}" defer></script>
            {% endfor %}
        {% endif %}


        {% if config('site.trustpilot_api_business_id') is not empty and config('site.trustpilot_api_template_id') is not empty %}
            
            <!-- TrustBox script -->
            <script>

                
                
                window.addedTP = false;

                window.addEventListener('DOMContentLoaded', function(event) {
                    
                    
                    if(!window.addedTP) {

                        window.addedTP = true;
                        
                        var tpScript = document.createElement("script");
                        tpScript.src = '//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js';
                        document.getElementsByTagName('body')[0].appendChild(tpScript);

                    }

                });
            </script>
            <!-- End Trustbox script -->
            
        {% endif %}

   

    {% endblock %}


{% endblock %}
