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