<!DOCTYPE html>
<html lang="pl-PL">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />

        <title>
            {% if record.seo_title is defined and record.seo_title is not empty %}
                {{ record.seo_title }}
            {% else %}
                {% if record.title is defined and record.title is not empty %}
                    {{ record.title }}
                {% else %}
                    {% if record.name is defined and record.name is not empty %}
                        {{ record.name }}
                    {% endif %}
                {% endif %}
            {% endif %}
            | Incluvision
        </title>
        {% if record.seo_description is defined and record.seo_description is not empty %}
            <meta name="description" content="{{ record.seo_description }}" />
        {% endif %}
        {% if record.seo_keywords is defined and record.seo_keywords is not empty %}
            <meta name="keywords" content="{{ record.seo_keywords }}" />
        {% endif %}

        <link rel="preconnect" href="https://fonts.googleapis.com">
        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
        <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&family=Ubuntu:wght@400;500;700&display=swap" rel="stylesheet">


        <link rel="stylesheet" href="{{ asset('dist/css/main.css') }}" />

        <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
        <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
        <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
        <link rel="manifest" href="/site.webmanifest">
        <meta name="msapplication-TileColor" content="#da532c">
        <meta name="theme-color" content="#ffffff">

        <meta property="og:locale" content="pl_PL"/>
        <meta property="og:type" content="website"/>
        <meta property="og:url" content="{% if currentUrl is defined %}{{ currentUrl }}{% else %}https://incluvision.aktywizacja.org.pl/{% endif %}"/>
        <meta property="og:title" content="{{ (record.title is defined) ? record.title : ((record.title is defined) ? record.name : '') }} | Incluvision"/>

        <meta property="og:description"
              content="{% if record.seoDescription is defined and record.seoDescription is not empty %}{{ record.seoDescription }}{% endif %}"/>
        <meta property="og:image" content="{% if record.image is defined and record.image is not empty %}https://incluvision.aktywizacja.org.pl{{ sonata_path(record.image, 'news' ) }}{% else %}{{ asset('OG.jpg') }}{% endif %}"/>


        <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="76234031-b797-4f68-9104-9e5e98876c61" data-blockingmode="auto" type="text/javascript"></script>

        <!-- Google tag (gtag.js) -->
        <script async src="https://www.googletagmanager.com/gtag/js?id=G-H05QQTG540"></script>
        <script>
          window.dataLayer = window.dataLayer || [];
          function gtag(){dataLayer.push(arguments);}
          gtag('js', new Date());

          gtag('config', 'G-H05QQTG540');
        </script>
    </head>
    <body>

        {% if menuItems is defined %}
            {{ include('partials/_header.twig', {'menuItems':menuItems}) }}
        {% else %}
            {{ include('partials/_header.twig') }}
        {% endif %}

        <main {% if record.bg is defined and record.bg is empty %}style="background: none"{% endif %}>
            {% if record.bg is defined and record.bg is not empty %}<div class="bg"></div>{% endif %}
            <div class="content">   
                {% block main %}
                {% endblock main %}
            </div>
        </main>

        {{ include('partials/_footer.twig') }}
        <script src="{{ asset('dist/js/script.js')}}" type="text/javascript"></script>
    </body>
</html>