templates/base.html.twig line 1

Open in your IDE?
  1. {% set page = getPage(app.request.attributes.get("_controller")) %}
  2. <!DOCTYPE html>
  3. <html lang="{% block html_lang %}{{ app.request.locale }}{% endblock %}">
  4.     <head>
  5.         <!-- Google Tag Manager -->
  6.         <script>
  7.             (function (w, d, s, l, i) {
  8.                 w[l] = w[l] || [];
  9.                 w[l].push({
  10.                     'gtm.start':
  11.                             new Date().getTime(), event: 'gtm.js'
  12.                 });
  13.                 var f = d.getElementsByTagName(s)[0],
  14.                         j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
  15.                 j.async = true;
  16.                 j.src =
  17.                         'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
  18.                 f.parentNode.insertBefore(j, f);
  19.             })(window, document, 'script', 'dataLayer', 'GTM-TVSNTXH');
  20.         </script>
  21.         <!-- End Google Tag Manager -->
  22.         <meta charset="UTF-8">
  23.         <meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1">
  24.         <link rel="icon"
  25.               href="{{ asset('assets/img/favicon.png') }}">
  26.         {% block metaTags %}
  27.             <meta name="description" content="{{ page ? page.metaDescription : siteTitle }}">
  28.             <title>{{ page ? page.metaTitle : siteTitle }}</title>
  29.             <meta property="og:title" content="{{ page ? page.metaTitle : siteTitle }}">
  30.             <meta property="og:description" content="{{ page ? page.metaDescription : siteTitle }}">
  31.         {% endblock %}
  32.         <meta name="theme-color" content="#95D3EC">
  33.         {{ encore_entry_link_tags('app') }}
  34.         {% block stylesheets %}
  35.         {% endblock %}
  36.         <link rel="stylesheet" href="{{ asset('assets/libs/openlayers/ol.css') }}">
  37.         <script type="text/javascript" src="{{ asset('assets/libs/openlayers/ol.js') }}"></script>
  38.         <link rel="stylesheet" href="{{ asset('assets/libs/aos/aos.css') }}">
  39.         {#        <!-- Google tag (gtag.js) --> #}
  40.         {#        <script async src="https://www.googletagmanager.com/gtag/js?id=UA-148514144-1"></script> #}
  41.         {#        <script> #}
  42.         {#            window.dataLayer = window.dataLayer || []; #}
  43.         {#            function gtag() { #}
  44.         {#                dataLayer.push(arguments); #}
  45.         {#            } #}
  46.         {#            gtag('js', new Date()); #}
  47.         {#            gtag('config', 'UA-148514144-1'); #}
  48.         {#        </script> #}
  49.     </head>
  50.     <body data-navbar-search-url="{{ path('front_navbar_search') }}" {% block body_tag %}{% endblock %}>
  51.         <!-- Google Tag Manager (noscript) -->
  52.         <noscript>
  53.         <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TVSNTXH"
  54.                 height="0" width="0" style="display:none;visibility:hidden"></iframe>
  55.         </noscript>
  56.         <!-- End Google Tag Manager (noscript) -->
  57.         <div class="wrapper">
  58.             <div class="background-burger position-fixed t-0 b-0 z-0 zi-9"></div>
  59.             {% block flash %}
  60.                 {% for label, messages in app.flashes %}
  61.                     {% for key, message in messages %}
  62.                         <div class="modal fade mat-200" id="flashMessageModal" tabindex="-1" role="dialog"
  63.                              aria-labelledby="flashMessageModalLabel" aria-hidden="true">
  64.                             <div class="modal-dialog" role="document">
  65.                                 <div class="modal-content">
  66.                                     <div class="modal-body">
  67.                                         <div class="text-right">
  68.                                             <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  69.                                                 <span aria-hidden="true">&times;</span>
  70.                                             </button>
  71.                                         </div>
  72.                                         <div>
  73.                                             {% if label == "success" %}
  74.                                                 <i class="fa fa-check text-success"></i>
  75.                                             {% else %}
  76.                                                 <i class="fa fa-warning text-danger"></i>
  77.                                             {% endif %}
  78.                                             {{ message|trans }}
  79.                                         </div>
  80.                                     </div>
  81.                                 </div>
  82.                             </div>
  83.                         </div>
  84.                     {% endfor %}
  85.                 {% endfor %}
  86.             {% endblock %}
  87.             {% block navbar %}
  88.                 <header>
  89.                     <div class="fixed-top zi-9999 he-47 bgc-95D3EC c-black pay-8 d-flex align-items-center">
  90.                         <div class="container container-top">
  91.                             <div class="d-flex align-items-center justify-content-between fs-14 fw-300">
  92.                                 <h1 class=" c-white fs-12 fw-500 col may-0">
  93.                                     {% set h1 = h1|default(null) %}
  94.                                     {{ h1 ?? (page ? page.title : siteTitle) }}
  95.                                 </h1>
  96.                                 <div class="col-auto text-right d-flex">
  97.                                     <div class="d-none d-lg-flex align-items-center languages">
  98.                                         {% if managedLocales|length > 1 %}
  99.                                             <div class="nav-item max-7 d-flex align-items-center ">
  100.                                                 <i class="fas fa-globe  color-9DE3FF position-relative t-0 mar-6"></i>
  101.                                                 <div class=" text-uppercase ls2-260 fs-13">
  102.                                                     <select class=" " onChange="window.location.href = this.value">
  103.                                                         {% for key, managedLocale in managedLocales %}
  104.                                                             <option class="text-uppercase" {{ app.request.locale == managedLocale ? 'selected' }}
  105.                                                                     value="{{ path('front_change_language', {'locale':managedLocale, "redirectUrl":app.request.uri}) }}">
  106.                                                                 {{ (managedLocale == "fr") ? ("navbar.language.fr")|trans : ("navbar.language.en")|trans }}
  107.                                                             </option>
  108.                                                         {% endfor %}
  109.                                                     </select>
  110.                                                 </div>
  111.                                             </div>
  112.                                         {% endif %}
  113.                                     </div>
  114.                                     <div class=" d-flex rs-top">
  115.                                         <a target="_blank"
  116.                                            href="https://www.linkedin.com/company/viewpoint-behavior-technology/"
  117.                                            class="d-flex   br-30 justify-content-center align-items-center c-white">
  118.                                             <i class="fa-brands fa-linkedin-in"></i>
  119.                                         </a>
  120.                                         <a target="_blank" href="https://twitter.com/ViewpointBehav"
  121.                                            class="d-flex max-18  justify-content-center align-items-center c-white">
  122.                                             <i class="fa-brands fa-twitter"></i>
  123.                                         </a>
  124.                                         <a target="_blank"
  125.                                            href="https://www.youtube.com/@viewpointbehaviortechnolog5139"
  126.                                            class="d-flex   br-30 justify-content-center align-items-center c-white">
  127.                                             <i class="fa-brands fa-youtube"></i>
  128.                                         </a>
  129.                                     </div>
  130.                                 </div>
  131.                             </div>
  132.                         </div>
  133.                     </div>
  134.                     <div class="d-none d-lg-block">
  135.                         {% include "commons/navbar.html.twig" %}
  136.                     </div>
  137.                     <div class="d-block d-lg-none">
  138.                         {% include "commons/navbarMobile.html.twig" %}
  139.                     </div>
  140.                 </header>
  141.                 {#        {% for key, category in getCategories() %}
  142.                             <div>
  143.                                 <a href="{{ path('front_products', {"catSlug":category.slug}) }}">
  144.                                     {{ category.title }}
  145.                                 </a>
  146.                             </div>
  147.                             {% for key, subCategory in getSubCategories(category) %}
  148.                                 <div>
  149.                                     <a href="{{ path('front_products', {"catSlug":(subCategory.category ? subCategory.category.slug : 0),'subCatSlug':subCategory.slug}) }}">
  150.                                         {{ subCategory.title }}
  151.                                     </a>
  152.                                 </div>
  153.                                 {% for key, product in getProducts(subCategory) %}
  154.                                     <div>
  155.                                         <a href="{{ getProductUrl(product, subCategory) }}">
  156.                                             {{ product.title }}
  157.                                         </a>
  158.                                     </div>
  159.                                 {% endfor %}
  160.                             {% endfor %}
  161.                         {% endfor %}
  162.                         {% for key, category in getCategories() %}
  163.                             <div>
  164.                                 <a href="{{ path('front_publications', {'slug':category.slug}) }}">
  165.                                     {{ category.title }}
  166.                                 </a>
  167.                             </div>
  168.                         {% endfor %} #}
  169.             {% endblock %}
  170.         {% block body %}{% endblock %}
  171.         {% block footer %}
  172.             {% include "front/footer.html.twig" %}
  173.         {% endblock %}
  174.         <div class="position-fixed zi-9999 b-20 r-20 scrollToTopDiv wi-50 d-flex align-items-center justify-content-center  bgc-9DC771 c-white br-8">
  175.             <i class="fa fa-arrow-up pointer scrollToTop fw-600 fs-15 wi-50 d-flex align-items-center justify-content-center he-50"></i>
  176.         </div>
  177.     </div>
  178.     {{ encore_entry_script_tags('app') }}
  179.     <script type="text/javascript" src="{{ asset('assets/libs/aos/aos.js') }}"></script>
  180.     <script>
  181.         AOS.init({
  182.             once: true,
  183.         });
  184.     </script>
  185.     <script type="text/javascript" src="{{ asset('assets/libs/cookieconsent/cookie-consent.js') }}"></script>
  186.     <script type="text/javascript">
  187.         document.addEventListener('DOMContentLoaded', function () {
  188.             cookieconsent.run({
  189.                 "notice_banner_type": "simple",
  190.                 "consent_type": "implied",
  191.                 "palette": "light",
  192.                 "language": "fr",
  193.                 "website_name": "{{ siteTitle }}",
  194.                 "change_preferences_selector": "#changePreferences"
  195.             });
  196.         });
  197.     </script>
  198.     <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  199.     {% block javascripts %}
  200.     {% endblock %}
  201. </body>
  202. </html>