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.             tarteaucitron.user.gtagUa = '{{ google_analytics_id }}';
  32.             // google analytics
  33.             tarteaucitron.services.gtag = {
  34.                 "key": "gtag",
  35.                 "type": "analytic",
  36.                 "name": "Google Analytics (gtag.js)",
  37.                 "uri": "https://support.google.com/analytics/answer/6004245",
  38.                 "needConsent": true,
  39.                 "cookies": (function () {
  40.                     // Add _gat_gtag_UA_XXXXXXX_XX cookie to cookies array
  41.                     var gatGtagUaCookie = '_gat_gtag_' + tarteaucitron.user.gtagUa;
  42.                     gatGtagUaCookie = gatGtagUaCookie.replace(/-/g, '_');
  43.                     return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', gatGtagUaCookie];
  44.                 })(),
  45.                 "js": function () {
  46.                     "use strict";
  47.                     window.dataLayer = window.dataLayer || [];
  48.                     tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
  49.                         window.gtag = function gtag(){dataLayer.push(arguments);}
  50.                         gtag('js', new Date());
  51.                         gtag('config', tarteaucitron.user.gtagUa);
  52.                         if (typeof tarteaucitron.user.gtagMore === 'function') {
  53.                             tarteaucitron.user.gtagMore();
  54.                         }
  55.                     });
  56.                 }
  57.             };
  58.             tarteaucitron.init({
  59.                 "privacyUrl": "{{ path('front_page_privacy') }}",
  60.                 "hashtag": "#tarteaucitron", /* Open the panel with this hashtag */
  61.                 "cookieName": "tarteaucitron", /* Cookie name */
  62.                 "orientation": "bottom", /* Banner position (top - bottom) */
  63.                 "showAlertSmall": false, /* Show the small banner on bottom right */
  64.                 "cookieslist": true, /* Show the cookie list */
  65.                 "adblocker": false, /* Show a Warning if an adblocker is detected */
  66.                 "AcceptAllCta" : true, /* Show the accept all button when highPrivacy on */
  67.                 "highPrivacy": true, /* Disable auto consent */
  68.                 "handleBrowserDNTRequest": false, /* If Do Not Track == 1, disallow all */
  69.                 "removeCredit": true, /* Remove credit link */
  70.                 "moreInfoLink": false, /* Show more info link */
  71.                 "useExternalCss": true, /* If false, the tarteaucitron.css file will be loaded */
  72.                 "readmoreLink": "/"
  73.             });
  74.             (tarteaucitron.job = tarteaucitron.job || []).push('gtag');
  75.         </script>
  76.         {% block stylesheets %}
  77.             {{ encore_entry_link_tags('app') }}
  78.         {% endblock %}
  79.         {% block javascripts %}
  80.             {{ encore_entry_script_tags('app') }}
  81.         {% endblock %}
  82.     </head>
  83.     <body
  84.         class="{% block body_class %}{% if not is_granted('IS_AUTHENTICATED_FULLY') %}logged-out{% else %}logged-in{% endif %} {% endblock %}"
  85.         data-locale="{{ app.request.locale }}"
  86.         data-controller="app"
  87.     >
  88.         {% if app_env == 'dev' %}
  89.             <div class="dev-banner">DEV VERSION</div>
  90.         {% endif %}
  91.         {% block body %}{% endblock %}
  92.         {% block javascripts_footer %}{% endblock %}
  93.     </body>
  94. </html>