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