templates/index.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale|split('_')[0] }}">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1">
  6.     <link rel="preload" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" as="font" type="font/woff2">
  7.     <link rel="stylesheet" href="https://use.typekit.net/ghx0lfo.css">
  8.     
  9.     {% if metas is defined and metas is not empty %}
  10.         <title>{{ metas.title }}</title>
  11.         <meta name="description" content="{{ metas.description }}">
  12.     {% endif %}
  13.     <link href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" rel="stylesheet" />
  14.     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous" >
  15.     
  16.     {% if app.request.get('preview') and app.request.get('preview') == 'preview' %}
  17.         <meta name="robots" content="none" />
  18.     {% endif %}
  19.     {% block stylesheets %}
  20.         {{ encore_entry_link_tags('app') }}
  21.     {% endblock %}
  22.     {% if blocks is defined %}
  23.         {% for block in blocks %}
  24.             {% if block.module and block.module.moduleAsset %}
  25.                 {{ block.module.moduleAsset.css|raw }}
  26.             {% endif %}
  27.         {% endfor %}
  28.     {% endif %}
  29. </head>
  30. <body>
  31.     <div class="stripe-popup hide" id="stripe-popup">
  32.         <div class="content">
  33.             <div class="recap"></div>
  34.             <form id="payment-form" >
  35.                 <div id="link-authentication-element">
  36.                     <!--Stripe.js injects the Link Authentication Element-->
  37.                 </div>
  38.                 <div id="payment-element">
  39.                     <!--Stripe.js injects the Payment Element-->
  40.                 </div>
  41.                 <button class="btn-section blue-dark" id="submit">
  42.                     <div class="spinner hidden" id="spinner"></div>
  43.                     <span id="button-text">{{ 'appointment.payment.btn'|trans }}</span>
  44.                 </button>
  45.                 <div id="payment-message" class="hidden"></div>
  46.             </form>
  47.         </div>
  48.         <div class="fity-success stripe"></div>
  49.         <div class="back"></div>
  50.     </div>
  51.     <div class="loader-container">
  52.         <div class="pr-3 tify">
  53.             <div class="tify2"></div>
  54.             <div class="tify_key rotate"></div>
  55.             <div class="tify_arm"></div>
  56.         </div>
  57.     </div>
  58.     <div class="tip"></div>
  59.     
  60.     <div class="tify egg">
  61.         <div class="tify2"></div>
  62.         <div class="tify_key"></div>
  63.         <div class="tify_arm"></div>
  64.     </div>
  65.     {% for label, messages in app.flashes(['success', 'danger']) %}
  66.          {% if messages|length > 0  %}
  67.              <div class="alertmodal">
  68.                 {% for message in messages %}
  69.                     <div class="alert alert-{{ label }}">
  70.                         {{ message|trans }}
  71.                     </div>
  72.                 {% endfor %}
  73.              </div>
  74.          {% endif %}
  75.     {% endfor %}
  76.     <!-- main content -->
  77.     <div id="main" class="{% if slug is defined and (slug == 'accueil' or slug == 'home') %}home{% endif %}">
  78.         <!-- header -->
  79.         {% if header is defined %}
  80.             {% include "home/blocks/header.html.twig" %}
  81.         {% else %}
  82.             {% block header %}{% endblock %}
  83.         {% endif %}
  84.         <!-- content -->
  85.         {% block content %}{% endblock %}
  86.     </div>
  87.     <!-- footer -->
  88.     {%  if footer is defined %}
  89.             {% include "home/blocks/footer.html.twig" %}
  90.     {% else %}
  91.         {% block footer %}{% endblock %}
  92.     {% endif %}
  93.     {% block javascripts %}
  94.     <script >
  95.         let locale = '{{ app.request.locale }}';
  96.     </script>
  97.     <script src="{{ asset('bundles/bazingajstranslation/js/translator.min.js') }}"></script>
  98.     <script src="{{ url('bazinga_jstranslation_js', {'locales': 'fr,de'}) }}"></script>
  99.     <script src="{{ url('bazinga_jstranslation_js', { 'domain': 'validators', 'locales': 'fr,de'}) }}" ></script>
  100.     <script >
  101.         let links = document.querySelectorAll('a');
  102.         for (let link of links) {
  103.             if (link.href.includes('carfit.jumo.idp.lu')) {
  104.                 let href = link.href.replace('carfit.jumo.idp.lu', 'carfit.lu')
  105.                 link.href = href;
  106.             }
  107.         }
  108.         const REQUEST_LOCALE = '{{ app.request.locale }}';
  109.     </script>
  110.     {% if blocks is defined %}
  111.         {% for block in blocks %}
  112.             {% if block.module and block.module.moduleAsset %}
  113.                 <script>
  114.                 
  115.                     {% for variable, data in block.data %}
  116.                         {% if data is not iterable %}
  117.                             let {{ variable }} = `{{ data }}`;
  118.                         {% else %}
  119.                             let {{ variable }} = `{{ data.0|raw }}`;
  120.                         {% endif %}
  121.                     {% endfor %}
  122.                 </script>
  123.                 {{ block.module.moduleAsset.js|raw }}
  124.             {% endif %}
  125.         {% endfor %}
  126.     {% endif %}
  127.     <!-- Smartsupp Live Chat script -->
  128.     <script type="text/javascript">
  129.         var _smartsupp = _smartsupp || {};
  130.         _smartsupp.key = '8ab81558a3274a727b910c1ae78d85b5ab9a2d6a';
  131.         window.smartsupp||(function(d) {
  132.             var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
  133.             s=d.getElementsByTagName('script')[0];c=d.createElement('script');
  134.             c.type='text/javascript';c.charset='utf-8';c.async=true;
  135.             c.src='https://www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
  136.         })(document);
  137.         _smartsupp.orientation = "right";
  138.         smartsupp('language','en');
  139.         smartsupp('theme:color', '#11A1ED');
  140.         _smartsupp.privacyNoticeUrl = 'https://losch.lu/fr/protection-des-donnees'; // URL of your privacy page
  141.     </script>
  142. {#    <script src="https://code.jquery.com/ui/1.13.0/jquery-ui.js" ></script>#}
  143.         {{ encore_entry_script_tags('app') }}
  144.     <script src="https://maps.googleapis.com/maps/api/js?key={{ map_key }}&callback=initialize"
  145.             async defer></script>
  146.     {% endblock %}
  147. </body>
  148. </html>