var/cache/dev/twig/66/66437a3e95abd9a6b318e0b3cb7b66d0.php line 128

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* front/theme1/base.html.twig */
  14. class __TwigTemplate_de2955ce7c0fc350911b1b041c090bc7 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'metaTag' => [$this'block_metaTag'],
  25.             'preload' => [$this'block_preload'],
  26.             'stylesheets' => [$this'block_stylesheets'],
  27.             'navbar' => [$this'block_navbar'],
  28.             'body' => [$this'block_body'],
  29.             'footer' => [$this'block_footer'],
  30.             'javascripts' => [$this'block_javascripts'],
  31.         ];
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/theme1/base.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/theme1/base.html.twig"));
  40.         // line 1
  41.         echo "<!doctype html>
  42. <html lang=\"";
  43.         // line 2
  44.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'2$this->source); })()), "request", [], "any"falsefalsefalse2), "locale", [], "any"falsefalsefalse2), "html"nulltrue);
  45.         echo "\">
  46.     <head>
  47.         <meta charset=\"utf-8\" />
  48.         <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  49.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  50.         ";
  51.         // line 10
  52.         echo "        <link rel=\"icon\" type=\"image/x-icon\" href=\"";
  53.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("public/favicon/favicon.ico"), "html"nulltrue);
  54.         echo "\" />
  55.         ";
  56.         // line 12
  57.         echo "        ";
  58.         echo $this->extensions['Leogout\Bundle\SeoBundle\Twig\SeoExtension']->seo();
  59.         echo 
  60.         <link rel=\"preconnect\" href=\"//www.google-analytics.com\" crossorigin>
  61.         <link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
  62.         <link rel=\"preconnect\" href=\"https://code.jquery.com\" crossorigin>
  63.         
  64.        
  65.         ";
  66.         // line 20
  67.         echo "        ";
  68.         // line 21
  69.         echo "
  70.         <script src=\"";
  71.         // line 22
  72.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/js/jquery-3.6.0.min.js"), "html"nulltrue);
  73.         echo "\"></script>
  74.         
  75.         ";
  76.         // line 24
  77.         $this->displayBlock('metaTag'$context$blocks);
  78.         // line 74
  79.         echo "
  80.         ";
  81.         // line 75
  82.         $this->displayBlock('preload'$context$blocks);
  83.         // line 76
  84.         echo "
  85.         ";
  86.         // line 78
  87.         $this->displayBlock('stylesheets'$context$blocks);
  88.         // line 88
  89.         echo "
  90.         <script async src=\"https://www.googletagmanager.com/gtag/js?id=G-XR7K60K3YD\"></script>
  91.         <script>
  92.             window.dataLayer = window.dataLayer || [];
  93.             function gtag(){dataLayer.push(arguments);}
  94.             gtag('js', new Date());
  95.             gtag('config', 'G-XR7K60K3YD');
  96.         </script>
  97.     </head>
  98.     <body ";
  99.         // line 98
  100.         if ((null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'98$this->source); })()), "request", [], "any"falsefalsefalse98), "attributes", [], "any"falsefalsefalse98), "get", [=> "_route"], "method"falsefalsefalse98))) {
  101.             echo "class=\"page-404\"";
  102.         }
  103.         echo ">
  104.         ";
  105.         // line 100
  106.         $this->displayBlock('navbar'$context$blocks);
  107.         // line 104
  108.         echo "
  109.         <main class=\"";
  110.         // line 105
  111.         echo (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'105$this->source); })()), "request", [], "any"falsefalsefalse105), "attributes", [], "any"falsefalsefalse105), "get", [=> "_route"], "method"falsefalsefalse105) == "index_page_home")) ? ("home_page") : (""));
  112.         echo "\">
  113.           ";
  114.         // line 106
  115.         $this->displayBlock('body'$context$blocks);
  116.         echo 
  117.         </main>
  118.         <a href=\"javascript:void(0);\" class=\"scroll-to-top\" title=\"Haut\" style=\"display: none;\"><span>Haut</span></a>
  119.         ";
  120.         // line 111
  121.         $this->displayBlock('footer'$context$blocks);
  122.         // line 114
  123.         echo "
  124.         ";
  125.         // line 115
  126.         $this->displayBlock('javascripts'$context$blocks);
  127.         // line 243
  128.         echo 
  129.     </body>
  130. </html>";
  131.         
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  133.         
  134.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  135.     }
  136.     // line 24
  137.     public function block_metaTag($context, array $blocks = [])
  138.     {
  139.         $macros $this->macros;
  140.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaTag"));
  142.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  143.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaTag"));
  144.         // line 25
  145.         echo "                ";
  146.         if ((array_key_exists("meta_robots"$context) &&  !twig_test_empty((isset($context["meta_robots"]) || array_key_exists("meta_robots"$context) ? $context["meta_robots"] : (function () { throw new RuntimeError('Variable "meta_robots" does not exist.'25$this->source); })())))) {
  147.             // line 26
  148.             echo "                    <meta name=\"robots\" content=\"";
  149.             echo twig_escape_filter($this->env, (isset($context["meta_robots"]) || array_key_exists("meta_robots"$context) ? $context["meta_robots"] : (function () { throw new RuntimeError('Variable "meta_robots" does not exist.'26$this->source); })()), "html"nulltrue);
  150.             echo "\">
  151.                 ";
  152.         }
  153.         // line 28
  154.         echo "
  155.                 ";
  156.         // line 29
  157.         if ((array_key_exists("canonical"$context) && ((isset($context["canonical"]) || array_key_exists("canonical"$context) ? $context["canonical"] : (function () { throw new RuntimeError('Variable "canonical" does not exist.'29$this->source); })()) != null))) {
  158.             // line 30
  159.             echo "                        <link href=\"";
  160.             echo twig_escape_filter($this->env, (isset($context["canonical"]) || array_key_exists("canonical"$context) ? $context["canonical"] : (function () { throw new RuntimeError('Variable "canonical" does not exist.'30$this->source); })()), "html"nulltrue);
  161.             echo "\" rel=\"canonical\"/>
  162.                 ";
  163.         } else {
  164.             // line 32
  165.             echo "                    ";
  166.             if (twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'32$this->source); })()), "request", [], "any"falsefalsefalse32), "attributes", [], "any"falsefalsefalse32), "get", [=> "_route"], "method"falsefalsefalse32), [=> "index_page_home"=> "plan_du_site"])) {
  167.                 // line 33
  168.                 echo "                        ";
  169.                 $context["currentPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'33$this->source); })()), "request", [], "any"falsefalsefalse33), "attributes", [], "any"falsefalsefalse33), "get", [=> "_route"], "method"falsefalsefalse33));
  170.                 // line 34
  171.                 echo "                    ";
  172.             } else {
  173.                 // line 35
  174.                 echo "                         ";
  175.                 $context["parametre_url"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'35$this->source); })()), "request", [], "any"falsefalsefalse35), "attributes", [], "any"falsefalsefalse35), "get", [=> "page"], "method"falsefalsefalse35);
  176.                 // line 36
  177.                 echo "
  178.                          ";
  179.                 // line 37
  180.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse37), "attributes", [], "any"falsetruefalse37), "get", [=> "_route_params"], "method"falsetruefalse37), "slug", [], "any"truetruefalse37)) {
  181.                     // line 38
  182.                     echo "                                ";
  183.                     if ((((isset($context["parametre_url"]) || array_key_exists("parametre_url"$context) ? $context["parametre_url"] : (function () { throw new RuntimeError('Variable "parametre_url" does not exist.'38$this->source); })()) != null) && ((isset($context["parametre_url"]) || array_key_exists("parametre_url"$context) ? $context["parametre_url"] : (function () { throw new RuntimeError('Variable "parametre_url" does not exist.'38$this->source); })()) != "1"))) {
  184.                         // line 39
  185.                         echo "                                    ";
  186.                         $context["currentPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'39$this->source); })()), "request", [], "any"falsefalsefalse39), "attributes", [], "any"falsefalsefalse39), "get", [=> "_route"], "method"falsefalsefalse39), ["slug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'39$this->source); })()), "request", [], "any"falsefalsefalse39), "attributes", [], "any"falsefalsefalse39), "get", [=> "_route_params"], "method"falsefalsefalse39), "slug", [], "any"falsefalsefalse39), "page" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'39$this->source); })()), "request", [], "any"falsefalsefalse39), "attributes", [], "any"falsefalsefalse39), "get", [=> "_route_params"], "method"falsefalsefalse39), "page", [], "any"falsefalsefalse39)]);
  187.                         // line 40
  188.                         echo "                                ";
  189.                     } else {
  190.                         // line 41
  191.                         echo "                                    ";
  192.                         $context["currentPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'41$this->source); })()), "request", [], "any"falsefalsefalse41), "attributes", [], "any"falsefalsefalse41), "get", [=> "_route"], "method"falsefalsefalse41), ["slug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'41$this->source); })()), "request", [], "any"falsefalsefalse41), "attributes", [], "any"falsefalsefalse41), "get", [=> "_route_params"], "method"falsefalsefalse41), "slug", [], "any"falsefalsefalse41)]);
  193.                         // line 42
  194.                         echo "                                ";
  195.                     }
  196.                     // line 43
  197.                     echo "                         ";
  198.                 } else {
  199.                     // line 44
  200.                     echo "                                ";
  201.                     $context["currentPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'44$this->source); })()), "request", [], "any"falsefalsefalse44), "attributes", [], "any"falsefalsefalse44), "get", [=> "_route"], "method"falsefalsefalse44));
  202.                     // line 45
  203.                     echo "                         ";
  204.                 }
  205.                 // line 46
  206.                 echo "                  
  207.                     ";
  208.             }
  209.             // line 48
  210.             echo "                
  211.                     <link href=\"";
  212.             // line 49
  213.             echo twig_escape_filter($this->env, (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'49$this->source); })()), "request", [], "any"falsefalsefalse49), "schemeAndHttpHost", [], "any"falsefalsefalse49) . (isset($context["currentPath"]) || array_key_exists("currentPath"$context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.'49$this->source); })())), "html"nulltrue);
  214.             echo "\" rel=\"canonical\" />
  215.                 ";
  216.         }
  217.         // line 51
  218.         echo "
  219.                 ";
  220.         // line 53
  221.         echo "                ";
  222.         if ($this->extensions['App\Twig\FunctionExtension']->ActifLanguageFunction()) {
  223.             // line 54
  224.             echo "                        ";
  225.             $context['_parent'] = $context;
  226.             $context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\FunctionExtension']->ActifLanguageFunction());
  227.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  228.                 // line 55
  229.                 echo "                            <link rel=\"alternate\" hreflang=\"";
  230.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "languagecode", [], "any"falsefalsefalse55), "html"nulltrue);
  231.                 echo "\" href=\"";
  232.                 echo twig_escape_filter($this->env, (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'55$this->source); })()), "request", [], "any"falsefalsefalse55), "schemeAndHttpHost", [], "any"falsefalsefalse55) . (isset($context["currentPath"]) || array_key_exists("currentPath"$context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.'55$this->source); })())), "html"nulltrue);
  233.                 echo "\"/>
  234.                         ";
  235.             }
  236.             $_parent $context['_parent'];
  237.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  238.             $context array_intersect_key($context$_parent) + $_parent;
  239.             // line 57
  240.             echo "                ";
  241.         }
  242.         // line 58
  243.         echo "
  244.                 ";
  245.         // line 59
  246.         if ((array_key_exists("custom_schemaOrg"$context) && ((isset($context["custom_schemaOrg"]) || array_key_exists("custom_schemaOrg"$context) ? $context["custom_schemaOrg"] : (function () { throw new RuntimeError('Variable "custom_schemaOrg" does not exist.'59$this->source); })()) != null))) {
  247.             // line 60
  248.             echo "                    ";
  249.             echo (isset($context["custom_schemaOrg"]) || array_key_exists("custom_schemaOrg"$context) ? $context["custom_schemaOrg"] : (function () { throw new RuntimeError('Variable "custom_schemaOrg" does not exist.'60$this->source); })());
  250.             echo "
  251.                 ";
  252.         }
  253.         // line 62
  254.         echo "                
  255.                 ";
  256.         // line 64
  257.         if (array_key_exists("schemaOrg"$context)) {
  258.             // line 65
  259.             echo "                     ";
  260.             echo twig_replace_filter(twig_replace_filter((isset($context["schemaOrg"]) || array_key_exists("schemaOrg"$context) ? $context["schemaOrg"] : (function () { throw new RuntimeError('Variable "schemaOrg" does not exist.'65$this->source); })()), ["\\" => "/"]), ["//" => "/"]);
  261.             echo "
  262.                 ";
  263.         }
  264.         // line 67
  265.         echo "
  266.                 ";
  267.         // line 68
  268.         if (array_key_exists("schema_breadcrumb"$context)) {
  269.             // line 69
  270.             echo "                    ";
  271.             echo twig_replace_filter(twig_replace_filter((isset($context["schema_breadcrumb"]) || array_key_exists("schema_breadcrumb"$context) ? $context["schema_breadcrumb"] : (function () { throw new RuntimeError('Variable "schema_breadcrumb" does not exist.'69$this->source); })()), ["\\" => "/"]), ["//" => "/"]);
  272.             echo "
  273.                 ";
  274.         }
  275.         // line 71
  276.         echo "
  277.             
  278.         ";
  279.         
  280.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  281.         
  282.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  283.     }
  284.     // line 75
  285.     public function block_preload($context, array $blocks = [])
  286.     {
  287.         $macros $this->macros;
  288.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  289.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""preload"));
  290.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  291.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""preload"));
  292.         
  293.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  294.         
  295.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  296.     }
  297.     // line 78
  298.     public function block_stylesheets($context, array $blocks = [])
  299.     {
  300.         $macros $this->macros;
  301.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  302.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  303.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  304.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  305.         // line 79
  306.         echo "        ";
  307.         // line 80
  308.         echo "            <style>
  309.                 ";
  310.         // line 82
  311.         echo "                
  312.                 ";
  313.         // line 83
  314.         $context['_parent'] = $context;
  315.         $context['_seq'] = twig_ensure_traversable($this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->getWebpackCssFiles("app-theme"));
  316.         foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
  317.             // line 84
  318.             echo "                    ";
  319.             echo twig_source($this->env, ("@PUBLIC" $context["file"]));
  320.             echo "
  321.                 ";
  322.         }
  323.         $_parent $context['_parent'];
  324.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']);
  325.         $context array_intersect_key($context$_parent) + $_parent;
  326.         // line 86
  327.         echo "            </style>
  328.         ";
  329.         
  330.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  331.         
  332.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  333.     }
  334.     // line 100
  335.     public function block_navbar($context, array $blocks = [])
  336.     {
  337.         $macros $this->macros;
  338.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  339.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  340.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  341.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  342.         // line 101
  343.         echo "            ";
  344.         $context["className"] = (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'101$this->source); })()), "request", [], "any"falsefalsefalse101), "attributes", [], "any"falsefalsefalse101), "get", [=> "_route"], "method"falsefalsefalse101) == "index_page_home")) ? ("home_page") : (""));
  345.         // line 102
  346.         echo "            ";
  347.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderMenu", ["className" => (isset($context["className"]) || array_key_exists("className"$context) ? $context["className"] : (function () { throw new RuntimeError('Variable "className" does not exist.'102$this->source); })())]));
  348.         echo 
  349.         ";
  350.         
  351.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  352.         
  353.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  354.     }
  355.     // line 106
  356.     public function block_body($context, array $blocks = [])
  357.     {
  358.         $macros $this->macros;
  359.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  360.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  361.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  362.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  363.         
  364.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  365.         
  366.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  367.     }
  368.     // line 111
  369.     public function block_footer($context, array $blocks = [])
  370.     {
  371.         $macros $this->macros;
  372.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  373.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  374.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  375.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  376.         // line 112
  377.         echo "            ";
  378.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderFooter", ["TypeMenu" => "Footer"]));
  379.         echo "
  380.         ";
  381.         
  382.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  383.         
  384.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  385.     }
  386.     // line 115
  387.     public function block_javascripts($context, array $blocks = [])
  388.     {
  389.         $macros $this->macros;
  390.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  391.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  392.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  393.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  394.         // line 116
  395.         echo "
  396.             <script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js\"></script>
  397.             <script src=\"";
  398.         // line 118
  399.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/plugins/wow-animate/js/wow.min.js"), "html"nulltrue);
  400.         echo "\"></script>
  401.             <script src=\"";
  402.         // line 119
  403.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/plugins/galerie-isotope-wow/js/isotope.pkgd.min.js"), "html"nulltrue);
  404.         echo "\"></script>
  405.             <script src=\"";
  406.         // line 120
  407.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/plugins/galerie-isotope-wow/js/plugins.js"), "html"nulltrue);
  408.         echo "\"></script>
  409.             ";
  410.         // line 124
  411.         echo "            ";
  412.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app-theme");
  413.         echo 
  414.     
  415.             <script>
  416.                   // new WOW().init();
  417.                    (function () {
  418.                         'use strict'
  419.                         // Fetch all the forms we want to apply custom Bootstrap validation styles to
  420.                         var forms = document.querySelectorAll('.needs-validation')
  421.                         // Loop over them and prevent submission
  422.                         Array.prototype.slice.call(forms)
  423.                             .forEach(function (form) {
  424.                             form.addEventListener('submit', function (event) {
  425.                                 form.classList.add('was-validated')
  426.                                 if (!form.checkValidity()) {
  427.                                     event.preventDefault()
  428.                                     event.stopPropagation()
  429.                                     return false;
  430.                                 }
  431.                                 event.preventDefault();
  432.                                 \$(form).find('button[type=\"submit\"]').attr('disabled','true');
  433.                                 grecaptcha.execute('";
  434.         // line 147
  435.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "clekey", [], "any"falsefalsefalse147), "html"nulltrue);
  436.         echo "', {action: 'create_comment'}).then(token => {
  437.                                     \$(form).find('[name=g-recaptcha-response]').val(token);
  438.                                     form.submit();
  439.                                 });
  440.                             }, false)
  441.                             })
  442.                     })()  
  443.                     function reCaptchaOnFocus() {
  444.                         var head = document.getElementsByTagName('head')[0]
  445.                         var script = document.createElement('script')
  446.                         script.type = 'text/javascript';
  447.                         script.src = 'https://www.google.com/recaptcha/api.js?render=";
  448.         // line 159
  449.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "clekey", [], "any"falsefalsefalse159), "html"nulltrue);
  450.         echo "'
  451.                         head.appendChild(script);
  452.                     };  
  453.                     if(document.getElementsByClassName('form-recap')){
  454.                         for (let i = 0; i < document.getElementsByClassName('form-recap').length; i++) {
  455.                             document.getElementsByClassName('form-recap')[i].addEventListener('focus', (event) => {
  456.                                 reCaptchaOnFocus()
  457.                             }, true);
  458.                         }
  459.                     }
  460.             </script>
  461.             <script>
  462.                 \$(document).ready(function(){
  463.                     /* const elems = document.querySelectorAll('.datepicker_input');
  464.                     for (const elem of elems) {
  465.                         const datepicker = new Datepicker(elem, {
  466.                             'format': 'dd/mm/yyyy',
  467.                             'language' : 'fr',
  468.                            // title: getDatePickerTitle(elem)
  469.                         });
  470.                     } */
  471.              
  472.                     \$(window).on(\"scroll\", function () {
  473.                         if (\$(this).scrollTop() > \$(window).height() / 2) {
  474.                             \$(\".scroll-to-top\").fadeIn();
  475.                         } else {
  476.                              \$(\".scroll-to-top\").fadeOut();
  477.                         }
  478.                     });
  479.                     \$('.header-savoir-plus').on(\"click\", function () {
  480.                         \$(\"html, body\").animate({ scrollTop: \$('#bloc-content').offset().top - 100 }, \"slow\" );
  481.                         return false;
  482.                     });
  483.                     \$(\".scroll-to-top\").on(\"click\", function () {
  484.                         \$(\"html, body\").animate({ scrollTop: 0 }, 500);
  485.                         return false;
  486.                     });
  487.                     \$('input[name=\"prestation[]\"]').change(function(){
  488.                         if(this.hasAttribute('checked')){
  489.                             \$(this).attr('checked',false);
  490.                         }else{
  491.                             \$(this).attr('checked',true);
  492.                         }
  493.                         \$.each(\$(\"input[name='prestation[]']\"), function () {
  494.                             if (this.value == 'Autre' && this.hasAttribute('checked')) {
  495.                                 \$('.autre_prestation').removeClass('d-none');
  496.                                 \$('input[name=\"autre_prestation\"]').attr('required',true);
  497.                             }else{
  498.                                 \$('.autre_prestation').addClass('d-none');
  499.                                 \$('input[name=\"autre_prestation\"]').attr('required',false);
  500.                             }
  501.                         });
  502.                     
  503.                     });
  504.                     \$('input[name=\"vous_etes\"]').change(function(){
  505.                         if (this.value == 'Autre') {
  506.                             \$('.autre_coordonne').removeClass('d-none');
  507.                             \$('input[name=\"autre_coordonne\"]').attr('required',true);
  508.                         }else{
  509.                             \$('.autre_coordonne').addClass('d-none');
  510.                             \$('input[name=\"autre_coordonne\"]').attr('required',false);
  511.                         }
  512.                     });
  513.                 });
  514.             </script>
  515.             ";
  516.         // line 237
  517.         if (($this->extensions['App\Twig\ParametreSiteExtension']->CookiesFunction() != null)) {
  518.             // line 238
  519.             echo "                  ";
  520.             echo twig_include($this->env$context, (("front/" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'238$this->source); })()), "request", [], "any"falsefalsefalse238), "server", [], "any"falsefalsefalse238), "get", [=> "APP_THEME"], "method"falsefalsefalse238)) . "/cookies/cookie.html.twig"), [], false);
  521.             echo "
  522.             ";
  523.         }
  524.         // line 240
  525.         echo "
  526.         ";
  527.         
  528.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  529.         
  530.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  531.     }
  532.     public function getTemplateName()
  533.     {
  534.         return "front/theme1/base.html.twig";
  535.     }
  536.     public function isTraitable()
  537.     {
  538.         return false;
  539.     }
  540.     public function getDebugInfo()
  541.     {
  542.         return array (  595 => 240,  589 => 238,  587 => 237,  506 => 159,  491 => 147,  464 => 124,  459 => 120,  455 => 119,  451 => 118,  447 => 116,  437 => 115,  424 => 112,  414 => 111,  396 => 106,  383 => 102,  380 => 101,  370 => 100,  359 => 86,  350 => 84,  346 => 83,  343 => 82,  340 => 80,  338 => 79,  328 => 78,  310 => 75,  298 => 71,  292 => 69,  290 => 68,  287 => 67,  281 => 65,  279 => 64,  275 => 62,  269 => 60,  267 => 59,  264 => 58,  261 => 57,  250 => 55,  245 => 54,  242 => 53,  239 => 51,  234 => 49,  231 => 48,  227 => 46,  224 => 45,  221 => 44,  218 => 43,  215 => 42,  212 => 41,  209 => 40,  206 => 39,  203 => 38,  201 => 37,  198 => 36,  195 => 35,  192 => 34,  189 => 33,  186 => 32,  180 => 30,  178 => 29,  175 => 28,  169 => 26,  166 => 25,  156 => 24,  143 => 243,  141 => 115,  138 => 114,  136 => 111,  128 => 106,  124 => 105,  121 => 104,  119 => 100,  112 => 98,  100 => 88,  98 => 78,  94 => 76,  92 => 75,  89 => 74,  87 => 24,  82 => 22,  79 => 21,  77 => 20,  66 => 12,  61 => 10,  53 => 2,  50 => 1,);
  543.     }
  544.     public function getSourceContext()
  545.     {
  546.         return new Source("<!doctype html>
  547. <html lang=\"{{ app.request.locale }}\">
  548.     <head>
  549.         <meta charset=\"utf-8\" />
  550.         <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  551.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  552.         {# <link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"{{asset('public/favicon/apple-touch-icon.png')}}\">
  553.         <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"{{asset('public/favicon/favicon-32x32.png')}}\">
  554.         <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"{{asset('public/favicon/favicon-16x16.png')}}\"> #}
  555.         <link rel=\"icon\" type=\"image/x-icon\" href=\"{{ asset('public/favicon/favicon.ico') }}\" />
  556.         {# <link rel=\"manifest\" href=\"{{asset('public/favicon/site.webmanifest')}}\"> #}
  557.         {{ leogout_seo() }} 
  558.         <link rel=\"preconnect\" href=\"//www.google-analytics.com\" crossorigin>
  559.         <link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
  560.         <link rel=\"preconnect\" href=\"https://code.jquery.com\" crossorigin>
  561.         
  562.        
  563.         {# {% include 'front/preload_fonts.html.twig' %} #}
  564.         {# <link href=\"https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.1.4/dist/css/datepicker.min.css\" rel=\"stylesheet\"> #}
  565.         <script src=\"{{asset('templates/front/theme1/assets/js/jquery-3.6.0.min.js')}}\"></script>
  566.         
  567.         {% block metaTag %}
  568.                 {% if meta_robots is defined and meta_robots is not empty %}
  569.                     <meta name=\"robots\" content=\"{{meta_robots}}\">
  570.                 {% endif %}
  571.                 {% if canonical is defined and canonical != null  %}
  572.                         <link href=\"{{canonical}}\" rel=\"canonical\"/>
  573.                 {% else %}
  574.                     {% if app.request.attributes.get('_route') in ['index_page_home','plan_du_site']  %}
  575.                         {% set currentPath = path(app.request.attributes.get('_route'))  %}
  576.                     {% else %}
  577.                          {% set parametre_url = app.request.attributes.get('page') %}
  578.                          {% if app.request.attributes.get('_route_params').slug is defined %}
  579.                                 {% if parametre_url != null and parametre_url != '1'  %}
  580.                                     {% set currentPath = path(app.request.attributes.get('_route'),{slug:app.request.attributes.get('_route_params').slug,page:app.request.attributes.get('_route_params').page})   %}
  581.                                 {% else %}
  582.                                     {% set currentPath = path(app.request.attributes.get('_route'),{slug:app.request.attributes.get('_route_params').slug})  %}
  583.                                 {% endif %}
  584.                          {% else %}
  585.                                 {% set currentPath = path(app.request.attributes.get('_route'))  %}
  586.                          {% endif %}
  587.                   
  588.                     {% endif %}
  589.                 
  590.                     <link href=\"{{app.request.schemeAndHttpHost ~ currentPath}}\" rel=\"canonical\" />
  591.                 {% endif %}
  592.                 {# <link rel=\"alternate\" hreflang=\"x-default\" href=\"{{app.request.schemeAndHttpHost ~ currentPath}}\" />  #}
  593.                 {% if ActifLanguage() %}
  594.                         {% for item in ActifLanguage() %}
  595.                             <link rel=\"alternate\" hreflang=\"{{item.languagecode}}\" href=\"{{app.request.schemeAndHttpHost ~ currentPath}}\"/>
  596.                         {% endfor %}
  597.                 {% endif %}
  598.                 {% if custom_schemaOrg is defined and custom_schemaOrg != null  %}
  599.                     {{custom_schemaOrg|raw}}
  600.                 {% endif %}
  601.                 
  602.                 {% if schemaOrg is defined %}
  603.                      {{schemaOrg|replace({\"\\\\\": \"/\"})|replace({\"//\": \"/\"})|raw}}
  604.                 {% endif %}
  605.                 {% if schema_breadcrumb is defined %}
  606.                     {{schema_breadcrumb|replace({\"\\\\\": \"/\"})|replace({\"//\": \"/\"})|raw}}
  607.                 {% endif %}
  608.             
  609.         {% endblock %}
  610.         {% block preload %}{% endblock %}
  611.         {% block stylesheets %}
  612.         {#  {{ encore_entry_link_tags('app-theme') }} #}
  613.             <style>
  614.                 {# {% include 'front/config_theme.html.twig' %} #}
  615.                 
  616.                 {% for file in encore_entry_css_files('app-theme') %}
  617.                     {{ source('@PUBLIC' ~ file) }}
  618.                 {% endfor %}
  619.             </style>
  620.         {% endblock %}
  621.         <script async src=\"https://www.googletagmanager.com/gtag/js?id=G-XR7K60K3YD\"></script>
  622.         <script>
  623.             window.dataLayer = window.dataLayer || [];
  624.             function gtag(){dataLayer.push(arguments);}
  625.             gtag('js', new Date());
  626.             gtag('config', 'G-XR7K60K3YD');
  627.         </script>
  628.     </head>
  629.     <body {% if app.request.attributes.get('_route') is null %}class=\"page-404\"{% endif %}>
  630.         {% block navbar %}
  631.             {% set className = app.request.attributes.get('_route') == 'index_page_home'?'home_page':'' %}
  632.             {{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderMenu',{'className': className })) }} 
  633.         {% endblock %}
  634.         <main class=\"{{app.request.attributes.get('_route') == 'index_page_home'?'home_page':''}}\">
  635.           {% block body %}{% endblock %} 
  636.         </main>
  637.         <a href=\"javascript:void(0);\" class=\"scroll-to-top\" title=\"Haut\" style=\"display: none;\"><span>Haut</span></a>
  638.         {% block footer %}
  639.             {{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderFooter',{ 'TypeMenu': 'Footer' })) }}
  640.         {% endblock %}
  641.         {% block javascripts %}
  642.             <script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js\"></script>
  643.             <script src=\"{{asset('templates/front/theme1/assets/plugins/wow-animate/js/wow.min.js')}}\"></script>
  644.             <script src=\"{{asset('templates/front/theme1/assets/plugins/galerie-isotope-wow/js/isotope.pkgd.min.js')}}\"></script>
  645.             <script src=\"{{asset('templates/front/theme1/assets/plugins/galerie-isotope-wow/js/plugins.js')}}\"></script>
  646.             {# <script src=\"https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.1.4/dist/js/datepicker-full.min.js\"></script>
  647.             <script src=\"https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.2.0/dist/js/locales/fr.js\"></script> #}
  648.             {{ encore_entry_script_tags('app-theme') }} 
  649.     
  650.             <script>
  651.                   // new WOW().init();
  652.                    (function () {
  653.                         'use strict'
  654.                         // Fetch all the forms we want to apply custom Bootstrap validation styles to
  655.                         var forms = document.querySelectorAll('.needs-validation')
  656.                         // Loop over them and prevent submission
  657.                         Array.prototype.slice.call(forms)
  658.                             .forEach(function (form) {
  659.                             form.addEventListener('submit', function (event) {
  660.                                 form.classList.add('was-validated')
  661.                                 if (!form.checkValidity()) {
  662.                                     event.preventDefault()
  663.                                     event.stopPropagation()
  664.                                     return false;
  665.                                 }
  666.                                 event.preventDefault();
  667.                                 \$(form).find('button[type=\"submit\"]').attr('disabled','true');
  668.                                 grecaptcha.execute('{{ParametreSite().clekey}}', {action: 'create_comment'}).then(token => {
  669.                                     \$(form).find('[name=g-recaptcha-response]').val(token);
  670.                                     form.submit();
  671.                                 });
  672.                             }, false)
  673.                             })
  674.                     })()  
  675.                     function reCaptchaOnFocus() {
  676.                         var head = document.getElementsByTagName('head')[0]
  677.                         var script = document.createElement('script')
  678.                         script.type = 'text/javascript';
  679.                         script.src = 'https://www.google.com/recaptcha/api.js?render={{ParametreSite().clekey}}'
  680.                         head.appendChild(script);
  681.                     };  
  682.                     if(document.getElementsByClassName('form-recap')){
  683.                         for (let i = 0; i < document.getElementsByClassName('form-recap').length; i++) {
  684.                             document.getElementsByClassName('form-recap')[i].addEventListener('focus', (event) => {
  685.                                 reCaptchaOnFocus()
  686.                             }, true);
  687.                         }
  688.                     }
  689.             </script>
  690.             <script>
  691.                 \$(document).ready(function(){
  692.                     /* const elems = document.querySelectorAll('.datepicker_input');
  693.                     for (const elem of elems) {
  694.                         const datepicker = new Datepicker(elem, {
  695.                             'format': 'dd/mm/yyyy',
  696.                             'language' : 'fr',
  697.                            // title: getDatePickerTitle(elem)
  698.                         });
  699.                     } */
  700.              
  701.                     \$(window).on(\"scroll\", function () {
  702.                         if (\$(this).scrollTop() > \$(window).height() / 2) {
  703.                             \$(\".scroll-to-top\").fadeIn();
  704.                         } else {
  705.                              \$(\".scroll-to-top\").fadeOut();
  706.                         }
  707.                     });
  708.                     \$('.header-savoir-plus').on(\"click\", function () {
  709.                         \$(\"html, body\").animate({ scrollTop: \$('#bloc-content').offset().top - 100 }, \"slow\" );
  710.                         return false;
  711.                     });
  712.                     \$(\".scroll-to-top\").on(\"click\", function () {
  713.                         \$(\"html, body\").animate({ scrollTop: 0 }, 500);
  714.                         return false;
  715.                     });
  716.                     \$('input[name=\"prestation[]\"]').change(function(){
  717.                         if(this.hasAttribute('checked')){
  718.                             \$(this).attr('checked',false);
  719.                         }else{
  720.                             \$(this).attr('checked',true);
  721.                         }
  722.                         \$.each(\$(\"input[name='prestation[]']\"), function () {
  723.                             if (this.value == 'Autre' && this.hasAttribute('checked')) {
  724.                                 \$('.autre_prestation').removeClass('d-none');
  725.                                 \$('input[name=\"autre_prestation\"]').attr('required',true);
  726.                             }else{
  727.                                 \$('.autre_prestation').addClass('d-none');
  728.                                 \$('input[name=\"autre_prestation\"]').attr('required',false);
  729.                             }
  730.                         });
  731.                     
  732.                     });
  733.                     \$('input[name=\"vous_etes\"]').change(function(){
  734.                         if (this.value == 'Autre') {
  735.                             \$('.autre_coordonne').removeClass('d-none');
  736.                             \$('input[name=\"autre_coordonne\"]').attr('required',true);
  737.                         }else{
  738.                             \$('.autre_coordonne').addClass('d-none');
  739.                             \$('input[name=\"autre_coordonne\"]').attr('required',false);
  740.                         }
  741.                     });
  742.                 });
  743.             </script>
  744.             {% if Cookies() != null %}
  745.                   {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/cookies/cookie.html.twig',{}, with_context = false)}}
  746.             {% endif %}
  747.         {% endblock %} 
  748.     </body>
  749. </html>""front/theme1/base.html.twig""/var/www/vhosts/hrz.fr/new-site.hrz.fr/templates/front/theme1/base.html.twig");
  750.     }
  751. }