templates/layouts/base.html.twig line 1

Open in your IDE?
  1. {#Pour la traduction#}
  2. {% if app is not null %}
  3.     {% set route = app.request.attributes.get('_route') %}
  4.     {% set route_params = app.request.attributes.get('_route_params') %}
  5.     {% set params = route_params|merge(app.request.query.all) %}
  6.     {% set currentLocale = app.request.getLocale() %}
  7.     {% set word = '' %}
  8. {% endif %}
  9. <!DOCTYPE html>
  10. <html>
  11. <head>
  12.     {{ include('layouts/header.html.twig') }}
  13.     <!-- Google Tag Manager -->
  14.     <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-KW38N86');</script>
  15.     <!-- End Google Tag Manager -->
  16. {#    {% if cookie_acceptation is defined and cookie_acceptation == "all" %}
  17.         <!-- Google Tag Manager -->
  18.         <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-KW38N86');</script>
  19.         <!-- End Google Tag Manager -->
  20.     {% endif %}#}
  21.     {% if title is defined and title is iterable %}
  22.         {% for index, value in title %}
  23.             {% set word = '{ '~ index ~ ' }' %}
  24.             {% if metaTitle is defined %}
  25.                 <title>{{ metaTitle|replace({(word) : value}) }} | 2tec2</title>
  26.             {% endif %}
  27.             {% if metaDescription is defined %}
  28.                 <meta name="description" content="{{ metaDescription|replace({(word) : value}) }}"/>
  29.             {% endif %}
  30.         {% endfor %}
  31.     {% else %}
  32.         {% if metaTitle is defined %}
  33.             <title>{{ metaTitle }} | 2tec2</title>
  34.         {% endif %}
  35.         {% if metaDescription is defined %}
  36.             <meta name="description" content="{{ metaDescription }}"/>
  37.         {% endif %}
  38.     {% endif %}
  39.     <!-- Facebook Domain verification -->
  40.     <meta name="facebook-domain-verification" content="bstl9q5vgmjf81vkt3cbxd3ys7h9c1" />
  41.     <!-- End Facebook Domain verification -->
  42.     {% block stylesheets %}
  43.         {{ encore_entry_link_tags('app') }}
  44.         <link rel="shortcut icon" href="{{ asset('build/favicon/favicon.ico') }}">
  45.         <link href="https://fonts.googleapis.com/css?family=Zen Kaku Gothic Antique&display=swap" rel="stylesheet">
  46.     {% endblock %}
  47.     {% if currentLocale is defined %}
  48.         <input type="hidden" id="currentLocale" value="{{ currentLocale }}">
  49.     {% endif %}
  50.     <input type="hidden" id="baseUrl" value="{{ app.request.getSchemeAndHttpHost() }}">
  51.     {% if apiUrl is defined %}
  52.         <input type="hidden" id="apiUrl" value="{{ apiUrl }}">
  53.     {% endif %}
  54.     {% if removeAllFromCartAndDownloads is defined %}
  55.         <input type="hidden" id="removeAllFromCartAndDownloads" value="{{ removeAllFromCartAndDownloads }}">
  56.     {% endif %}
  57.     {% if emailHasBeenSent is defined %}
  58.         <input type="hidden" id="emailHasBeenSent" value="{{ emailHasBeenSent }}">
  59.     {% endif %}
  60.     <!-- Facebook Pixel Code -->
  61.     <script>
  62.         !function(f,b,e,v,n,t,s)
  63.         {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  64.             n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  65.             if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  66.             n.queue=[];t=b.createElement(e);t.async=!0;
  67.             t.src=v;s=b.getElementsByTagName(e)[0];
  68.             s.parentNode.insertBefore(t,s)}(window, document,'script',
  69.             'https://connect.facebook.net/en_US/fbevents.js');
  70.         fbq('init', '3964154130338548');
  71.         fbq('track', 'PageView');
  72.     </script>
  73.     <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=3964154130338548&ev=PageView&noscript=1"/></noscript>
  74.     <!-- End Facebook Pixel Code -->
  75. </head>
  76. <body class="body">
  77. {{ include('layouts/block/toaster-div.html.twig') }}
  78. {{ include('layouts/navbar.html.twig') }}
  79. {{ include('layouts/sidebar.html.twig') }}
  80. {% block body %}
  81.     {% block footer %}{% endblock %}
  82. {% endblock %}
  83. {{ include('layouts/modals/cookies.html.twig') }}
  84. {% block javascripts %}
  85.     <!-- Google Tag Manager (noscript) -->
  86.     <noscript>
  87.         <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KW38N86" height="0" width="0" style="display:none;visibility:hidden"></iframe>
  88.     </noscript>
  89.     <!-- End Google Tag Manager (noscript) -->
  90.     {#    {% if cookie_acceptation is defined and cookie_acceptation == "all" %}
  91.         <!-- Google Tag Manager (noscript) -->
  92.         <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KW38N86"
  93.                           height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  94.         <!-- End Google Tag Manager (noscript) -->
  95.     {% endif %}#}
  96.     <!-- Linkedin script -->
  97.     <script type="text/javascript">
  98.         _linkedin_partner_id = "3576529";
  99.         window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
  100.         window._linkedin_data_partner_ids.push(_linkedin_partner_id);
  101.     </script>
  102.     <script type="text/javascript">
  103.     (function(){var s = document.getElementsByTagName("script")[0];
  104.         var b = document.createElement("script");
  105.         b.type = "text/javascript";b.async = true;
  106.         b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js";
  107.         s.parentNode.insertBefore(b, s);})();
  108. </script>
  109.     <noscript>
  110.         <img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3576529&fmt=gif" />
  111.     </noscript>
  112.     <!-- End Linkedin script -->
  113.     {{ encore_entry_script_tags('app') }}
  114. {% endblock %}
  115. </body>
  116. </html>