templates/partials/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4.     <!-- Bootstrap 5 -->
  5.     <meta charset="UTF-8">
  6.     <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1" />
  7.     <title>{% block title %}Max-interfor{% endblock %}</title>
  8.     <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400;700&display=swap" rel="stylesheet">
  9.     <script src="https://kit.fontawesome.com/11084d3540.js" crossorigin="anonymous"></script>
  10.     <script src="https://www.google.com/recaptcha/api.js?render=6Lf982YpAAAAAMoDZWtOsIXXxv0coqlZOfg3YL6m"></script>
  11.     <!-- Favicon -->
  12.     <link rel="apple-touch-icon" href="{{ asset("/img/favicon/apple-touch-icon.png") }}" sizes="180x180">
  13.     <link rel="icon" href="{{ asset("/img/favicon/favicon-32x32.png") }}" sizes="32x32" type="image/png">
  14.     <link rel="icon" href="{{ asset("/img/favicon/favicon-16x16.png") }}" sizes="16x16" type="image/png">
  15.     <link rel="icon" href="{{ asset("/img/favicon/favicon.ico") }}" />
  16.     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
  17.     <link rel="stylesheet" href="{{ asset('/css/admin/styles.css') }}">
  18.     <link rel="stylesheet" href="{{ asset('/css/admin/custom.css') }}">
  19.         {{ encore_entry_link_tags('app') }}
  20.     {% if app.environment == 'prod' %}
  21.         <!-- Global site tag (gtag.js) - Google Analytics -->
  22.                 <script async src="https://www.googletagmanager.com/gtag/js?id=G-Z0L8028J2G"></script>
  23.                 <script>
  24.                     window.dataLayer = window.dataLayer || [];
  25.                     function gtag(){dataLayer.push(arguments);}
  26.                     gtag('js', new Date());
  27.                     gtag('config', 'G-Z0L8028J2G');
  28.                 </script>
  29.         <!-- Google Tag Manager -->
  30. {#        <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':#}
  31. {#                    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],#}
  32. {#                j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=#}
  33. {#                'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);#}
  34. {#            })(window,document,'script','dataLayer','GTM-KRR7H53');</script>#}
  35.         <!-- End Google Tag Manager -->
  36.     {% endif %}
  37.     <!-- Meta Pixel Code -->
  38.     <script>
  39.         !function(f,b,e,v,n,t,s)
  40.         {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  41.             n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  42.             if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  43.             n.queue=[];t=b.createElement(e);t.async=!0;
  44.             t.src=v;s=b.getElementsByTagName(e)[0];
  45.             s.parentNode.insertBefore(t,s)}(window, document,'script',
  46.             'https://connect.facebook.net/en_US/fbevents.js');
  47.         fbq('init', '689658102920602');
  48.         fbq('track', 'PageView');
  49.     </script>
  50.     <noscript><img height="1" width="1" style="display:none"
  51.                    src="https://www.facebook.com/tr?id=689658102920602&ev=PageView&noscript=1"
  52.         /></noscript>
  53.     <!-- End Meta Pixel Code -->
  54. </head>
  55. <body>
  56. <style>
  57.     .grecaptcha-badge { visibility: hidden; }
  58. </style>
  59. <!-- Google Tag Manager (noscript) -->
  60. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KRR7H53"
  61.                   height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  62. <!-- End Google Tag Manager (noscript) -->
  63. {% block body %}
  64.     {% block javascript %}{% endblock %}
  65. {% endblock %}
  66.         {% include "partials/footer.html.twig" %}
  67.     </div>
  68. </div>
  69. <div class="modal fade" id="show-contact" tabindex="-1" role="dialog" aria-keyshortcuts="true" aria-labelledby="show-modal-contactModalLabel" aria-hidden="true">
  70.     <div class="modal-dialog" role="document">
  71.         <div class="modal-content">
  72.             <div class="modal-header">
  73.                 <h5 class="modal-title" id="exampleModalLabel">Contacter Interfor</h5>
  74.                 <button type="button btn-dark" class="close" data-dismiss="modal" aria-label="Close">
  75.                     <span aria-hidden="true">&times;</span>
  76.                 </button>
  77.             </div>
  78.             <div class="modal-body ">
  79.                 <div id="form">
  80.                     <form id="contact-form">
  81.                         <div class="form-group"style="margin: 0 30px">
  82.                             <div>
  83.                                 <label>Nom Prénom</label>
  84.                                 <input type="text" class="form-control" name="name" required>
  85.                             </div>
  86.                             <div >
  87.                                 <label>Email</label>
  88.                                 <input type="email" class="form-control" name="email" required>
  89.                             </div>
  90.                             <div >
  91.                                 <label>Motif</label>
  92.                                 <input type="text" class="form-control" name="subject" required>
  93.                             </div>
  94.                             <div  class="mt-2">
  95.                                 <label>Votre message : </label>
  96.                                 <textarea style="min-height: 30pt;" id="commentLuminjo" class="form-control" name="content" required></textarea>
  97.                             </div>
  98.                             <div  class="mt-5 text-center">
  99.                                 <button class="g-recaptcha btn btn-primary"
  100. {#                                        data-sitekey="6Lf982YpAAAAAMoDZWtOsIXXxv0coqlZOfg3YL6m"#}
  101. {#                                        data-callback='submitLumingo'#}
  102. {#                                        data-action='submit'#}
  103.                                         type="submit" onclick="submitLumingo(event)" class="btn btn-primary"
  104.                                 >Envoyer</button>
  105.                             </div>
  106.                         </div>
  107.                     </form>
  108.                 </div>
  109.                 <div id="form-valid" style="display: none">
  110.                     <div class="alert alert-success">Le message a bien été envoyé</div>
  111.                 </div>
  112.                 <div id="form-error" style="display: none">
  113.                     <div class="alert alert-danger">Un erreur est survenue lors de l'envoi du message, veuillez réessayer ultérieurement</div>
  114.                 </div>
  115.             </div>
  116.         </div>
  117.     </div>
  118. </div>
  119. </body>
  120. {% block javascripts %}
  121.     <script src="https://max-interfor.luminjo.com/js/embed.js"></script>
  122.     <script src="{{ asset('./js/jquery.min.js') }}"></script>
  123. {#    <script src="https://www.google.com/recaptcha/api.js?render=6Lf982YpAAAAAMoDZWtOsIXXxv0coqlZOfg3YL6m#}
  124. {#"></script>#}
  125.     <script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
  126.     <script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  127.     <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  128.     <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2" crossorigin="anonymous"></script>
  129.     <script>
  130.      function submitLumingo(e) {
  131.         grecaptcha.ready(function() {
  132.             grecaptcha.execute('6Lf982YpAAAAAMoDZWtOsIXXxv0coqlZOfg3YL6m', {action: 'submit'}).then(function(token) {
  133.                 const message = $('#commentLuminjo').val();
  134.                 let name = $('input[name="name"]').val();
  135.                 let email = $('input[name="email"]').val();
  136.                 let subject = $('input[name="subject"]').val();
  137.                 $.ajax({
  138.                     dataType: 'json',
  139.                     type: 'POST',
  140.                     contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
  141.                     url: '{{ path('send_luminjo_api') }}',
  142.                     data: {
  143.                         token: token,
  144.                         name: name,
  145.                         message: message,
  146.                         email: email,
  147.                         subject: subject
  148.                     },
  149.                     success: function (data) {
  150.                         window.location.reload()
  151.                         e.preventDefault()
  152.                     },
  153.                     error: function (data) {
  154.                         e.preventDefault()
  155.                     },
  156.                 });
  157.             });
  158.         });
  159.     };
  160.     </script>
  161. {#    <script src="https://www.google.com/recaptcha/api.js"></script>#}
  162. {% endblock %}
  163. </html>