src/Tutorka/Bundle/CoreBundle/Resources/views/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
    <html class="h-100" lang="{{ tutorka_locale }}">
        <head>
            <meta charset="utf-8">
            <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
            <link rel="shortcut icon" type="image/png" href="{{ asset('build/images/tutorka_icon.png') }}"/>
            <link rel="icon" type="image/png" href="{{ asset('build/images/tutorka_icon.png') }}"/>
            {% for meta_tag in get_meta_tags(app.request) %}
                {% if meta_tag.name == 'title' and meta_tag.name == meta_tag.nameValue %}
                    <title>{{ meta_tag.contentValue }} {{ 'title.sulfix'|trans({}, 'seo') }}</title>
                {% elseif meta_tag.name == 'description' and meta_tag.name == meta_tag.nameValue %}
                    <meta name="description" content="{{ meta_tag.contentValue }}">
                {% elseif meta_tag.name == 'canonical' and meta_tag.name == meta_tag.nameValue %}
                    <link rel="canonical" href="{{ meta_tag.contentValue }}" />
                {% else %}
                    <meta {{ meta_tag.name }}="{{ meta_tag.nameValue }}" content="{{ meta_tag.contentValue }}">
                {% endif %}
            {% endfor %}
            {% block stylesheets %}
                <link rel="stylesheet" href="{{ asset('build/vendor.css') }}" />
            {% endblock %}
        </head>
        <body class="{{ bodyClass is defined and bodyClass ? bodyClass : ""}}">
            {% block body %}{% endblock %}
            {% block footer %}{% endblock %}
            {% block javascripts %}
                {% if analytics_tracking_code and analytics_tracking_code is not empty %}
                    <!-- Global site tag (gtag.js) - Google Analytics -->
                    <script async src="https://www.googletagmanager.com/gtag/js?id={{ analytics_tracking_code }}"></script>
                    <script>
                      window.dataLayer = window.dataLayer || [];
                      function gtag(){dataLayer.push(arguments);}
                      gtag('js', new Date());
                      {% if app.user and app.user.id is not null %}
                        gtag('set', {'user_id': '{{ app.user.id }}'});
                      {% endif %}
                      gtag('config', '{{ analytics_tracking_code }}');
                    </script>
                {% endif %}
                <script src="{{ asset('build/runtime.js') }}"></script>
                <script src="{{ asset('build/vendor.js') }}"></script>
                {% if hotjar_enabled is defined and hotjar_enabled %}
                    <script>
                      (function(h,o,t,j,a,r){
                        h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
                        h._hjSettings={hjid:{{ hotjar_site_id }},hjsv:6};
                        a=o.getElementsByTagName('head')[0];
                        r=o.createElement('script');r.async=1;
                        r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
                        a.appendChild(r);
                      })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
                    </script>
                {% endif %}
            {% endblock %}
        </body>
    </html>