templates/front/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  6.         <meta content="width=device-width, initial-scale=1" name="viewport">
  7.         <link rel="icon" href="{{ asset('app-icons/favicon.ico') }}" />
  8.         <title>{% block meta_title %}{% endblock %} | Citizens</title>
  9.         <meta name="title" content="{{ block('meta_title') }} | Citizens">
  10.         <meta name="description" content="{% block meta_description %}{% endblock %}">
  11.         {% if app_env == 'prod' %}
  12.             <meta name="robots" content="{% block meta_robots %}index,follow{% endblock %}">
  13.         {% else %}
  14.             <meta name="robots" content="noindex,nofollow">
  15.         {% endif %}
  16.         <!-- Open Graph / Facebook -->
  17.         <meta property="og:type" content="website">
  18.         <meta property="og:url" content="https://www.colocalyon.fr">
  19.         <meta property="og:title" content="Citizens">
  20.         <meta property="og:description" content="Citizens">
  21.         <meta property="og:image" content="https://www.colocalyon.fr/app-icons/share.jpg" />
  22.         <!-- Twitter -->
  23.         <meta property="twitter:card" content="summary_large_image">
  24.         <meta property="twitter:url" content="https://www.colocalyon.fr">
  25.         <meta property="twitter:title" content="Citizens">
  26.         <meta property="twitter:description" content="Citizens">
  27.         <meta property="twitter:image" content="https://www.colocalyon.fr/app-icons/share.jpg">
  28.         <!-- RGPD -->
  29.         <script type="text/javascript" src="/js/tarteaucitronjs/tarteaucitron.js"></script>
  30.         <script type="text/javascript">
  31.             window.tarteaucitronForceLanguage = "fr";
  32.             tarteaucitron.user.googletagmanagerId = '{{ google_analytics_id }}';
  33.             // google tag manager
  34.             tarteaucitron.services.googletagmanager = {
  35.                 "key": "googletagmanager",
  36.                 "type": "api",
  37.                 "name": "Google Tag Manager",
  38.                 "uri": "https://policies.google.com/privacy",
  39.                 "needConsent": true,
  40.                 "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  41.                 "js": function () {
  42.                     "use strict";
  43.                     if (tarteaucitron.user.googletagmanagerId === undefined) {
  44.                         return;
  45.                     }
  46.                     window.dataLayer = window.dataLayer || [];
  47.                     window.dataLayer.push({
  48.                         'gtm.start': new Date().getTime(),
  49.                         event: 'gtm.js'
  50.                     });
  51.                     tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  52.                 }
  53.             };
  54.             (tarteaucitron.job = tarteaucitron.job || []).push('googletagmanager');
  55.             tarteaucitron.init({
  56.                 "privacyUrl": "{{ path('front_page_privacy') }}",
  57.                 "hashtag": "#tarteaucitron", /* Open the panel with this hashtag */
  58.                 "cookieName": "tarteaucitron", /* Cookie name */
  59.                 "orientation": "bottom", /* Banner position (top - bottom) */
  60.                 "showAlertSmall": false, /* Show the small banner on bottom right */
  61.                 "cookieslist": true, /* Show the cookie list */
  62.                 "adblocker": false, /* Show a Warning if an adblocker is detected */
  63.                 "AcceptAllCta" : true, /* Show the accept all button when highPrivacy on */
  64.                 "highPrivacy": true, /* Disable auto consent */
  65.                 "handleBrowserDNTRequest": false, /* If Do Not Track == 1, disallow all */
  66.                 "removeCredit": true, /* Remove credit link */
  67.                 "moreInfoLink": false, /* Show more info link */
  68.                 "useExternalCss": true, /* If false, the tarteaucitron.css file will be loaded */
  69.                 "readmoreLink": "/privacy"
  70.             });
  71.         </script>
  72.         {% block stylesheets %}
  73.             {{ encore_entry_link_tags('app') }}
  74.         {% endblock %}
  75.         {% block javascripts %}
  76.             {{ encore_entry_script_tags('app') }}
  77.         {% endblock %}
  78.     </head>
  79.     <body
  80.         class="{% block body_class %}{% if not is_granted('IS_AUTHENTICATED_FULLY') %}logged-out{% else %}logged-in{% endif %} {% endblock %}"
  81.         data-locale="{{ app.request.locale }}"
  82.         data-controller="app"
  83.     >
  84.         {% if app_env == 'dev' %}
  85.             <div class="dev-banner">DEV VERSION</div>
  86.         {% endif %}
  87.         {% block body %}{% endblock %}
  88.         {% block javascripts_footer %}{% endblock %}
  89.     </body>
  90. </html>