var/cache/dev/twig/a1/a11cf96d2703774082227620e32c19c3c25544baf52c201735e1d9911f093df7.php line 395

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