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

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=\"https://code.jquery.com\" crossorigin>
  61.         <link rel=\"preconnect\" href=\"https://apps.elfsight.com\" crossorigin>
  62.         ";
  63.         // line 17
  64.         echo "        
  65.         ";
  66.         // line 19
  67.         echo "        ";
  68.         // line 20
  69.         echo "
  70.   
  71.         
  72.         ";
  73.         // line 23
  74.         $this->displayBlock('metaTag'$context$blocks);
  75.         // line 63
  76.         echo "
  77.         ";
  78.         // line 64
  79.         if ((twig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "googleverification", [], "any"falsefalsefalse64) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "googleverification", [], "any"falsefalsefalse64)))) {
  80.             // line 65
  81.             echo "                <meta name=\"google-site-verification\" content=\"";
  82.             echo twig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "googleverification", [], "any"falsefalsefalse65);
  83.             echo "\" />
  84.         ";
  85.         }
  86.         // line 67
  87.         echo "
  88.         ";
  89.         // line 68
  90.         if ((twig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "codehead", [], "any"falsefalsefalse68) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "codehead", [], "any"falsefalsefalse68)))) {
  91.             // line 69
  92.             echo "            ";
  93.             echo twig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "codehead", [], "any"falsefalsefalse69);
  94.             echo "
  95.         ";
  96.         }
  97.         // line 71
  98.         echo "
  99.        
  100.         ";
  101.         // line 74
  102.         $this->displayBlock('preload'$context$blocks);
  103.         // line 75
  104.         echo "
  105.         ";
  106.         // line 77
  107.         $this->displayBlock('stylesheets'$context$blocks);
  108.         // line 90
  109.         echo "        
  110.     </head>
  111.     ";
  112.         // line 92
  113.         ob_start();
  114.         // line 93
  115.         echo "    <body ";
  116.         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.'93$this->source); })()), "request", [], "any"falsefalsefalse93), "attributes", [], "any"falsefalsefalse93), "get", [=> "_route"], "method"falsefalsefalse93))) {
  117.             echo "class=\"page-404\"";
  118.         }
  119.         echo ">
  120.         ";
  121.         // line 94
  122.         if ((twig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "codebody", [], "any"falsefalsefalse94) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "codebody", [], "any"falsefalsefalse94)))) {
  123.             // line 95
  124.             echo "            ";
  125.             echo twig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "codebody", [], "any"falsefalsefalse95);
  126.             echo "
  127.         ";
  128.         }
  129.         // line 97
  130.         echo "
  131.         ";
  132.         // line 98
  133.         $this->displayBlock('navbar'$context$blocks);
  134.         // line 102
  135.         echo "
  136.         <main class=\"";
  137.         // line 104
  138.         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.'104$this->source); })()), "request", [], "any"falsefalsefalse104), "attributes", [], "any"falsefalsefalse104), "get", [=> "_route"], "method"falsefalsefalse104) == "index_page_home")) ? ("home_page") : (""));
  139.         echo " ";
  140.         ((($this->extensions['App\Twig\FunctionExtension']->customClassPage() != null)) ? (print (twig_escape_filter($this->env$this->extensions['App\Twig\FunctionExtension']->customClassPage(), "html"nulltrue))) : (print ("")));
  141.         echo "\">
  142.           ";
  143.         // line 105
  144.         $this->displayBlock('body'$context$blocks);
  145.         echo 
  146.         </main>
  147.         <a href=\"javascript:void(0);\" class=\"scroll-to-top\" title=\"";
  148.         // line 108
  149.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.haut", [], "textes"), "html"nulltrue);
  150.         echo "\" style=\"display: none;\"><span>";
  151.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.haut", [], "textes"), "html"nulltrue);
  152.         echo "</span></a>
  153.         <div id=\"myOverlay\" class=\"overlay\">
  154.             <span class=\"closebtn\" onclick=\"closeSearch()\" title=\"Close Overlay\">×</span>
  155.             <div class=\"overlay-content\">
  156.                 <form action=\"";
  157.         // line 113
  158.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_search");
  159.         echo "\" method=\"GET\">
  160.                     <div class=\"position-relative w-100\">
  161.                         <input type=\"text\" placeholder=\"Rechercher...\" name=\"search\" class=\"resRecord\" required>
  162.                         <div id=\"recButton\" class=\"w-md waves-effect waves-light\"><i class=\"fa fa-microphone\"></i></div>
  163.                     </div>
  164.                    <button type=\"submit\"><i class=\"fa fa-search\"></i></button>
  165.                 </form>
  166.             </div>
  167.         </div>
  168.   
  169.         ";
  170.         // line 124
  171.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderDefaultBloc"));
  172.         echo "
  173.         ";
  174.         // line 126
  175.         $this->displayBlock('footer'$context$blocks);
  176.         // line 129
  177.         echo "
  178.         ";
  179.         // line 130
  180.         $this->displayBlock('javascripts'$context$blocks);
  181.         // line 409
  182.         echo 
  183.     </body>
  184.     ";
  185.         $___internal_parse_0_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  186.         // line 92
  187.         echo twig_spaceless($___internal_parse_0_);
  188.         // line 413
  189.         echo "</html>";
  190.         
  191.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  192.         
  193.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  194.     }
  195.     // line 23
  196.     public function block_metaTag($context, array $blocks = [])
  197.     {
  198.         $macros $this->macros;
  199.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  200.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaTag"));
  201.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  202.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaTag"));
  203.         // line 24
  204.         echo "                ";
  205.         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.'24$this->source); })())))) {
  206.             // line 25
  207.             echo "                        <meta name=\"robots\" content=\"";
  208.             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.'25$this->source); })()), "html"nulltrue);
  209.             echo "\">
  210.                     ";
  211.         } else {
  212.             // line 27
  213.             echo "                        <meta name=\"robots\" content= \"";
  214.             if ((twig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "metaindex", [], "any"falsefalsefalse27) == 1)) {
  215.                 echo "INDEX";
  216.             } else {
  217.                 echo "NOINDEX";
  218.             }
  219.             echo " , ";
  220.             if ((twig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "metafollow", [], "any"falsefalsefalse27) == 1)) {
  221.                 echo "FOLLOW";
  222.             } else {
  223.                 echo "NOFOLLOW";
  224.             }
  225.             echo "\"> 
  226.                 ";
  227.         }
  228.         // line 29
  229.         echo "
  230.                 ";
  231.         // line 30
  232.         $context["currentPath"] = "/";
  233.         // line 31
  234.         echo "
  235.                 ";
  236.         // line 32
  237.         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"falsetruefalse32), "attributes", [], "any"falsetruefalse32), "get", [=> "_route_params"], "method"falsetruefalse32), "slug", [], "array"truetruefalse32) && (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.'32$this->source); })()), "request", [], "any"falsefalsefalse32), "attributes", [], "any"falsefalsefalse32), "get", [=> "_route_params"], "method"falsefalsefalse32), "slug", [], "array"falsefalsefalse32) == "home"))) {
  238.             // line 33
  239.             echo "                    <link href=\"";
  240.             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.'33$this->source); })()), "request", [], "any"falsefalsefalse33), "schemeAndHttpHost", [], "any"falsefalsefalse33), "html"nulltrue);
  241.             echo "\" rel=\"canonical\"/>
  242.                 ";
  243.         } else {
  244.             // line 35
  245.             echo "                    ";
  246.             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.'35$this->source); })()) != null))) {
  247.                 // line 36
  248.                 echo "                        <link href=\"";
  249.                 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.'36$this->source); })()), "request", [], "any"falsefalsefalse36), "schemeAndHttpHost", [], "any"falsefalsefalse36) . (isset($context["canonical"]) || array_key_exists("canonical"$context) ? $context["canonical"] : (function () { throw new RuntimeError('Variable "canonical" does not exist.'36$this->source); })())), "html"nulltrue);
  250.                 echo "\" rel=\"canonical\"/>
  251.                     ";
  252.             } else {
  253.                 // line 38
  254.                 echo "                        <link href=\"";
  255.                 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.'38$this->source); })()), "request", [], "any"falsefalsefalse38), "uri", [], "any"falsefalsefalse38), "html"nulltrue);
  256.                 echo "\" rel=\"canonical\" />
  257.                     ";
  258.             }
  259.             // line 39
  260.             echo 
  261.                 ";
  262.         }
  263.         // line 41
  264.         echo "             
  265.                 ";
  266.         // line 44
  267.         echo "                ";
  268.         // line 49
  269.         echo "
  270.                 ";
  271.         // line 50
  272.         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.'50$this->source); })()) != null))) {
  273.             // line 51
  274.             echo "                    ";
  275.             echo (isset($context["custom_schemaOrg"]) || array_key_exists("custom_schemaOrg"$context) ? $context["custom_schemaOrg"] : (function () { throw new RuntimeError('Variable "custom_schemaOrg" does not exist.'51$this->source); })());
  276.             echo "
  277.                 ";
  278.         }
  279.         // line 53
  280.         echo "                
  281.                 ";
  282.         // line 55
  283.         if (array_key_exists("schemaOrg"$context)) {
  284.             // line 56
  285.             echo "                     ";
  286.             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.'56$this->source); })()), ["\\" => "/"]), ["//" => "/"]);
  287.             echo "
  288.                 ";
  289.         }
  290.         // line 58
  291.         echo "
  292.                 ";
  293.         // line 59
  294.         if (array_key_exists("schema_breadcrumb"$context)) {
  295.             // line 60
  296.             echo "                    ";
  297.             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.'60$this->source); })()), ["\\" => "/"]), ["//" => "/"]);
  298.             echo "
  299.                 ";
  300.         }
  301.         // line 62
  302.         echo "        ";
  303.         
  304.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  305.         
  306.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  307.     }
  308.     // line 74
  309.     public function block_preload($context, array $blocks = [])
  310.     {
  311.         $macros $this->macros;
  312.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  313.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""preload"));
  314.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  315.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""preload"));
  316.         
  317.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  318.         
  319.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  320.     }
  321.     // line 77
  322.     public function block_stylesheets($context, array $blocks = [])
  323.     {
  324.         $macros $this->macros;
  325.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  326.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  327.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  328.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  329.         // line 78
  330.         echo "        ";
  331.         // line 79
  332.         echo "            <style>
  333.                 ";
  334.         // line 80
  335.         echo twig_source($this->env, (("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.'80$this->source); })()), "request", [], "any"falsefalsefalse80), "server", [], "any"falsefalsefalse80), "get", [=> "APP_THEME"], "method"falsefalsefalse80)) . "/assets/css/_fonts.css"));
  336.         echo "
  337.                 ";
  338.         // line 81
  339.         echo twig_source($this->env, (("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.'81$this->source); })()), "request", [], "any"falsefalsefalse81), "server", [], "any"falsefalsefalse81), "get", [=> "APP_THEME"], "method"falsefalsefalse81)) . "/assets/css/_variables.min.css"));
  340.         echo "
  341.                 ";
  342.         // line 83
  343.         echo "                ";
  344.         $context['_parent'] = $context;
  345.         $context['_seq'] = twig_ensure_traversable($this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->getWebpackCssFiles("app-theme"));
  346.         foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
  347.             // line 84
  348.             echo "                    ";
  349.             echo twig_source($this->env, ("@PUBLIC" $context["file"]));
  350.             echo "
  351.                 ";
  352.         }
  353.         $_parent $context['_parent'];
  354.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']);
  355.         $context array_intersect_key($context$_parent) + $_parent;
  356.         // line 86
  357.         echo "
  358.                 ";
  359.         // line 87
  360.         echo twig_source($this->env, (("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.'87$this->source); })()), "request", [], "any"falsefalsefalse87), "server", [], "any"falsefalsefalse87), "get", [=> "APP_THEME"], "method"falsefalsefalse87)) . "/assets/css/style.min.css"));
  361.         echo "
  362.             </style>
  363.         ";
  364.         
  365.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  366.         
  367.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  368.     }
  369.     // line 98
  370.     public function block_navbar($context, array $blocks = [])
  371.     {
  372.         $macros $this->macros;
  373.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  374.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  375.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  376.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  377.         // line 99
  378.         echo "            ";
  379.         $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.'99$this->source); })()), "request", [], "any"falsefalsefalse99), "attributes", [], "any"falsefalsefalse99), "get", [=> "_route"], "method"falsefalsefalse99) == "index_page_home")) ? ("home_page") : (""));
  380.         // line 100
  381.         echo "            ";
  382.         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.'100$this->source); })())]));
  383.         echo 
  384.         ";
  385.         
  386.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  387.         
  388.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  389.     }
  390.     // line 105
  391.     public function block_body($context, array $blocks = [])
  392.     {
  393.         $macros $this->macros;
  394.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  395.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  396.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  397.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  398.         
  399.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  400.         
  401.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  402.     }
  403.     // line 126
  404.     public function block_footer($context, array $blocks = [])
  405.     {
  406.         $macros $this->macros;
  407.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  408.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  409.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  410.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  411.         // line 127
  412.         echo "            ";
  413.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderFooter", ["TypeMenu" => "Footer"]));
  414.         echo "
  415.         ";
  416.         
  417.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  418.         
  419.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  420.     }
  421.     // line 130
  422.     public function block_javascripts($context, array $blocks = [])
  423.     {
  424.         $macros $this->macros;
  425.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  426.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  427.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  428.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  429.         // line 131
  430.         echo "
  431.             <script src=\"";
  432.         // line 132
  433.         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);
  434.         echo "\" ></script>
  435.             <script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js\" async></script>
  436.             ";
  437.         // line 135
  438.         echo "            ";
  439.         // line 136
  440.         echo "            <script src=\"";
  441.         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);
  442.         echo "\"></script>
  443.             ";
  444.         // line 140
  445.         echo "            ";
  446.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app-theme");
  447.         echo 
  448.     
  449.             <script>
  450.                     function openSearch() {
  451.                         document.getElementById(\"myOverlay\").style.display = \"block\";
  452.                         setTimeout(function() {
  453.                             document.getElementById(\"myOverlay\").style.opacity = \"1\";
  454.                         }, 2); 
  455.                     
  456.                     }
  457.                     function closeSearch() {
  458.                         document.getElementById(\"myOverlay\").style.display = \"none\";
  459.                         setTimeout(function() {
  460.                             document.getElementById(\"myOverlay\").style.opacity = \"0\";
  461.                         }, 2); 
  462.                     }
  463.                   // new WOW().init();
  464.                    (function () {
  465.                         'use strict'
  466.                         // Fetch all the forms we want to apply custom Bootstrap validation styles to
  467.                         var forms = document.querySelectorAll('.needs-validation')
  468.                         // Loop over them and prevent submission
  469.                         Array.prototype.slice.call(forms)
  470.                             .forEach(function (form) {
  471.                             form.addEventListener('submit', function (event) {
  472.                                 form.classList.add('was-validated')
  473.                                 if (!form.checkValidity()) {
  474.                                     event.preventDefault()
  475.                                     event.stopPropagation()
  476.                                     return false;
  477.                                 }
  478.                                 event.preventDefault();
  479.                                 \$(form).find('button[type=\"submit\"]').attr('disabled','true');
  480.                                 grecaptcha.execute('";
  481.         // line 178
  482.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "clekey", [], "any"falsefalsefalse178), "html"nulltrue);
  483.         echo "', {action: 'create_comment'}).then(token => {
  484.                                     \$(form).find('[name=g-recaptcha-response]').val(token);
  485.                                     form.submit();
  486.                                 });
  487.                             }, false)
  488.                             })
  489.                     })()  
  490.                     function reCaptchaOnFocus() {
  491.                         var head = document.getElementsByTagName('head')[0]
  492.                         var script = document.createElement('script')
  493.                         script.type = 'text/javascript';
  494.                         script.src = 'https://www.google.com/recaptcha/api.js?render=";
  495.         // line 190
  496.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "clekey", [], "any"falsefalsefalse190), "html"nulltrue);
  497.         echo "'
  498.                         head.appendChild(script);
  499.                     };  
  500.                     if(document.getElementsByClassName('form-recap')){
  501.                         for (let i = 0; i < document.getElementsByClassName('form-recap').length; i++) {
  502.                             document.getElementsByClassName('form-recap')[i].addEventListener('focus', (event) => {
  503.                                 reCaptchaOnFocus()
  504.                             }, true);
  505.                         }
  506.                     }
  507.             </script>
  508.             <script>
  509.                 \$(document).ready(function(){
  510.                     /* const elems = document.querySelectorAll('.datepicker_input');
  511.                     for (const elem of elems) {
  512.                         const datepicker = new Datepicker(elem, {
  513.                             'format': 'dd/mm/yyyy',
  514.                             'language' : 'fr',
  515.                            // title: getDatePickerTitle(elem)
  516.                         });
  517.                     } */
  518.              
  519.                     \$(window).on(\"scroll\", function () {
  520.                         if (\$(this).scrollTop() > \$(window).height() / 2) {
  521.                             \$(\".scroll-to-top\").fadeIn();
  522.                         } else {
  523.                              \$(\".scroll-to-top\").fadeOut();
  524.                         }
  525.                     });
  526.                     \$('.header-savoir-plus').on(\"click\", function () {
  527.                         \$(\"html, body\").animate({ scrollTop: \$('#bloc-content').offset().top - 100 }, \"slow\" );
  528.                         return false;
  529.                     });
  530.                     \$(\".scroll-to-top\").on(\"click\", function () {
  531.                         \$(\"html, body\").animate({ scrollTop: 0 }, 500);
  532.                         return false;
  533.                     });
  534.                     \$('input[name=\"prestation[]\"]').change(function(){
  535.                         if(this.hasAttribute('checked')){
  536.                             \$(this).attr('checked',false);
  537.                         }else{
  538.                             \$(this).attr('checked',true);
  539.                         }
  540.                         \$.each(\$(\"input[name='prestation[]']\"), function () {
  541.                             if (this.value == 'Autre' && this.hasAttribute('checked')) {
  542.                                 \$('.autre_prestation').removeClass('d-none');
  543.                                 \$('input[name=\"autre_prestation\"]').attr('required',true);
  544.                             }else{
  545.                                 \$('.autre_prestation').addClass('d-none');
  546.                                 \$('input[name=\"autre_prestation\"]').attr('required',false);
  547.                             }
  548.                         });
  549.                     
  550.                     });
  551.                     \$('input[name=\"vous_etes\"]').change(function(){
  552.                         if (this.value == 'Autre') {
  553.                             \$('.autre_coordonne').removeClass('d-none');
  554.                             \$('input[name=\"autre_coordonne\"]').attr('required',true);
  555.                         }else{
  556.                             \$('.autre_coordonne').addClass('d-none');
  557.                             \$('input[name=\"autre_coordonne\"]').attr('required',false);
  558.                         }
  559.                     });
  560.                 });
  561.             </script>
  562.             
  563.             ";
  564.         // line 268
  565.         if (($this->extensions['App\Twig\FunctionExtension']->parametreProduits() && twig_get_attribute($this->env$this->source$this->extensions['App\Twig\FunctionExtension']->parametreProduits(), "actifpanier", [], "any"falsefalsefalse268))) {
  566.             // line 269
  567.             echo "                <script>
  568.                     // Fonction pour mettre à jour le panier côté client
  569.                     function updatePanier(panier) {
  570.                         \$.ajax({
  571.                             url: '";
  572.             // line 273
  573.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart_content");
  574.             echo "',
  575.                             type: 'GET',
  576.                             success: function(response) {
  577.                                 var panier = response.panier;
  578.                                 var commandeDiv = \$('.commande_div');
  579.                                 commandeDiv.empty();
  580.                                 var commandeTable = \$('.table-panier tbody');
  581.                                 if(commandeTable.length){
  582.                                     commandeTable.empty();
  583.                                 }
  584.                                 var total = 0;
  585.                                 \$('#nb_span').text(Object.keys(panier).length);
  586.                                 for (var key in panier) {
  587.                                     if (panier.hasOwnProperty(key)) {
  588.                                         var item = panier[key];
  589.                                         var id = item['product'].id;
  590.                                         var name = item['product'].title;
  591.                                         var prix = item['product'].prix_produit;
  592.                                         var qte = item.qte;
  593.                                         var nameDiv = \$('<div>', { class: 'name_div', 'data-id': id });
  594.                                         var nameSpan = \$('<span>', { class: 'name_span' }).text(name);
  595.                                         var content_prix = prix ? ' - '+prix+' €' : ''
  596.                                         var condSpan = \$('<span>', { class: 'cond_span' }).text(content_prix);
  597.                                         var qteSpan = \$('<span>', { class: 'qte_span' }).text(' - ' + qte);
  598.                                         total +=  prix * qte;
  599.                                         var viderLink = \$('<button>', { class: 'vider_selection_prod cart-remove', 'data-qte': qte, 'data-id-produit': id }).html('<i class=\"fa fa-trash-o\"></i>');
  600.                                         var clearDiv = \$('<div>', { class: 'clear' });
  601.                                         nameSpan.append(condSpan);
  602.                                         nameDiv.append(nameSpan, qteSpan, viderLink, clearDiv);
  603.                                         commandeDiv.append(nameDiv);
  604.                                         if(commandeTable.length){
  605.                                             
  606.                                             var inputQte = \$('<input>', { class: 'form-control input-qte', 'type': 'number', 'value': qte,'name': 'qte','id': 'qte','min': '0','max': '1000', 'data-id-produit': id });
  607.                                             var btnQteUpdate = \$('<button>', { class: 'btn-update-qte disabled', 'disabled' : '' }).html('Modifier');
  608.                                             var nameTr = \$('<tr>', { class: 'name_div', 'data-id': id });
  609.                                             var nameTd = \$('<td>', { class: 'name_span' }).text(name);
  610.                                             var qteTd = \$('<td>', { class: 'qte_span' }).append(inputQte,btnQteUpdate);
  611.                                             var prixTd = \$('<td>', { class: 'cond_span' }).text(prix);
  612.                                             var viderLinkTd = \$('<button>', { class: 'vider_selection_prod cart-remove float-none', 'data-qte': qte, 'data-id-produit': id }).html('<i class=\"fa fa-trash-o\"></i>');
  613.                                             var actionsTd = \$('<td>', { class: 'actions' }).append(viderLinkTd);
  614.                                             nameTr.append(nameTd, qteTd,prixTd, actionsTd);
  615.                                             commandeTable.append(nameTr);
  616.                                         }
  617.                                     }
  618.                                 }
  619.                                 var totalTr = \$('<tr>', { class: 'total' });
  620.                                 var totalTd1 = \$('<td>', { class: 'text-right' , 'colspan' : '2' }).html('<strong>Total(€) :</strong>');
  621.                                 var totalTd2 = \$('<td>', { class: 'total-prix' }).html('<strong>'+ total +'</strong>');
  622.                                 totalTr.append(totalTd1,totalTd2);
  623.                                 if(commandeTable.length){
  624.                                     commandeTable.append(totalTr);
  625.                                 }
  626.                             },
  627.                             error: function(xhr, status, error) {
  628.                                 console.log(error);
  629.                             }
  630.                         });
  631.                     }
  632.                     function removeFromCart(id_produit){
  633.                                 \$.ajax({
  634.                                     url: '/panier/remove/'+escape(id_produit),
  635.                                     type: 'POST',
  636.                                     dataType: 'JSON',
  637.                                     success: function(response) {
  638.                                         var panier = response;
  639.                                         updatePanier(panier);
  640.                                     },
  641.                                     error: function(xhr, status, error) {
  642.                                         console.log(error); // Affichez l'erreur pour le débogage
  643.                                     }
  644.                                 });
  645.                             
  646.                     }
  647.                     function updateQtePanier(id_produit,qte){
  648.                         
  649.                         \$.ajax({
  650.                             url: '/panier/update/'+escape(id_produit)+'/'+escape(qte),
  651.                             type: 'POST',
  652.                             dataType: 'JSON',
  653.                             success: function(response) {
  654.                                 var panier = response.panier;
  655.                                 updatePanier(panier);
  656.                             },
  657.                             error: function(xhr, status, error) {
  658.                                 console.log(error); // Affichez l'erreur pour le débogage
  659.                             }
  660.                         });
  661.                     }
  662.                     
  663.                     \$(document).ready(function() {
  664.                         
  665.                         \$(document).on('click', '.cart-remove', function() {
  666.                             var id_produit = \$(this).data('id-produit');
  667.                             removeFromCart(id_produit);
  668.                         });
  669.                         \$(document).on('change', '.input-qte', function() {
  670.                             \$(this).closest('tr.name_div').find('.btn-update-qte').removeClass('disabled');
  671.                             \$(this).closest('tr.name_div').find('.btn-update-qte').removeAttr('disabled');
  672.                         });
  673.                         \$(document).on('click', '.btn-update-qte', function() {
  674.                             var productId = \$(this).closest('tr.name_div').data('id');
  675.                             var qte = \$(this).closest('tr.name_div').find('input.input-qte').val();
  676.                             updateQtePanier(productId,qte);
  677.                         });
  678.                     });
  679.                 </script>
  680.             ";
  681.         }
  682.         // line 401
  683.         echo "
  684.             ";
  685.         // line 402
  686.         if (($this->extensions['App\Twig\ParametreSiteExtension']->CookiesFunction() != null)) {
  687.             // line 403
  688.             echo "                  ";
  689.             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.'403$this->source); })()), "request", [], "any"falsefalsefalse403), "server", [], "any"falsefalsefalse403), "get", [=> "APP_THEME"], "method"falsefalsefalse403)) . "/cookies/cookie.html.twig"), [], false);
  690.             echo "
  691.             ";
  692.         }
  693.         // line 405
  694.         echo "            <script>
  695.                 ";
  696.         // line 406
  697.         echo twig_source($this->env, (("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.'406$this->source); })()), "request", [], "any"falsefalsefalse406), "server", [], "any"falsefalsefalse406), "get", [=> "APP_THEME"], "method"falsefalsefalse406)) . "/assets/js/script.js"));
  698.         echo "
  699.             </script>
  700.         ";
  701.         
  702.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  703.         
  704.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  705.     }
  706.     public function getTemplateName()
  707.     {
  708.         return "front/theme1/base.html.twig";
  709.     }
  710.     public function isTraitable()
  711.     {
  712.         return false;
  713.     }
  714.     public function getDebugInfo()
  715.     {
  716.         return array (  792 => 406,  789 => 405,  783 => 403,  781 => 402,  778 => 401,  647 => 273,  641 => 269,  639 => 268,  558 => 190,  543 => 178,  501 => 140,  495 => 136,  493 => 135,  488 => 132,  485 => 131,  475 => 130,  462 => 127,  452 => 126,  434 => 105,  421 => 100,  418 => 99,  408 => 98,  395 => 87,  392 => 86,  383 => 84,  378 => 83,  374 => 81,  370 => 80,  367 => 79,  365 => 78,  355 => 77,  337 => 74,  327 => 62,  321 => 60,  319 => 59,  316 => 58,  310 => 56,  308 => 55,  304 => 53,  298 => 51,  296 => 50,  293 => 49,  291 => 44,  287 => 41,  283 => 39,  277 => 38,  271 => 36,  268 => 35,  262 => 33,  260 => 32,  257 => 31,  255 => 30,  252 => 29,  236 => 27,  230 => 25,  227 => 24,  217 => 23,  207 => 413,  205 => 92,  199 => 409,  197 => 130,  194 => 129,  192 => 126,  187 => 124,  173 => 113,  163 => 108,  157 => 105,  151 => 104,  147 => 102,  145 => 98,  142 => 97,  136 => 95,  134 => 94,  127 => 93,  125 => 92,  121 => 90,  119 => 77,  115 => 75,  113 => 74,  108 => 71,  102 => 69,  100 => 68,  97 => 67,  91 => 65,  89 => 64,  86 => 63,  84 => 23,  79 => 20,  77 => 19,  74 => 17,  66 => 12,  61 => 10,  53 => 2,  50 => 1,);
  717.     }
  718.     public function getSourceContext()
  719.     {
  720.         return new Source("<!doctype html>
  721. <html lang=\"{{ app.request.locale }}\">
  722.     <head>
  723.         <meta charset=\"utf-8\" />
  724.         <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  725.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  726.         {# <link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"{{asset('public/favicon/apple-touch-icon.png')}}\">
  727.         <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"{{asset('public/favicon/favicon-32x32.png')}}\">
  728.         <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"{{asset('public/favicon/favicon-16x16.png')}}\"> #}
  729.         <link rel=\"icon\" type=\"image/x-icon\" href=\"{{ asset('public/favicon/favicon.ico') }}\" />
  730.         {# <link rel=\"manifest\" href=\"{{asset('public/favicon/site.webmanifest')}}\"> #}
  731.         {{ leogout_seo() }} 
  732.         <link rel=\"preconnect\" href=\"https://code.jquery.com\" crossorigin>
  733.         <link rel=\"preconnect\" href=\"https://apps.elfsight.com\" crossorigin>
  734.         {# <link rel=\"preconnect\" href=\"https://matomo.hrz.fr/\" crossorigin> #}
  735.         
  736.         {# {% include 'front/preload_fonts.html.twig' %} #}
  737.         {# <link href=\"https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.1.4/dist/css/datepicker.min.css\" rel=\"stylesheet\"> #}
  738.   
  739.         
  740.         {% block metaTag %}
  741.                 {% if meta_robots is defined and meta_robots is not empty %}
  742.                         <meta name=\"robots\" content=\"{{meta_robots}}\">
  743.                     {% else %}
  744.                         <meta name=\"robots\" content= \"{% if ParametreSite().metaindex == 1 %}INDEX{% else %}NOINDEX{% endif %} , {% if ParametreSite().metafollow == 1 %}FOLLOW{% else %}NOFOLLOW{% endif %}\"> 
  745.                 {% endif %}
  746.                 {% set currentPath = '/' %}
  747.                 {% if app.request.attributes.get('_route_params')['slug'] is defined and app.request.attributes.get('_route_params')['slug'] == 'home' %}
  748.                     <link href=\"{{app.request.schemeAndHttpHost}}\" rel=\"canonical\"/>
  749.                 {% else %}
  750.                     {% if canonical is defined and canonical != null  %}
  751.                         <link href=\"{{app.request.schemeAndHttpHost ~ canonical}}\" rel=\"canonical\"/>
  752.                     {% else %}
  753.                         <link href=\"{{app.request.uri}}\" rel=\"canonical\" />
  754.                     {% endif %} 
  755.                 {% endif %}
  756.              
  757.                 {# <link rel=\"alternate\" hreflang=\"x-default\" href=\"{{app.request.schemeAndHttpHost ~ currentPath}}\" />  #}
  758.                 {# {% if ActifLanguage() %}
  759.                     {% for item in ActifLanguage() %}
  760.                         <link rel=\"alternate\" hreflang=\"{{item.languagecode}}\" href=\"{{app.request.schemeAndHttpHost ~ currentPath}}\"/>
  761.                     {% endfor %}
  762.                 {% endif %} #}
  763.                 {% if custom_schemaOrg is defined and custom_schemaOrg != null  %}
  764.                     {{custom_schemaOrg|raw}}
  765.                 {% endif %}
  766.                 
  767.                 {% if schemaOrg is defined %}
  768.                      {{schemaOrg|replace({\"\\\\\": \"/\"})|replace({\"//\": \"/\"})|raw}}
  769.                 {% endif %}
  770.                 {% if schema_breadcrumb is defined %}
  771.                     {{schema_breadcrumb|replace({\"\\\\\": \"/\"})|replace({\"//\": \"/\"})|raw}}
  772.                 {% endif %}
  773.         {% endblock %}
  774.         {% if ParametreSite().googleverification and ParametreSite().googleverification is not empty %}
  775.                 <meta name=\"google-site-verification\" content=\"{{ParametreSite().googleverification|raw}}\" />
  776.         {% endif %}
  777.         {% if ParametreSite().codehead and ParametreSite().codehead is not empty %}
  778.             {{ParametreSite().codehead|raw}}
  779.         {% endif %}
  780.        
  781.         {% block preload %}{% endblock %}
  782.         {% block stylesheets %}
  783.         {#  {{ encore_entry_link_tags('app-theme') }} #}
  784.             <style>
  785.                 {{ source ('front/'~ app.request.server.get('APP_THEME') ~'/assets/css/_fonts.css')}}
  786.                 {{ source ('front/'~ app.request.server.get('APP_THEME') ~'/assets/css/_variables.min.css')}}
  787.                 {# {% include 'front/config_theme.html.twig' %} #}
  788.                 {% for file in encore_entry_css_files('app-theme') %}
  789.                     {{ source('@PUBLIC' ~ file) }}
  790.                 {% endfor %}
  791.                 {{ source ('front/'~ app.request.server.get('APP_THEME') ~'/assets/css/style.min.css')}}
  792.             </style>
  793.         {% endblock %}
  794.         
  795.     </head>
  796.     {% apply spaceless %}
  797.     <body {% if app.request.attributes.get('_route') is null %}class=\"page-404\"{% endif %}>
  798.         {% if ParametreSite().codebody and ParametreSite().codebody is not empty %}
  799.             {{ParametreSite().codebody|raw}}
  800.         {% endif %}
  801.         {% block navbar %}
  802.             {% set className = app.request.attributes.get('_route') == 'index_page_home'?'home_page':'' %}
  803.             {{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderMenu',{'className': className })) }} 
  804.         {% endblock %}
  805.         <main class=\"{{app.request.attributes.get('_route') == 'index_page_home'?'home_page':''}} {{custom_class_page()!= null?custom_class_page():''}}\">
  806.           {% block body %}{% endblock %} 
  807.         </main>
  808.         <a href=\"javascript:void(0);\" class=\"scroll-to-top\" title=\"{{ 'label.haut'|trans({} , 'textes' ) }}\" style=\"display: none;\"><span>{{ 'label.haut'|trans({} , 'textes' ) }}</span></a>
  809.         <div id=\"myOverlay\" class=\"overlay\">
  810.             <span class=\"closebtn\" onclick=\"closeSearch()\" title=\"Close Overlay\">×</span>
  811.             <div class=\"overlay-content\">
  812.                 <form action=\"{{path('page_search')}}\" method=\"GET\">
  813.                     <div class=\"position-relative w-100\">
  814.                         <input type=\"text\" placeholder=\"Rechercher...\" name=\"search\" class=\"resRecord\" required>
  815.                         <div id=\"recButton\" class=\"w-md waves-effect waves-light\"><i class=\"fa fa-microphone\"></i></div>
  816.                     </div>
  817.                    <button type=\"submit\"><i class=\"fa fa-search\"></i></button>
  818.                 </form>
  819.             </div>
  820.         </div>
  821.   
  822.         {{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderDefaultBloc')) }}
  823.         {% block footer %}
  824.             {{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderFooter',{ 'TypeMenu': 'Footer' })) }}
  825.         {% endblock %}
  826.         {% block javascripts %}
  827.             <script src=\"{{asset('templates/front/theme1/assets/js/jquery-3.6.0.min.js')}}\" ></script>
  828.             <script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js\" async></script>
  829.             {# <script src=\"{{asset('templates/front/theme1/assets/plugins/wow-animate/js/wow.min.js')}}\"></script> #}
  830.             {# <script src=\"{{asset('templates/front/theme1/assets/plugins/galerie-isotope-wow/js/isotope.pkgd.min.js')}}\"></script> #}
  831.             <script src=\"{{asset('templates/front/theme1/assets/plugins/galerie-isotope-wow/js/plugins.js')}}\"></script>
  832.             {# <script src=\"https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.1.4/dist/js/datepicker-full.min.js\"></script>
  833.             <script src=\"https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.2.0/dist/js/locales/fr.js\"></script> #}
  834.             {{ encore_entry_script_tags('app-theme') }} 
  835.     
  836.             <script>
  837.                     function openSearch() {
  838.                         document.getElementById(\"myOverlay\").style.display = \"block\";
  839.                         setTimeout(function() {
  840.                             document.getElementById(\"myOverlay\").style.opacity = \"1\";
  841.                         }, 2); 
  842.                     
  843.                     }
  844.                     function closeSearch() {
  845.                         document.getElementById(\"myOverlay\").style.display = \"none\";
  846.                         setTimeout(function() {
  847.                             document.getElementById(\"myOverlay\").style.opacity = \"0\";
  848.                         }, 2); 
  849.                     }
  850.                   // new WOW().init();
  851.                    (function () {
  852.                         'use strict'
  853.                         // Fetch all the forms we want to apply custom Bootstrap validation styles to
  854.                         var forms = document.querySelectorAll('.needs-validation')
  855.                         // Loop over them and prevent submission
  856.                         Array.prototype.slice.call(forms)
  857.                             .forEach(function (form) {
  858.                             form.addEventListener('submit', function (event) {
  859.                                 form.classList.add('was-validated')
  860.                                 if (!form.checkValidity()) {
  861.                                     event.preventDefault()
  862.                                     event.stopPropagation()
  863.                                     return false;
  864.                                 }
  865.                                 event.preventDefault();
  866.                                 \$(form).find('button[type=\"submit\"]').attr('disabled','true');
  867.                                 grecaptcha.execute('{{ParametreSite().clekey}}', {action: 'create_comment'}).then(token => {
  868.                                     \$(form).find('[name=g-recaptcha-response]').val(token);
  869.                                     form.submit();
  870.                                 });
  871.                             }, false)
  872.                             })
  873.                     })()  
  874.                     function reCaptchaOnFocus() {
  875.                         var head = document.getElementsByTagName('head')[0]
  876.                         var script = document.createElement('script')
  877.                         script.type = 'text/javascript';
  878.                         script.src = 'https://www.google.com/recaptcha/api.js?render={{ParametreSite().clekey}}'
  879.                         head.appendChild(script);
  880.                     };  
  881.                     if(document.getElementsByClassName('form-recap')){
  882.                         for (let i = 0; i < document.getElementsByClassName('form-recap').length; i++) {
  883.                             document.getElementsByClassName('form-recap')[i].addEventListener('focus', (event) => {
  884.                                 reCaptchaOnFocus()
  885.                             }, true);
  886.                         }
  887.                     }
  888.             </script>
  889.             <script>
  890.                 \$(document).ready(function(){
  891.                     /* const elems = document.querySelectorAll('.datepicker_input');
  892.                     for (const elem of elems) {
  893.                         const datepicker = new Datepicker(elem, {
  894.                             'format': 'dd/mm/yyyy',
  895.                             'language' : 'fr',
  896.                            // title: getDatePickerTitle(elem)
  897.                         });
  898.                     } */
  899.              
  900.                     \$(window).on(\"scroll\", function () {
  901.                         if (\$(this).scrollTop() > \$(window).height() / 2) {
  902.                             \$(\".scroll-to-top\").fadeIn();
  903.                         } else {
  904.                              \$(\".scroll-to-top\").fadeOut();
  905.                         }
  906.                     });
  907.                     \$('.header-savoir-plus').on(\"click\", function () {
  908.                         \$(\"html, body\").animate({ scrollTop: \$('#bloc-content').offset().top - 100 }, \"slow\" );
  909.                         return false;
  910.                     });
  911.                     \$(\".scroll-to-top\").on(\"click\", function () {
  912.                         \$(\"html, body\").animate({ scrollTop: 0 }, 500);
  913.                         return false;
  914.                     });
  915.                     \$('input[name=\"prestation[]\"]').change(function(){
  916.                         if(this.hasAttribute('checked')){
  917.                             \$(this).attr('checked',false);
  918.                         }else{
  919.                             \$(this).attr('checked',true);
  920.                         }
  921.                         \$.each(\$(\"input[name='prestation[]']\"), function () {
  922.                             if (this.value == 'Autre' && this.hasAttribute('checked')) {
  923.                                 \$('.autre_prestation').removeClass('d-none');
  924.                                 \$('input[name=\"autre_prestation\"]').attr('required',true);
  925.                             }else{
  926.                                 \$('.autre_prestation').addClass('d-none');
  927.                                 \$('input[name=\"autre_prestation\"]').attr('required',false);
  928.                             }
  929.                         });
  930.                     
  931.                     });
  932.                     \$('input[name=\"vous_etes\"]').change(function(){
  933.                         if (this.value == 'Autre') {
  934.                             \$('.autre_coordonne').removeClass('d-none');
  935.                             \$('input[name=\"autre_coordonne\"]').attr('required',true);
  936.                         }else{
  937.                             \$('.autre_coordonne').addClass('d-none');
  938.                             \$('input[name=\"autre_coordonne\"]').attr('required',false);
  939.                         }
  940.                     });
  941.                 });
  942.             </script>
  943.             
  944.             {% if parametreProduits() and parametreProduits().actifpanier %}
  945.                 <script>
  946.                     // Fonction pour mettre à jour le panier côté client
  947.                     function updatePanier(panier) {
  948.                         \$.ajax({
  949.                             url: '{{ path('cart_content') }}',
  950.                             type: 'GET',
  951.                             success: function(response) {
  952.                                 var panier = response.panier;
  953.                                 var commandeDiv = \$('.commande_div');
  954.                                 commandeDiv.empty();
  955.                                 var commandeTable = \$('.table-panier tbody');
  956.                                 if(commandeTable.length){
  957.                                     commandeTable.empty();
  958.                                 }
  959.                                 var total = 0;
  960.                                 \$('#nb_span').text(Object.keys(panier).length);
  961.                                 for (var key in panier) {
  962.                                     if (panier.hasOwnProperty(key)) {
  963.                                         var item = panier[key];
  964.                                         var id = item['product'].id;
  965.                                         var name = item['product'].title;
  966.                                         var prix = item['product'].prix_produit;
  967.                                         var qte = item.qte;
  968.                                         var nameDiv = \$('<div>', { class: 'name_div', 'data-id': id });
  969.                                         var nameSpan = \$('<span>', { class: 'name_span' }).text(name);
  970.                                         var content_prix = prix ? ' - '+prix+' €' : ''
  971.                                         var condSpan = \$('<span>', { class: 'cond_span' }).text(content_prix);
  972.                                         var qteSpan = \$('<span>', { class: 'qte_span' }).text(' - ' + qte);
  973.                                         total +=  prix * qte;
  974.                                         var viderLink = \$('<button>', { class: 'vider_selection_prod cart-remove', 'data-qte': qte, 'data-id-produit': id }).html('<i class=\"fa fa-trash-o\"></i>');
  975.                                         var clearDiv = \$('<div>', { class: 'clear' });
  976.                                         nameSpan.append(condSpan);
  977.                                         nameDiv.append(nameSpan, qteSpan, viderLink, clearDiv);
  978.                                         commandeDiv.append(nameDiv);
  979.                                         if(commandeTable.length){
  980.                                             
  981.                                             var inputQte = \$('<input>', { class: 'form-control input-qte', 'type': 'number', 'value': qte,'name': 'qte','id': 'qte','min': '0','max': '1000', 'data-id-produit': id });
  982.                                             var btnQteUpdate = \$('<button>', { class: 'btn-update-qte disabled', 'disabled' : '' }).html('Modifier');
  983.                                             var nameTr = \$('<tr>', { class: 'name_div', 'data-id': id });
  984.                                             var nameTd = \$('<td>', { class: 'name_span' }).text(name);
  985.                                             var qteTd = \$('<td>', { class: 'qte_span' }).append(inputQte,btnQteUpdate);
  986.                                             var prixTd = \$('<td>', { class: 'cond_span' }).text(prix);
  987.                                             var viderLinkTd = \$('<button>', { class: 'vider_selection_prod cart-remove float-none', 'data-qte': qte, 'data-id-produit': id }).html('<i class=\"fa fa-trash-o\"></i>');
  988.                                             var actionsTd = \$('<td>', { class: 'actions' }).append(viderLinkTd);
  989.                                             nameTr.append(nameTd, qteTd,prixTd, actionsTd);
  990.                                             commandeTable.append(nameTr);
  991.                                         }
  992.                                     }
  993.                                 }
  994.                                 var totalTr = \$('<tr>', { class: 'total' });
  995.                                 var totalTd1 = \$('<td>', { class: 'text-right' , 'colspan' : '2' }).html('<strong>Total(€) :</strong>');
  996.                                 var totalTd2 = \$('<td>', { class: 'total-prix' }).html('<strong>'+ total +'</strong>');
  997.                                 totalTr.append(totalTd1,totalTd2);
  998.                                 if(commandeTable.length){
  999.                                     commandeTable.append(totalTr);
  1000.                                 }
  1001.                             },
  1002.                             error: function(xhr, status, error) {
  1003.                                 console.log(error);
  1004.                             }
  1005.                         });
  1006.                     }
  1007.                     function removeFromCart(id_produit){
  1008.                                 \$.ajax({
  1009.                                     url: '/panier/remove/'+escape(id_produit),
  1010.                                     type: 'POST',
  1011.                                     dataType: 'JSON',
  1012.                                     success: function(response) {
  1013.                                         var panier = response;
  1014.                                         updatePanier(panier);
  1015.                                     },
  1016.                                     error: function(xhr, status, error) {
  1017.                                         console.log(error); // Affichez l'erreur pour le débogage
  1018.                                     }
  1019.                                 });
  1020.                             
  1021.                     }
  1022.                     function updateQtePanier(id_produit,qte){
  1023.                         
  1024.                         \$.ajax({
  1025.                             url: '/panier/update/'+escape(id_produit)+'/'+escape(qte),
  1026.                             type: 'POST',
  1027.                             dataType: 'JSON',
  1028.                             success: function(response) {
  1029.                                 var panier = response.panier;
  1030.                                 updatePanier(panier);
  1031.                             },
  1032.                             error: function(xhr, status, error) {
  1033.                                 console.log(error); // Affichez l'erreur pour le débogage
  1034.                             }
  1035.                         });
  1036.                     }
  1037.                     
  1038.                     \$(document).ready(function() {
  1039.                         
  1040.                         \$(document).on('click', '.cart-remove', function() {
  1041.                             var id_produit = \$(this).data('id-produit');
  1042.                             removeFromCart(id_produit);
  1043.                         });
  1044.                         \$(document).on('change', '.input-qte', function() {
  1045.                             \$(this).closest('tr.name_div').find('.btn-update-qte').removeClass('disabled');
  1046.                             \$(this).closest('tr.name_div').find('.btn-update-qte').removeAttr('disabled');
  1047.                         });
  1048.                         \$(document).on('click', '.btn-update-qte', function() {
  1049.                             var productId = \$(this).closest('tr.name_div').data('id');
  1050.                             var qte = \$(this).closest('tr.name_div').find('input.input-qte').val();
  1051.                             updateQtePanier(productId,qte);
  1052.                         });
  1053.                     });
  1054.                 </script>
  1055.             {% endif %}
  1056.             {% if Cookies() != null %}
  1057.                   {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/cookies/cookie.html.twig',{}, with_context = false)}}
  1058.             {% endif %}
  1059.             <script>
  1060.                 {{ source ('front/'~ app.request.server.get('APP_THEME') ~'/assets/js/script.js')}}
  1061.             </script>
  1062.         {% endblock %} 
  1063.     </body>
  1064.     {% endapply %}
  1065. </html>""front/theme1/base.html.twig""/var/www/vhosts/hrz.fr/oscar-multilangue.hrz.fr/templates/front/theme1/base.html.twig");
  1066.     }
  1067. }