<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* front/theme1/base.html.twig */
class __TwigTemplate_a92d9e6148ad392cb84cf1062418f7fb0f52136e0413d5485f2c01a74a7a3b2b extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'metaTag' => [$this, 'block_metaTag'],
'preload' => [$this, 'block_preload'],
'stylesheets' => [$this, 'block_stylesheets'],
'navbar' => [$this, 'block_navbar'],
'body' => [$this, 'block_body'],
'footer' => [$this, 'block_footer'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/base.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/base.html.twig"));
// line 1
echo "<!doctype html>
<html lang=\"";
// line 2
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 2), "locale", [], "any", false, false, false, 2), "html", null, true);
echo "\">
<head>
<meta charset=\"utf-8\" />
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
";
// line 10
echo " <link rel=\"icon\" type=\"image/x-icon\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("public/favicon/favicon.ico"), "html", null, true);
echo "\" />
";
// line 12
echo " ";
echo $this->extensions['Leogout\Bundle\SeoBundle\Twig\SeoExtension']->seo();
echo "
<link rel=\"preconnect\" href=\"https://code.jquery.com\" crossorigin>
<link rel=\"preconnect\" href=\"https://apps.elfsight.com\" crossorigin>
";
// line 17
echo "
";
// line 19
echo " ";
// line 20
echo "
";
// line 23
$this->displayBlock('metaTag', $context, $blocks);
// line 63
echo "
";
// line 64
if ((twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "googleverification", [], "any", false, false, false, 64) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "googleverification", [], "any", false, false, false, 64)))) {
// line 65
echo " <meta name=\"google-site-verification\" content=\"";
echo twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "googleverification", [], "any", false, false, false, 65);
echo "\" />
";
}
// line 67
echo "
";
// line 68
if ((twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "codehead", [], "any", false, false, false, 68) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "codehead", [], "any", false, false, false, 68)))) {
// line 69
echo " ";
echo twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "codehead", [], "any", false, false, false, 69);
echo "
";
}
// line 71
echo "
";
// line 74
$this->displayBlock('preload', $context, $blocks);
// line 75
echo "
";
// line 77
$this->displayBlock('stylesheets', $context, $blocks);
// line 90
echo "
</head>
";
// line 92
ob_start();
// line 93
echo " <body ";
if ((null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 93), "attributes", [], "any", false, false, false, 93), "get", [0 => "_route"], "method", false, false, false, 93))) {
echo "class=\"page-404\"";
}
echo ">
";
// line 94
if ((twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "codebody", [], "any", false, false, false, 94) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "codebody", [], "any", false, false, false, 94)))) {
// line 95
echo " ";
echo twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "codebody", [], "any", false, false, false, 95);
echo "
";
}
// line 97
echo "
";
// line 98
$this->displayBlock('navbar', $context, $blocks);
// line 102
echo "
<main class=\"";
// line 104
echo (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 104), "attributes", [], "any", false, false, false, 104), "get", [0 => "_route"], "method", false, false, false, 104) == "index_page_home")) ? ("home_page") : (""));
echo " ";
((($this->extensions['App\Twig\FunctionExtension']->customClassPage() != null)) ? (print (twig_escape_filter($this->env, $this->extensions['App\Twig\FunctionExtension']->customClassPage(), "html", null, true))) : (print ("")));
echo "\">
";
// line 105
$this->displayBlock('body', $context, $blocks);
echo "
</main>
<a href=\"javascript:void(0);\" class=\"scroll-to-top\" title=\"";
// line 108
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.haut", [], "textes"), "html", null, true);
echo "\" style=\"display: none;\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.haut", [], "textes"), "html", null, true);
echo "</span></a>
<div id=\"myOverlay\" class=\"overlay\">
<span class=\"closebtn\" onclick=\"closeSearch()\" title=\"Close Overlay\">×</span>
<div class=\"overlay-content\">
<form action=\"";
// line 113
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_search");
echo "\" method=\"GET\">
<div class=\"position-relative w-100\">
<input type=\"text\" placeholder=\"Rechercher...\" name=\"search\" class=\"resRecord\" required>
<div id=\"recButton\" class=\"w-md waves-effect waves-light\"><i class=\"fa fa-microphone\"></i></div>
</div>
<button type=\"submit\"><i class=\"fa fa-search\"></i></button>
</form>
</div>
</div>
";
// line 124
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderDefaultBloc"));
echo "
";
// line 126
$this->displayBlock('footer', $context, $blocks);
// line 129
echo "
";
// line 130
$this->displayBlock('javascripts', $context, $blocks);
// line 409
echo "
</body>
";
$___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 92
echo twig_spaceless($___internal_parse_0_);
// line 413
echo "</html>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 23
public function block_metaTag($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaTag"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaTag"));
// line 24
echo " ";
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); })())))) {
// line 25
echo " <meta name=\"robots\" content=\"";
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", null, true);
echo "\">
";
} else {
// line 27
echo " <meta name=\"robots\" content= \"";
if ((twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "metaindex", [], "any", false, false, false, 27) == 1)) {
echo "INDEX";
} else {
echo "NOINDEX";
}
echo " , ";
if ((twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "metafollow", [], "any", false, false, false, 27) == 1)) {
echo "FOLLOW";
} else {
echo "NOFOLLOW";
}
echo "\">
";
}
// line 29
echo "
";
// line 30
$context["currentPath"] = "/";
// line 31
echo "
";
// line 32
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 32), "attributes", [], "any", false, true, false, 32), "get", [0 => "_route_params"], "method", false, true, false, 32), "slug", [], "array", true, true, false, 32) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 32), "attributes", [], "any", false, false, false, 32), "get", [0 => "_route_params"], "method", false, false, false, 32), "slug", [], "array", false, false, false, 32) == "home"))) {
// line 33
echo " <link href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 33), "schemeAndHttpHost", [], "any", false, false, false, 33), "html", null, true);
echo "\" rel=\"canonical\"/>
";
} else {
// line 35
echo " ";
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))) {
// line 36
echo " <link href=\"";
echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 36), "schemeAndHttpHost", [], "any", false, false, false, 36) . (isset($context["canonical"]) || array_key_exists("canonical", $context) ? $context["canonical"] : (function () { throw new RuntimeError('Variable "canonical" does not exist.', 36, $this->source); })())), "html", null, true);
echo "\" rel=\"canonical\"/>
";
} else {
// line 38
echo " <link href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 38), "uri", [], "any", false, false, false, 38), "html", null, true);
echo "\" rel=\"canonical\" />
";
}
// line 39
echo "
";
}
// line 41
echo "
";
// line 44
echo " ";
// line 49
echo "
";
// line 50
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))) {
// line 51
echo " ";
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); })());
echo "
";
}
// line 53
echo "
";
// line 55
if (array_key_exists("schemaOrg", $context)) {
// line 56
echo " ";
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); })()), ["\\" => "/"]), ["//" => "/"]);
echo "
";
}
// line 58
echo "
";
// line 59
if (array_key_exists("schema_breadcrumb", $context)) {
// line 60
echo " ";
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); })()), ["\\" => "/"]), ["//" => "/"]);
echo "
";
}
// line 62
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 74
public function block_preload($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "preload"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "preload"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 77
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 78
echo " ";
// line 79
echo " <style>
";
// line 80
echo twig_source($this->env, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 80), "server", [], "any", false, false, false, 80), "get", [0 => "APP_THEME"], "method", false, false, false, 80)) . "/assets/css/_fonts.css"));
echo "
";
// line 81
echo twig_source($this->env, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 81), "server", [], "any", false, false, false, 81), "get", [0 => "APP_THEME"], "method", false, false, false, 81)) . "/assets/css/_variables.min.css"));
echo "
";
// line 83
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->getWebpackCssFiles("app-theme"));
foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
// line 84
echo " ";
echo twig_source($this->env, ("@PUBLIC" . $context["file"]));
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 86
echo "
";
// line 87
echo twig_source($this->env, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 87), "server", [], "any", false, false, false, 87), "get", [0 => "APP_THEME"], "method", false, false, false, 87)) . "/assets/css/style.min.css"));
echo "
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 98
public function block_navbar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
// line 99
echo " ";
$context["className"] = (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 99), "attributes", [], "any", false, false, false, 99), "get", [0 => "_route"], "method", false, false, false, 99) == "index_page_home")) ? ("home_page") : (""));
// line 100
echo " ";
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); })())]));
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 105
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 126
public function block_footer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 127
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\FunctionController::renderFooter", ["TypeMenu" => "Footer"]));
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 130
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 131
echo "
<script src=\"";
// line 132
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", null, true);
echo "\" ></script>
<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js\" async></script>
";
// line 135
echo " ";
// line 136
echo " <script src=\"";
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", null, true);
echo "\"></script>
";
// line 140
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app-theme");
echo "
<script>
function openSearch() {
document.getElementById(\"myOverlay\").style.display = \"block\";
setTimeout(function() {
document.getElementById(\"myOverlay\").style.opacity = \"1\";
}, 2);
}
function closeSearch() {
document.getElementById(\"myOverlay\").style.display = \"none\";
setTimeout(function() {
document.getElementById(\"myOverlay\").style.opacity = \"0\";
}, 2);
}
// new WOW().init();
(function () {
'use strict'
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.querySelectorAll('.needs-validation')
// Loop over them and prevent submission
Array.prototype.slice.call(forms)
.forEach(function (form) {
form.addEventListener('submit', function (event) {
form.classList.add('was-validated')
if (!form.checkValidity()) {
event.preventDefault()
event.stopPropagation()
return false;
}
event.preventDefault();
\$(form).find('button[type=\"submit\"]').attr('disabled','true');
grecaptcha.execute('";
// line 178
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "clekey", [], "any", false, false, false, 178), "html", null, true);
echo "', {action: 'create_comment'}).then(token => {
\$(form).find('[name=g-recaptcha-response]').val(token);
form.submit();
});
}, false)
})
})()
function reCaptchaOnFocus() {
var head = document.getElementsByTagName('head')[0]
var script = document.createElement('script')
script.type = 'text/javascript';
script.src = 'https://www.google.com/recaptcha/api.js?render=";
// line 190
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "clekey", [], "any", false, false, false, 190), "html", null, true);
echo "'
head.appendChild(script);
};
if(document.getElementsByClassName('form-recap')){
for (let i = 0; i < document.getElementsByClassName('form-recap').length; i++) {
document.getElementsByClassName('form-recap')[i].addEventListener('focus', (event) => {
reCaptchaOnFocus()
}, true);
}
}
</script>
<script>
\$(document).ready(function(){
/* const elems = document.querySelectorAll('.datepicker_input');
for (const elem of elems) {
const datepicker = new Datepicker(elem, {
'format': 'dd/mm/yyyy',
'language' : 'fr',
// title: getDatePickerTitle(elem)
});
} */
\$(window).on(\"scroll\", function () {
if (\$(this).scrollTop() > \$(window).height() / 2) {
\$(\".scroll-to-top\").fadeIn();
} else {
\$(\".scroll-to-top\").fadeOut();
}
});
\$('.header-savoir-plus').on(\"click\", function () {
\$(\"html, body\").animate({ scrollTop: \$('#bloc-content').offset().top - 100 }, \"slow\" );
return false;
});
\$(\".scroll-to-top\").on(\"click\", function () {
\$(\"html, body\").animate({ scrollTop: 0 }, 500);
return false;
});
\$('input[name=\"prestation[]\"]').change(function(){
if(this.hasAttribute('checked')){
\$(this).attr('checked',false);
}else{
\$(this).attr('checked',true);
}
\$.each(\$(\"input[name='prestation[]']\"), function () {
if (this.value == 'Autre' && this.hasAttribute('checked')) {
\$('.autre_prestation').removeClass('d-none');
\$('input[name=\"autre_prestation\"]').attr('required',true);
}else{
\$('.autre_prestation').addClass('d-none');
\$('input[name=\"autre_prestation\"]').attr('required',false);
}
});
});
\$('input[name=\"vous_etes\"]').change(function(){
if (this.value == 'Autre') {
\$('.autre_coordonne').removeClass('d-none');
\$('input[name=\"autre_coordonne\"]').attr('required',true);
}else{
\$('.autre_coordonne').addClass('d-none');
\$('input[name=\"autre_coordonne\"]').attr('required',false);
}
});
});
</script>
";
// line 268
if (($this->extensions['App\Twig\FunctionExtension']->parametreProduits() && twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\FunctionExtension']->parametreProduits(), "actifpanier", [], "any", false, false, false, 268))) {
// line 269
echo " <script>
// Fonction pour mettre à jour le panier côté client
function updatePanier(panier) {
\$.ajax({
url: '";
// line 273
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart_content");
echo "',
type: 'GET',
success: function(response) {
var panier = response.panier;
var commandeDiv = \$('.commande_div');
commandeDiv.empty();
var commandeTable = \$('.table-panier tbody');
if(commandeTable.length){
commandeTable.empty();
}
var total = 0;
\$('#nb_span').text(Object.keys(panier).length);
for (var key in panier) {
if (panier.hasOwnProperty(key)) {
var item = panier[key];
var id = item['product'].id;
var name = item['product'].title;
var prix = item['product'].prix_produit;
var qte = item.qte;
var nameDiv = \$('<div>', { class: 'name_div', 'data-id': id });
var nameSpan = \$('<span>', { class: 'name_span' }).text(name);
var content_prix = prix ? ' - '+prix+' €' : ''
var condSpan = \$('<span>', { class: 'cond_span' }).text(content_prix);
var qteSpan = \$('<span>', { class: 'qte_span' }).text(' - ' + qte);
total += prix * qte;
var viderLink = \$('<button>', { class: 'vider_selection_prod cart-remove', 'data-qte': qte, 'data-id-produit': id }).html('<i class=\"fa fa-trash-o\"></i>');
var clearDiv = \$('<div>', { class: 'clear' });
nameSpan.append(condSpan);
nameDiv.append(nameSpan, qteSpan, viderLink, clearDiv);
commandeDiv.append(nameDiv);
if(commandeTable.length){
var inputQte = \$('<input>', { class: 'form-control input-qte', 'type': 'number', 'value': qte,'name': 'qte','id': 'qte','min': '0','max': '1000', 'data-id-produit': id });
var btnQteUpdate = \$('<button>', { class: 'btn-update-qte disabled', 'disabled' : '' }).html('Modifier');
var nameTr = \$('<tr>', { class: 'name_div', 'data-id': id });
var nameTd = \$('<td>', { class: 'name_span' }).text(name);
var qteTd = \$('<td>', { class: 'qte_span' }).append(inputQte,btnQteUpdate);
var prixTd = \$('<td>', { class: 'cond_span' }).text(prix);
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>');
var actionsTd = \$('<td>', { class: 'actions' }).append(viderLinkTd);
nameTr.append(nameTd, qteTd,prixTd, actionsTd);
commandeTable.append(nameTr);
}
}
}
var totalTr = \$('<tr>', { class: 'total' });
var totalTd1 = \$('<td>', { class: 'text-right' , 'colspan' : '2' }).html('<strong>Total(€) :</strong>');
var totalTd2 = \$('<td>', { class: 'total-prix' }).html('<strong>'+ total +'</strong>');
totalTr.append(totalTd1,totalTd2);
if(commandeTable.length){
commandeTable.append(totalTr);
}
},
error: function(xhr, status, error) {
console.log(error);
}
});
}
function removeFromCart(id_produit){
\$.ajax({
url: '/panier/remove/'+escape(id_produit),
type: 'POST',
dataType: 'JSON',
success: function(response) {
var panier = response;
updatePanier(panier);
},
error: function(xhr, status, error) {
console.log(error); // Affichez l'erreur pour le débogage
}
});
}
function updateQtePanier(id_produit,qte){
\$.ajax({
url: '/panier/update/'+escape(id_produit)+'/'+escape(qte),
type: 'POST',
dataType: 'JSON',
success: function(response) {
var panier = response.panier;
updatePanier(panier);
},
error: function(xhr, status, error) {
console.log(error); // Affichez l'erreur pour le débogage
}
});
}
\$(document).ready(function() {
\$(document).on('click', '.cart-remove', function() {
var id_produit = \$(this).data('id-produit');
removeFromCart(id_produit);
});
\$(document).on('change', '.input-qte', function() {
\$(this).closest('tr.name_div').find('.btn-update-qte').removeClass('disabled');
\$(this).closest('tr.name_div').find('.btn-update-qte').removeAttr('disabled');
});
\$(document).on('click', '.btn-update-qte', function() {
var productId = \$(this).closest('tr.name_div').data('id');
var qte = \$(this).closest('tr.name_div').find('input.input-qte').val();
updateQtePanier(productId,qte);
});
});
</script>
";
}
// line 401
echo "
";
// line 402
if (($this->extensions['App\Twig\ParametreSiteExtension']->CookiesFunction() != null)) {
// line 403
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 403), "server", [], "any", false, false, false, 403), "get", [0 => "APP_THEME"], "method", false, false, false, 403)) . "/cookies/cookie.html.twig"), [], false);
echo "
";
}
// line 405
echo " <script>
";
// line 406
echo twig_source($this->env, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 406), "server", [], "any", false, false, false, 406), "get", [0 => "APP_THEME"], "method", false, false, false, 406)) . "/assets/js/script.js"));
echo "
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front/theme1/base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<!doctype html>
<html lang=\"{{ app.request.locale }}\">
<head>
<meta charset=\"utf-8\" />
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
{# <link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"{{asset('public/favicon/apple-touch-icon.png')}}\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"{{asset('public/favicon/favicon-32x32.png')}}\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"{{asset('public/favicon/favicon-16x16.png')}}\"> #}
<link rel=\"icon\" type=\"image/x-icon\" href=\"{{ asset('public/favicon/favicon.ico') }}\" />
{# <link rel=\"manifest\" href=\"{{asset('public/favicon/site.webmanifest')}}\"> #}
{{ leogout_seo() }}
<link rel=\"preconnect\" href=\"https://code.jquery.com\" crossorigin>
<link rel=\"preconnect\" href=\"https://apps.elfsight.com\" crossorigin>
{# <link rel=\"preconnect\" href=\"https://matomo.hrz.fr/\" crossorigin> #}
{# {% include 'front/preload_fonts.html.twig' %} #}
{# <link href=\"https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.1.4/dist/css/datepicker.min.css\" rel=\"stylesheet\"> #}
{% block metaTag %}
{% if meta_robots is defined and meta_robots is not empty %}
<meta name=\"robots\" content=\"{{meta_robots}}\">
{% else %}
<meta name=\"robots\" content= \"{% if ParametreSite().metaindex == 1 %}INDEX{% else %}NOINDEX{% endif %} , {% if ParametreSite().metafollow == 1 %}FOLLOW{% else %}NOFOLLOW{% endif %}\">
{% endif %}
{% set currentPath = '/' %}
{% if app.request.attributes.get('_route_params')['slug'] is defined and app.request.attributes.get('_route_params')['slug'] == 'home' %}
<link href=\"{{app.request.schemeAndHttpHost}}\" rel=\"canonical\"/>
{% else %}
{% if canonical is defined and canonical != null %}
<link href=\"{{app.request.schemeAndHttpHost ~ canonical}}\" rel=\"canonical\"/>
{% else %}
<link href=\"{{app.request.uri}}\" rel=\"canonical\" />
{% endif %}
{% endif %}
{# <link rel=\"alternate\" hreflang=\"x-default\" href=\"{{app.request.schemeAndHttpHost ~ currentPath}}\" /> #}
{# {% if ActifLanguage() %}
{% for item in ActifLanguage() %}
<link rel=\"alternate\" hreflang=\"{{item.languagecode}}\" href=\"{{app.request.schemeAndHttpHost ~ currentPath}}\"/>
{% endfor %}
{% endif %} #}
{% if custom_schemaOrg is defined and custom_schemaOrg != null %}
{{custom_schemaOrg|raw}}
{% endif %}
{% if schemaOrg is defined %}
{{schemaOrg|replace({\"\\\\\": \"/\"})|replace({\"//\": \"/\"})|raw}}
{% endif %}
{% if schema_breadcrumb is defined %}
{{schema_breadcrumb|replace({\"\\\\\": \"/\"})|replace({\"//\": \"/\"})|raw}}
{% endif %}
{% endblock %}
{% if ParametreSite().googleverification and ParametreSite().googleverification is not empty %}
<meta name=\"google-site-verification\" content=\"{{ParametreSite().googleverification|raw}}\" />
{% endif %}
{% if ParametreSite().codehead and ParametreSite().codehead is not empty %}
{{ParametreSite().codehead|raw}}
{% endif %}
{% block preload %}{% endblock %}
{% block stylesheets %}
{# {{ encore_entry_link_tags('app-theme') }} #}
<style>
{{ source ('front/'~ app.request.server.get('APP_THEME') ~'/assets/css/_fonts.css')}}
{{ source ('front/'~ app.request.server.get('APP_THEME') ~'/assets/css/_variables.min.css')}}
{# {% include 'front/config_theme.html.twig' %} #}
{% for file in encore_entry_css_files('app-theme') %}
{{ source('@PUBLIC' ~ file) }}
{% endfor %}
{{ source ('front/'~ app.request.server.get('APP_THEME') ~'/assets/css/style.min.css')}}
</style>
{% endblock %}
</head>
{% apply spaceless %}
<body {% if app.request.attributes.get('_route') is null %}class=\"page-404\"{% endif %}>
{% if ParametreSite().codebody and ParametreSite().codebody is not empty %}
{{ParametreSite().codebody|raw}}
{% endif %}
{% block navbar %}
{% set className = app.request.attributes.get('_route') == 'index_page_home'?'home_page':'' %}
{{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderMenu',{'className': className })) }}
{% endblock %}
<main class=\"{{app.request.attributes.get('_route') == 'index_page_home'?'home_page':''}} {{custom_class_page()!= null?custom_class_page():''}}\">
{% block body %}{% endblock %}
</main>
<a href=\"javascript:void(0);\" class=\"scroll-to-top\" title=\"{{ 'label.haut'|trans({} , 'textes' ) }}\" style=\"display: none;\"><span>{{ 'label.haut'|trans({} , 'textes' ) }}</span></a>
<div id=\"myOverlay\" class=\"overlay\">
<span class=\"closebtn\" onclick=\"closeSearch()\" title=\"Close Overlay\">×</span>
<div class=\"overlay-content\">
<form action=\"{{path('page_search')}}\" method=\"GET\">
<div class=\"position-relative w-100\">
<input type=\"text\" placeholder=\"Rechercher...\" name=\"search\" class=\"resRecord\" required>
<div id=\"recButton\" class=\"w-md waves-effect waves-light\"><i class=\"fa fa-microphone\"></i></div>
</div>
<button type=\"submit\"><i class=\"fa fa-search\"></i></button>
</form>
</div>
</div>
{{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderDefaultBloc')) }}
{% block footer %}
{{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderFooter',{ 'TypeMenu': 'Footer' })) }}
{% endblock %}
{% block javascripts %}
<script src=\"{{asset('templates/front/theme1/assets/js/jquery-3.6.0.min.js')}}\" ></script>
<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js\" async></script>
{# <script src=\"{{asset('templates/front/theme1/assets/plugins/wow-animate/js/wow.min.js')}}\"></script> #}
{# <script src=\"{{asset('templates/front/theme1/assets/plugins/galerie-isotope-wow/js/isotope.pkgd.min.js')}}\"></script> #}
<script src=\"{{asset('templates/front/theme1/assets/plugins/galerie-isotope-wow/js/plugins.js')}}\"></script>
{# <script src=\"https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.1.4/dist/js/datepicker-full.min.js\"></script>
<script src=\"https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.2.0/dist/js/locales/fr.js\"></script> #}
{{ encore_entry_script_tags('app-theme') }}
<script>
function openSearch() {
document.getElementById(\"myOverlay\").style.display = \"block\";
setTimeout(function() {
document.getElementById(\"myOverlay\").style.opacity = \"1\";
}, 2);
}
function closeSearch() {
document.getElementById(\"myOverlay\").style.display = \"none\";
setTimeout(function() {
document.getElementById(\"myOverlay\").style.opacity = \"0\";
}, 2);
}
// new WOW().init();
(function () {
'use strict'
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.querySelectorAll('.needs-validation')
// Loop over them and prevent submission
Array.prototype.slice.call(forms)
.forEach(function (form) {
form.addEventListener('submit', function (event) {
form.classList.add('was-validated')
if (!form.checkValidity()) {
event.preventDefault()
event.stopPropagation()
return false;
}
event.preventDefault();
\$(form).find('button[type=\"submit\"]').attr('disabled','true');
grecaptcha.execute('{{ParametreSite().clekey}}', {action: 'create_comment'}).then(token => {
\$(form).find('[name=g-recaptcha-response]').val(token);
form.submit();
});
}, false)
})
})()
function reCaptchaOnFocus() {
var head = document.getElementsByTagName('head')[0]
var script = document.createElement('script')
script.type = 'text/javascript';
script.src = 'https://www.google.com/recaptcha/api.js?render={{ParametreSite().clekey}}'
head.appendChild(script);
};
if(document.getElementsByClassName('form-recap')){
for (let i = 0; i < document.getElementsByClassName('form-recap').length; i++) {
document.getElementsByClassName('form-recap')[i].addEventListener('focus', (event) => {
reCaptchaOnFocus()
}, true);
}
}
</script>
<script>
\$(document).ready(function(){
/* const elems = document.querySelectorAll('.datepicker_input');
for (const elem of elems) {
const datepicker = new Datepicker(elem, {
'format': 'dd/mm/yyyy',
'language' : 'fr',
// title: getDatePickerTitle(elem)
});
} */
\$(window).on(\"scroll\", function () {
if (\$(this).scrollTop() > \$(window).height() / 2) {
\$(\".scroll-to-top\").fadeIn();
} else {
\$(\".scroll-to-top\").fadeOut();
}
});
\$('.header-savoir-plus').on(\"click\", function () {
\$(\"html, body\").animate({ scrollTop: \$('#bloc-content').offset().top - 100 }, \"slow\" );
return false;
});
\$(\".scroll-to-top\").on(\"click\", function () {
\$(\"html, body\").animate({ scrollTop: 0 }, 500);
return false;
});
\$('input[name=\"prestation[]\"]').change(function(){
if(this.hasAttribute('checked')){
\$(this).attr('checked',false);
}else{
\$(this).attr('checked',true);
}
\$.each(\$(\"input[name='prestation[]']\"), function () {
if (this.value == 'Autre' && this.hasAttribute('checked')) {
\$('.autre_prestation').removeClass('d-none');
\$('input[name=\"autre_prestation\"]').attr('required',true);
}else{
\$('.autre_prestation').addClass('d-none');
\$('input[name=\"autre_prestation\"]').attr('required',false);
}
});
});
\$('input[name=\"vous_etes\"]').change(function(){
if (this.value == 'Autre') {
\$('.autre_coordonne').removeClass('d-none');
\$('input[name=\"autre_coordonne\"]').attr('required',true);
}else{
\$('.autre_coordonne').addClass('d-none');
\$('input[name=\"autre_coordonne\"]').attr('required',false);
}
});
});
</script>
{% if parametreProduits() and parametreProduits().actifpanier %}
<script>
// Fonction pour mettre à jour le panier côté client
function updatePanier(panier) {
\$.ajax({
url: '{{ path('cart_content') }}',
type: 'GET',
success: function(response) {
var panier = response.panier;
var commandeDiv = \$('.commande_div');
commandeDiv.empty();
var commandeTable = \$('.table-panier tbody');
if(commandeTable.length){
commandeTable.empty();
}
var total = 0;
\$('#nb_span').text(Object.keys(panier).length);
for (var key in panier) {
if (panier.hasOwnProperty(key)) {
var item = panier[key];
var id = item['product'].id;
var name = item['product'].title;
var prix = item['product'].prix_produit;
var qte = item.qte;
var nameDiv = \$('<div>', { class: 'name_div', 'data-id': id });
var nameSpan = \$('<span>', { class: 'name_span' }).text(name);
var content_prix = prix ? ' - '+prix+' €' : ''
var condSpan = \$('<span>', { class: 'cond_span' }).text(content_prix);
var qteSpan = \$('<span>', { class: 'qte_span' }).text(' - ' + qte);
total += prix * qte;
var viderLink = \$('<button>', { class: 'vider_selection_prod cart-remove', 'data-qte': qte, 'data-id-produit': id }).html('<i class=\"fa fa-trash-o\"></i>');
var clearDiv = \$('<div>', { class: 'clear' });
nameSpan.append(condSpan);
nameDiv.append(nameSpan, qteSpan, viderLink, clearDiv);
commandeDiv.append(nameDiv);
if(commandeTable.length){
var inputQte = \$('<input>', { class: 'form-control input-qte', 'type': 'number', 'value': qte,'name': 'qte','id': 'qte','min': '0','max': '1000', 'data-id-produit': id });
var btnQteUpdate = \$('<button>', { class: 'btn-update-qte disabled', 'disabled' : '' }).html('Modifier');
var nameTr = \$('<tr>', { class: 'name_div', 'data-id': id });
var nameTd = \$('<td>', { class: 'name_span' }).text(name);
var qteTd = \$('<td>', { class: 'qte_span' }).append(inputQte,btnQteUpdate);
var prixTd = \$('<td>', { class: 'cond_span' }).text(prix);
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>');
var actionsTd = \$('<td>', { class: 'actions' }).append(viderLinkTd);
nameTr.append(nameTd, qteTd,prixTd, actionsTd);
commandeTable.append(nameTr);
}
}
}
var totalTr = \$('<tr>', { class: 'total' });
var totalTd1 = \$('<td>', { class: 'text-right' , 'colspan' : '2' }).html('<strong>Total(€) :</strong>');
var totalTd2 = \$('<td>', { class: 'total-prix' }).html('<strong>'+ total +'</strong>');
totalTr.append(totalTd1,totalTd2);
if(commandeTable.length){
commandeTable.append(totalTr);
}
},
error: function(xhr, status, error) {
console.log(error);
}
});
}
function removeFromCart(id_produit){
\$.ajax({
url: '/panier/remove/'+escape(id_produit),
type: 'POST',
dataType: 'JSON',
success: function(response) {
var panier = response;
updatePanier(panier);
},
error: function(xhr, status, error) {
console.log(error); // Affichez l'erreur pour le débogage
}
});
}
function updateQtePanier(id_produit,qte){
\$.ajax({
url: '/panier/update/'+escape(id_produit)+'/'+escape(qte),
type: 'POST',
dataType: 'JSON',
success: function(response) {
var panier = response.panier;
updatePanier(panier);
},
error: function(xhr, status, error) {
console.log(error); // Affichez l'erreur pour le débogage
}
});
}
\$(document).ready(function() {
\$(document).on('click', '.cart-remove', function() {
var id_produit = \$(this).data('id-produit');
removeFromCart(id_produit);
});
\$(document).on('change', '.input-qte', function() {
\$(this).closest('tr.name_div').find('.btn-update-qte').removeClass('disabled');
\$(this).closest('tr.name_div').find('.btn-update-qte').removeAttr('disabled');
});
\$(document).on('click', '.btn-update-qte', function() {
var productId = \$(this).closest('tr.name_div').data('id');
var qte = \$(this).closest('tr.name_div').find('input.input-qte').val();
updateQtePanier(productId,qte);
});
});
</script>
{% endif %}
{% if Cookies() != null %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/cookies/cookie.html.twig',{}, with_context = false)}}
{% endif %}
<script>
{{ source ('front/'~ app.request.server.get('APP_THEME') ~'/assets/js/script.js')}}
</script>
{% endblock %}
</body>
{% endapply %}
</html>", "front/theme1/base.html.twig", "/var/www/vhosts/hrz.fr/oscar-multilangue.hrz.fr/templates/front/theme1/base.html.twig");
}
}