<!doctype html>

<html lang="{{ config('app.locale') }}">

<head>
    {% include "qcr.theme.qcr::partials/metadata" %}
</head>

<body id="skrollr-body">

{% include template.theme.header %}

<div class="container">
    {% include "qcr.theme.qcr::partials/messages" %}
</div>

{% if page.id and not page.blocks.has('*_banner_block') %}
    {% include "qcr.theme.qcr::grids/default_banner" %}
{% endif %}

{% if page.id and page.blocks.has('*_banner_block') %}
    {% for block in page.blocks %}
        {% if str_is('*_banner_block', block.extension.value.slug) %}
            {{ block.render()|raw }}
        {% endif %}
    {% endfor %}
{% endif %}

<main id="main">

    <div class="container">
        <div class="row">
            <div class="col-lg-3">
                {% include "qcr.theme.qcr::partials/sidebar.twig" %}
            </div>
            <div class="col-lg-9">
                <div id="content">
                    {% block content %}{% endblock %}
                </div>
            </div>
        </div>
    </div>

</main>

{% include "qcr.theme.qcr::partials/footer" %}
{% include "qcr.theme.qcr::partials/modals" %}
{% include "qcr.theme.qcr::partials/assets" %}

</body>
</html>
