templates/front/base.html.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. <html lang="{{ app.request.locale }}">
  3.   <head>
  4.     <!-- Google Tag Manager -->
  5.     <script>
  6.     window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);}
  7.     (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  8.     new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  9.     j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  10.     'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  11.     })(window,document,'script','dataLayer','GTM-MLGFWTV');</script>
  12.     <!-- End Google Tag Manager -->
  13.     
  14.     <meta charset="UTF-8">
  15.     <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0">
  16.     {% block seo %}
  17.         <title>{{ 'app.default.page_title'|trans|remove_highlight_word }}</title>
  18.     {% endblock seo %}
  19.     {% block metadata %}{% endblock metadata %}
  20.   
  21.     {% block stylesheet %}
  22.         <link rel="stylesheet" href="{{ preload(asset('app.css'), { as: 'style' } ) }}">
  23.         {% if page is defined and page.template == 'home'%}
  24.           <link rel="stylesheet" href="{{ preload(asset('hp.css'), { as: 'style' } ) }}">
  25.         {% elseif page is defined and page.template == 'contact'%}
  26.           <link rel="stylesheet" href="{{ preload(asset('contact.css'), { as: 'style' } ) }}">
  27.         {% elseif page is defined and page.template == 'index'%}
  28.           <link rel="stylesheet" href="{{ preload(asset('index.css'), { as: 'style' } ) }}">
  29.         {% elseif page is defined and page.template == 'edito' or page.template == 'publication' or page.template == 'news' or page.template == 'expertise' or page.template == 'our-jobs' %}
  30.           <link rel="stylesheet" href="{{ preload(asset('edito.css'), { as: 'style' } ) }}">
  31.         {% elseif page is defined and page.template == 'publications-list' or page.template == 'publications-list-adherent' or page.template == 'news-list' or page.template == 'photo-library' %}
  32.           <link rel="stylesheet" href="{{ preload(asset('list.css'), { as: 'style' } ) }}">
  33.         {% elseif page is defined and page.template == 'search' %}
  34.           <link rel="stylesheet" href="{{ preload(asset('search.css'), { as: 'style' } ) }}">
  35.         {% else %}
  36.           <link rel="stylesheet" href="{{ preload(asset('default.css'), { as: 'style' } ) }}">
  37.         {% endif %}
  38.     {% endblock stylesheet %}
  39.     <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  40.     <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  41.     <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  42.     <link rel="manifest" href="/site.webmanifest">
  43.     <meta name="msapplication-TileColor" content="#da532c">
  44.     <meta name="theme-color" content="#ffffff">
  45.     {# https://csswizardry.com/2020/05/the-fastest-google-fonts/ #}
  46.     {# See readme for examples with typekit fonts && self hosted fonts #}
  47.     <!-- [1] -->
  48.     <link rel="preconnect" href="https://fonts.googleapis.com">
  49.     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
  50.     <!-- [2] -->
  51.     <link href="https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
  52.     <!-- [3] -->
  53.     <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap" media="print" onload="this.media='all'"/>
  54.     <!-- [4] -->
  55.     <noscript>
  56.       <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap"/>
  57.     </noscript>
  58.     <script src="//unpkg.com/alpinejs" defer></script>
  59.     <style>
  60.       [x-cloak] { display: none !important; }
  61.       .\!opacity-100 {
  62.         opacity: 1 !important;
  63.       }
  64.       .width-fit-full {
  65.         width: fit-content !important;
  66.       }
  67.       .btn-select-faq {
  68.         display: none;
  69.       }
  70.       @media (max-width: 768px) {
  71.         .btn-select-faq {
  72.           display: flex;
  73.           justify-content: space-between;
  74.         }
  75.         .width-fit-full {
  76.           width: 100% !important;
  77.         }
  78.         .top-60px {
  79.           top: 60px !important;
  80.         }
  81.       }
  82.     </style>
  83.   </head>
  84.   
  85.   <body class="preload font-body {% if page is defined %}{{ page.template }}{% endif %}" data-route="{{ page.currentPath|default('') }}">
  86.     <!-- Google Tag Manager (noscript) -->
  87.     <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MLGFWTV"
  88.     height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  89.     <!-- End Google Tag Manager (noscript) -->
  90.     <div class="sr-only" js-inline-svg="{ url: '/static/build/sprite.svg' }" aria-hidden="true"></div>
  91.     
  92.     <!-- !important leave app div -->
  93.     <div id="app" class="app" js-full-height-mobile>
  94.       <!-- custom content for each project -->
  95.       {% include 'front/partials/header.html.twig' %}
  96.       <div class="app-body {{ errorPage is defined or page.template in ['password-forgot', 'reset-forgot'] ? 'flex' : ''  }} {{ hasHeroImage is defined ? 'has-hero-image' : '' }}">
  97.         {% block layout %}{% endblock layout %}
  98.       </div>
  99.       {% if page is defined and page.template == 'home' %}
  100.         {% include 'front/partials/social-banner.html.twig' %}
  101.       {% endif %}
  102.       {% if page is defined and page.template not in ['login', 'registration', 'password-forgot', 'reset-forgot'] %}
  103.         {% include 'front/partials/newsletter.html.twig' %}
  104.       {% endif %}
  105.       {% include 'front/partials/footer.html.twig' with {type: page.template in ['login', 'registration', 'password-forgot', 'reset-forgot'] ? 'border' : 'reg' } %}
  106.       <!-- END custom content for each project -->
  107.     </div>
  108.     <div class="modals"></div>
  109.   {% block javascripts %}
  110.       <script src="{{ preload(path('front_config_javascriptSettings'), { as: 'script' } )}}"></script>
  111.       <script src="{{ preload(asset('app.js') , { as: 'script' } ) }} " type="text/javascript"></script>
  112.       {% if page is defined and page.template == 'home'%}
  113.         <script src="{{ preload(asset('hp.js') , { as: 'script' } ) }} " type="text/javascript"></script>
  114.       {% elseif page is defined and page.template == 'contact' %}
  115.         <script src="{{ preload(asset('contact.js') , { as: 'script' } ) }} " type="text/javascript"></script>
  116.       {% elseif page is defined and page.template == 'index' %}
  117.         <script src="{{ preload(asset('index.js') , { as: 'script' } ) }} " type="text/javascript"></script>
  118.       {% elseif page is defined and page.template == 'edito' or page.template == 'publication' or page.template == 'expertise' or page.template == 'our-jobs' or page.template == 'news' %}
  119.          <script src="{{ preload(asset('edito.js') , { as: 'script' } ) }} " type="text/javascript"></script>
  120.       {% elseif page is defined and page.template == 'publications-list' or page.template == 'publications-list-adherent' or page.template == 'news-list' or page.template == 'photo-library' %}
  121.         <script src="{{ preload(asset('list.js') , { as: 'script' } ) }} " type="text/javascript"></script>
  122.       {% elseif page is defined and page.template == 'search' %}
  123.         <script src="{{ preload(asset('search.js') , { as: 'script' } ) }} " type="text/javascript"></script>
  124.       {% else %}
  125.         <script>
  126.         if(!self.customElements)
  127.           document.write('<script src="//unpkg.com/@webreflection/custom-elements-no-builtin"><\x2fscript>')
  128.         </script>
  129.         <script src="{{ preload(asset('default.js') , { as: 'script' } ) }} " type="text/javascript"></script>
  130.       {% endif %}
  131.   {% endblock javascripts %}
  132.   </body>
  133. </html>