templates/buzz/base.html.twig line 1

Open in your IDE?
  1. <html lang="{{ app.request.locale|split('_')[0] }}">
  2.     <head>
  3.         <meta charset="utf-8">
  4.         <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  5.         <link rel="icon" type="image/x-icon" href="{{ asset('build/img/favicon_buzz.png') }}">
  6.         <!-- GOOGLE ANALYTICS -->
  7.         <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-4YY0Y87SCV"></script><script> window.dataLayer = window.dataLayer || [];
  8.             function gtag() {
  9.                 dataLayer.push(arguments);
  10.             }
  11.             gtag('js', new Date());
  12.             gtag('config', 'G-4YY0Y87SCV');</script> 
  13.         <script>
  14.             var _gaq = _gaq || [];
  15.             _gaq.push(['_setAccount', 'UA-1099043-1']);
  16.             _gaq.push(['_gat._anonymizeIp']);
  17.             _gaq.push(['_trackPageview']);
  18.             (function () {
  19.                 var ga = document.createElement('script');
  20.                 ga.type = 'text/javascript';
  21.                 ga.async = true;
  22.                 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  23.                 var s = document.getElementsByTagName('script')[0];
  24.                 s.parentNode.insertBefore(ga, s);
  25.             })();
  26.         </script>
  27.         <!-- END GOOGLE ANALYTICS -->
  28.         {% cache "block-1-js" ttl(86400) %}  {#  86400s = 1jour #}
  29.         {% endcache %}
  30.         {% set  lang = 'fr' %}
  31.         {% if  app.request.cookies.get('lang') %}
  32.             {% set  lang =  app.request.cookies.get('lang') %}
  33.         {% endif %}
  34.         {% if metaTag is defined and metaTag.getTitle %}
  35.             <title>{{ metaTag.getTitle }}</title>
  36.         {% else %}
  37.             {% block title %}
  38.                 <title>FUSACQ {{ dates_provider.anneeEnCours }}</title>
  39.             {% endblock %}
  40.         {% endif %}
  41.         {% if metaTag is defined and metaTag.getDescription %}
  42.             <meta name="description" content="{{ metaTag.getDescription }}">
  43.         {% else %}
  44.             {% block description %}
  45.             {% endblock %}
  46.         {% endif %}
  47.         {# Attention : #}
  48.         {# 1 - Page canonique unique pour chaque variante linguistique #}
  49.         {# 2 - Autocanonisation : Chaque page linguistique devrait être "canonique" pour elle-même  #}
  50.         {# 3 - Pas de page canonique vers une autre langue #}
  51.         {# 4 - Utiliser x-default correctement #}
  52.         {# 5 - La balise hreflang doit être seulement utilisée pour des pages qui ne renvoient pas à une autre page via l’attribut Canonical #}
  53.         {# https://www.ionos.fr/digitalguide/web-marketing/search-engine-marketing/hreflang-principes-et-erreurs-frequentes/ #}
  54.         {% if metaTag is defined and metaTag.getCanonical %}
  55.             <link rel="canonical" href="{{ metaTag.getCanonical }}">
  56.         {% else %}
  57.             {% block canonical %}
  58.             {% endblock %}
  59.         {% endif %}
  60.         {% if metaTag is defined and metaTag.getAlternates %}
  61.             {% for alternate in metaTag.getAlternates %}
  62.                 <link rel="alternate" hreflang="{{ alternate.lang }}" href="//{{ alternate.href }}">
  63.             {% endfor %}
  64.         {% else %}
  65.             {% block alternate %}
  66.             {% endblock %}
  67.         {% endif %}
  68.         {# Balises hreflang générées par CanonicalUrlService #}
  69.         {% if hreflangLinks is defined %}
  70.             {% for link in hreflangLinks %}
  71.                 <link href="{{ link.href }}" hreflang="{{ link.hreflang }}" rel="{{ link.rel }}">
  72.             {% endfor %}
  73.         {% endif %}
  74.         {# Liens de pagination générés par CanonicalUrlService #}
  75.         {% if paginationLinks is defined %}
  76.             {% for link in paginationLinks %}
  77.                 <link href="{{ link.href }}" rel="{{ link.rel }}">
  78.             {% endfor %}
  79.         {% endif %}
  80.         {% if metaTag is defined and metaTag.getNext %}
  81.             <link rel="next" href="//{{ metaTag.getNext }}">
  82.         {% else %}
  83.             {% block next %}
  84.             {% endblock %}
  85.         {% endif %}
  86.         {% if metaTag is defined and metaTag.getPrev %}
  87.             <link rel="prev" href="//{{ metaTag.getPrev }}">
  88.         {% else %}
  89.             {% block prev %}
  90.             {% endblock %}
  91.         {% endif %}
  92.         {% if metaTag is defined and metaTag.getRobots %}
  93.             <meta name="robots" content="{{ metaTag.getRobots }}">
  94.         {% else %}
  95.             {% block robots %}
  96.             {% endblock %}
  97.         {% endif %}
  98.         {% set  dataSession = app.session.all %}
  99.         {% if   app.session.all.codePays is defined %}
  100.             {% set  codePays =  app.session.all.codePays %}
  101.             {% set  codePaysWithUnderScore =  '_'~app.session.all.codePays~'_' %}
  102.         {% else %}
  103.             {% set  codePays = "fr" %}
  104.             {% set  codePaysWithUnderScore = '_fr_' %}
  105.         {% endif %}
  106.         <script type="text/javascript">
  107.             if (window.$_boServerVars === undefined) {
  108.                 window.$_boServerVars = {{ render_esi(controller('\App\\Ajax\\Controller\\BaseController::serverVariables',{"codePays": codePays})) }};
  109.             }
  110.         </script>
  111.         {# en mode production on cache les debug js #}
  112.         {% if app.request.server.get('APP_ENV') !="dev" %}
  113.             <script type="text/javascript">
  114.                 console.log = function () {};
  115.                 console.debug = function () {};
  116.             </script>
  117.         {% endif %}
  118.         {# en mode production on cache les debug js #}
  119.         {% set acceptPubCib = true %}
  120.         {% if app.request.cookies.get('acceptPubCib') == "non" %}
  121.             {% set acceptPubCib = false %}
  122.         {% endif %}
  123.         {% if acceptPubCib %}
  124.             <script async='async' src='https://www.googletagservices.com/tag/js/gpt.js'></script>
  125.             <script type='text/javascript'>
  126.               var googletag = googletag || {};
  127.               googletag.cmd = googletag.cmd || [];
  128.             </script>
  129.             <script type='text/javascript'>
  130.             var gptAdSlots = [];
  131.               googletag.cmd.push(function() {
  132.                   var bannerSize = googletag.sizeMapping().
  133.                   addSize([980, 0], [970, 90]).
  134.                   addSize([740, 0], [728, 90]).
  135.                   addSize([480, 0], [468, 60]).
  136.                   addSize([0, 0], [320, 50]).
  137.                   build();
  138.                   
  139.                   var paveSize = googletag.sizeMapping().
  140.                   addSize([980, 0], [[300, 100],[300, 250],[300,600]]).
  141.                   addSize([740, 0], []).
  142.                   addSize([480, 0], []).
  143.                   addSize([0, 0], []).
  144.                   build();
  145.                   
  146.                   gptAdSlots[0] = googletag.defineSlot('/122043898/FUSACQ_BUZZ_mega_banner', [[320, 50], [728, 90], [970, 90], [468, 60]], 'div-gpt-ad-1770656881817-0').defineSizeMapping(bannerSize).addService(googletag.pubads());
  147.                   gptAdSlots[1] = googletag.defineSlot('/122043898/FUSACQ_BUZZ_pave', [[300, 100],[300, 250],[300,600]], 'div-gpt-ad-1770657008603-0').defineSizeMapping(paveSize).addService(googletag.pubads());
  148.                   googletag.pubads().enableSingleRequest();
  149.                   googletag.pubads().setTargeting('PLS', ['RG']){% block googletag %}{% endblock %};
  150.                    
  151.                   googletag.enableServices();
  152.               });
  153.             </script> 
  154.         {% endif %}
  155.         {% set authFrom = app.request.query.get('authFrom') %}
  156.         {% set currentRoute = app.request.get('_route') %} 
  157.         {% if currentRoute =="index" %}  
  158.             <link rel="stylesheet" href="{{ asset('build/css/lib/all_6_4_2.min.css') }}">
  159.         {% endif %}
  160.         {% block stylesheets   %}
  161.             {% cache "block-css" ttl(86400) %}
  162.             {% apply spaceless %}
  163.             <link rel="stylesheet" href="{{ asset('build/css/lib/bootstrap.min.css') }}">
  164.             <link rel="stylesheet" href="{{ asset('build/css/lib/jquery-ui-1.7.3.custom.css') }}">
  165.             <link rel="stylesheet" href="{{ asset('build/css/lib/animate.min.css') }}">
  166.             <link rel="stylesheet" href="{{ asset('build/css/custom_fusacq.css') }}">
  167.             <link rel="stylesheet" href="{{ asset('build/css/onglets_nav.css') }}">
  168.             <link rel="preconnect" href="https://fonts.googleapis.com">
  169.             <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  170.             <link href="https://fonts.googleapis.com/css2?family=Overpass:wght@400;500;600&display=swap" rel="stylesheet">
  171.             {#<link rel="stylesheet" href="{{ asset('build/css/lib/all_6_4_2.min.css') }}">#}
  172.             <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"> -->
  173.             <script src="https://kit.fontawesome.com/ca7826b79a.js" crossorigin="anonymous"></script>
  174.             {% endapply %}
  175.             {% endcache %}
  176.         {% endblock %}
  177.     </head>
  178.     <body>
  179.         {% apply spaceless %}
  180.         {% block body  %}
  181.         {% endblock %}
  182.         {% endapply %}
  183.         <!--FIN CONTAINER -->
  184.         <!-- FOOTER -->
  185.         {{ render_esi(controller(
  186.                 'App\\Controller\\Buzz\\CoreController::footer',{ 'lang': lang,"codePays": codePaysWithUnderScore }
  187.             ))  | spaceless }}
  188.         <!-- FIN FOOTER -->
  189.         {% block javascripts   %}
  190.             <script src="{{ asset('build/js/lib/jquery-1.12.4.js') }}"></script>
  191.             <script src="{{ asset('build/js/lib/jquery-ui.js') }}"></script>
  192.             <script>
  193.                 function testAnim(x) {
  194.                     $('#animationSandbox').removeClass().addClass(x + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function () {
  195.                         $(this).removeClass();
  196.                     });
  197.                 }
  198.                 $(document).ready(function () {
  199.                     $('.js--triggerAnimation').click(function (e) {
  200.                         e.preventDefault();
  201.                         var anim = $('.js--animations').val();
  202.                         testAnim(anim);
  203.                     });
  204.                     $('.js--animations').change(function () {
  205.                         var anim = $(this).val();
  206.                         testAnim(anim);
  207.                     });
  208.                 });
  209.                 $(function () {
  210.                     $("#slider-range").slider({
  211.                         range: true,
  212.                         min: 0,
  213.                         max: 500,
  214.                         values: [75, 300],
  215.                         slide: function (event, ui) {
  216.                             $("#amount").val("$" + ui.values[0] + " - $" + ui.values[1]);
  217.                         }
  218.                     });
  219.                     $("#amount").val("$" + $("#slider-range").slider("values", 0) +
  220.                             " - $" + $("#slider-range").slider("values", 1));
  221.                 });
  222.                 $(function () {
  223.                     $("#li3").click(function () {
  224.                         $(".nav-link").switchClass("nav-link", "nav-link2");
  225.                         $(".nav-link2").switchClass("nav-link2", "nav-link");
  226.                     });
  227.                 });
  228.             </script>
  229.             {#    <script src="{{ asset('build/js/lib/jquery-3.3.1.slim.min.js') }}"></script> #}
  230.             <script src="{{ asset('build/js/lib/jquery-3.3.1.min.js') }}"></script>
  231.             <script src="{{ asset('build/js/lib/popper.min.js') }}"></script>
  232.             <script src="{{ asset('build/js/lib/bootstrap.min.js') }}"></script>
  233.             <script src="{{ asset('build/js/lib/jquery-ui-1.8.22.slider.min.js') }}"></script>
  234.             <script>
  235.                 $(document).ready(function () {
  236.                     $("hidden").parent().remove();
  237.                 });
  238.             </script>
  239.             <script>
  240.                 $(document).ready(function () {
  241.                     if (($("form#login").length == 1) && ($("div.modal div.alert-danger").length > 0)) {
  242.                         $("a.link-compte").trigger("click");
  243.                     }
  244.                     if (($("form#login").length > 1) && ($("div.modal div.alert-danger").length > 0)) {
  245.                         $("form#login:last").prepend($("div.modal div.alert-danger").clone());
  246.                         $('html, body').animate({
  247.                             scrollTop: $("form#login:last").offset().top
  248.                         }, 2000);
  249.                     }
  250.                     $("button.btn-toggle").on("click", function () {
  251.                         var classBtn = $(this).attr('class');
  252.                         if (classBtn.includes("active")) {
  253.                             $(this).siblings(" input[type='checkbox']").prop("checked", false);
  254.                         } else {
  255.                             $(this).siblings(" input[type='checkbox']").prop("checked", true);
  256.                         }
  257.                     });
  258.                     /*$("#affichageCookie").on( "click", function() {
  259.                      alert("here");
  260.                      $('#CybotCookiebotDialog').removeAttr("style");
  261.                      $('#CybotCookiebotDialog').css('display', 'flex');
  262.                      $("#CybotCookiebotDialog").addClass("CybotCookiebotDialogActive");
  263.                      });
  264.                      $('#CookiebotWidget').css('display', 'none');*/
  265.                 });
  266.             </script>
  267.             {% if authFrom %}
  268.                 <script type="text/javascript"  >
  269.                     $("#Modalindex").modal("show");
  270.                 </script>
  271.             {% endif %}
  272.         {% endblock %}
  273.     </body>
  274.     <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="679b781c-197a-42a0-be0e-18f29c98c691" data-blockingmode="auto" type="text/javascript"></script>
  275. </html>