<?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_de2955ce7c0fc350911b1b041c090bc7 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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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=\"//www.google-analytics.com\" crossorigin>
<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
<link rel=\"preconnect\" href=\"https://code.jquery.com\" crossorigin>
";
// line 20
echo " ";
// line 21
echo "
<script src=\"";
// line 22
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>
";
// line 24
$this->displayBlock('metaTag', $context, $blocks);
// line 74
echo "
";
// line 75
$this->displayBlock('preload', $context, $blocks);
// line 76
echo "
";
// line 78
$this->displayBlock('stylesheets', $context, $blocks);
// line 88
echo "
<script async src=\"https://www.googletagmanager.com/gtag/js?id=G-XR7K60K3YD\"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XR7K60K3YD');
</script>
</head>
<body ";
// line 98
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.', 98, $this->source); })()), "request", [], "any", false, false, false, 98), "attributes", [], "any", false, false, false, 98), "get", [0 => "_route"], "method", false, false, false, 98))) {
echo "class=\"page-404\"";
}
echo ">
";
// line 100
$this->displayBlock('navbar', $context, $blocks);
// line 104
echo "
<main class=\"";
// line 105
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.', 105, $this->source); })()), "request", [], "any", false, false, false, 105), "attributes", [], "any", false, false, false, 105), "get", [0 => "_route"], "method", false, false, false, 105) == "index_page_home")) ? ("home_page") : (""));
echo "\">
";
// line 106
$this->displayBlock('body', $context, $blocks);
echo "
</main>
<a href=\"javascript:void(0);\" class=\"scroll-to-top\" title=\"Haut\" style=\"display: none;\"><span>Haut</span></a>
";
// line 111
$this->displayBlock('footer', $context, $blocks);
// line 114
echo "
";
// line 115
$this->displayBlock('javascripts', $context, $blocks);
// line 243
echo "
</body>
</html>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 24
public function block_metaTag($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaTag"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaTag"));
// line 25
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.', 25, $this->source); })())))) {
// line 26
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.', 26, $this->source); })()), "html", null, true);
echo "\">
";
}
// line 28
echo "
";
// line 29
if ((array_key_exists("canonical", $context) && ((isset($context["canonical"]) || array_key_exists("canonical", $context) ? $context["canonical"] : (function () { throw new RuntimeError('Variable "canonical" does not exist.', 29, $this->source); })()) != null))) {
// line 30
echo " <link href=\"";
echo twig_escape_filter($this->env, (isset($context["canonical"]) || array_key_exists("canonical", $context) ? $context["canonical"] : (function () { throw new RuntimeError('Variable "canonical" does not exist.', 30, $this->source); })()), "html", null, true);
echo "\" rel=\"canonical\"/>
";
} else {
// line 32
echo " ";
if (twig_in_filter(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"], "method", false, false, false, 32), [0 => "index_page_home", 1 => "plan_du_site"])) {
// line 33
echo " ";
$context["currentPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 33, $this->source); })()), "request", [], "any", false, false, false, 33), "attributes", [], "any", false, false, false, 33), "get", [0 => "_route"], "method", false, false, false, 33));
// line 34
echo " ";
} else {
// line 35
echo " ";
$context["parametre_url"] = 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.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "attributes", [], "any", false, false, false, 35), "get", [0 => "page"], "method", false, false, false, 35);
// line 36
echo "
";
// line 37
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, 37), "attributes", [], "any", false, true, false, 37), "get", [0 => "_route_params"], "method", false, true, false, 37), "slug", [], "any", true, true, false, 37)) {
// line 38
echo " ";
if ((((isset($context["parametre_url"]) || array_key_exists("parametre_url", $context) ? $context["parametre_url"] : (function () { throw new RuntimeError('Variable "parametre_url" does not exist.', 38, $this->source); })()) != null) && ((isset($context["parametre_url"]) || array_key_exists("parametre_url", $context) ? $context["parametre_url"] : (function () { throw new RuntimeError('Variable "parametre_url" does not exist.', 38, $this->source); })()) != "1"))) {
// line 39
echo " ";
$context["currentPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 39, $this->source); })()), "request", [], "any", false, false, false, 39), "attributes", [], "any", false, false, false, 39), "get", [0 => "_route"], "method", false, false, false, 39), ["slug" => 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.', 39, $this->source); })()), "request", [], "any", false, false, false, 39), "attributes", [], "any", false, false, false, 39), "get", [0 => "_route_params"], "method", false, false, false, 39), "slug", [], "any", false, false, false, 39), "page" => 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.', 39, $this->source); })()), "request", [], "any", false, false, false, 39), "attributes", [], "any", false, false, false, 39), "get", [0 => "_route_params"], "method", false, false, false, 39), "page", [], "any", false, false, false, 39)]);
// line 40
echo " ";
} else {
// line 41
echo " ";
$context["currentPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 41, $this->source); })()), "request", [], "any", false, false, false, 41), "attributes", [], "any", false, false, false, 41), "get", [0 => "_route"], "method", false, false, false, 41), ["slug" => 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.', 41, $this->source); })()), "request", [], "any", false, false, false, 41), "attributes", [], "any", false, false, false, 41), "get", [0 => "_route_params"], "method", false, false, false, 41), "slug", [], "any", false, false, false, 41)]);
// line 42
echo " ";
}
// line 43
echo " ";
} else {
// line 44
echo " ";
$context["currentPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 44, $this->source); })()), "request", [], "any", false, false, false, 44), "attributes", [], "any", false, false, false, 44), "get", [0 => "_route"], "method", false, false, false, 44));
// line 45
echo " ";
}
// line 46
echo "
";
}
// line 48
echo "
<link href=\"";
// line 49
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.', 49, $this->source); })()), "request", [], "any", false, false, false, 49), "schemeAndHttpHost", [], "any", false, false, false, 49) . (isset($context["currentPath"]) || array_key_exists("currentPath", $context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.', 49, $this->source); })())), "html", null, true);
echo "\" rel=\"canonical\" />
";
}
// line 51
echo "
";
// line 53
echo " ";
if ($this->extensions['App\Twig\FunctionExtension']->ActifLanguageFunction()) {
// line 54
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\FunctionExtension']->ActifLanguageFunction());
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 55
echo " <link rel=\"alternate\" hreflang=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "languagecode", [], "any", false, false, false, 55), "html", null, true);
echo "\" 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.', 55, $this->source); })()), "request", [], "any", false, false, false, 55), "schemeAndHttpHost", [], "any", false, false, false, 55) . (isset($context["currentPath"]) || array_key_exists("currentPath", $context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.', 55, $this->source); })())), "html", null, true);
echo "\"/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 57
echo " ";
}
// line 58
echo "
";
// line 59
if ((array_key_exists("custom_schemaOrg", $context) && ((isset($context["custom_schemaOrg"]) || array_key_exists("custom_schemaOrg", $context) ? $context["custom_schemaOrg"] : (function () { throw new RuntimeError('Variable "custom_schemaOrg" does not exist.', 59, $this->source); })()) != null))) {
// line 60
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.', 60, $this->source); })());
echo "
";
}
// line 62
echo "
";
// line 64
if (array_key_exists("schemaOrg", $context)) {
// line 65
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.', 65, $this->source); })()), ["\\" => "/"]), ["//" => "/"]);
echo "
";
}
// line 67
echo "
";
// line 68
if (array_key_exists("schema_breadcrumb", $context)) {
// line 69
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.', 69, $this->source); })()), ["\\" => "/"]), ["//" => "/"]);
echo "
";
}
// line 71
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 75
public function block_preload($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "preload"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "preload"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 78
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 79
echo " ";
// line 80
echo " <style>
";
// line 82
echo "
";
// line 83
$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 " </style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 100
public function block_navbar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
// line 101
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.', 101, $this->source); })()), "request", [], "any", false, false, false, 101), "attributes", [], "any", false, false, false, 101), "get", [0 => "_route"], "method", false, false, false, 101) == "index_page_home")) ? ("home_page") : (""));
// line 102
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.', 102, $this->source); })())]));
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 106
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 111
public function block_footer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 112
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_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 115
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 116
echo "
<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js\"></script>
<script src=\"";
// line 118
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/plugins/wow-animate/js/wow.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 119
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/plugins/galerie-isotope-wow/js/isotope.pkgd.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 120
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 124
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app-theme");
echo "
<script>
// 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 147
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "clekey", [], "any", false, false, false, 147), "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 159
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "clekey", [], "any", false, false, false, 159), "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 237
if (($this->extensions['App\Twig\ParametreSiteExtension']->CookiesFunction() != null)) {
// line 238
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.', 238, $this->source); })()), "request", [], "any", false, false, false, 238), "server", [], "any", false, false, false, 238), "get", [0 => "APP_THEME"], "method", false, false, false, 238)) . "/cookies/cookie.html.twig"), [], false);
echo "
";
}
// line 240
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "front/theme1/base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 595 => 240, 589 => 238, 587 => 237, 506 => 159, 491 => 147, 464 => 124, 459 => 120, 455 => 119, 451 => 118, 447 => 116, 437 => 115, 424 => 112, 414 => 111, 396 => 106, 383 => 102, 380 => 101, 370 => 100, 359 => 86, 350 => 84, 346 => 83, 343 => 82, 340 => 80, 338 => 79, 328 => 78, 310 => 75, 298 => 71, 292 => 69, 290 => 68, 287 => 67, 281 => 65, 279 => 64, 275 => 62, 269 => 60, 267 => 59, 264 => 58, 261 => 57, 250 => 55, 245 => 54, 242 => 53, 239 => 51, 234 => 49, 231 => 48, 227 => 46, 224 => 45, 221 => 44, 218 => 43, 215 => 42, 212 => 41, 209 => 40, 206 => 39, 203 => 38, 201 => 37, 198 => 36, 195 => 35, 192 => 34, 189 => 33, 186 => 32, 180 => 30, 178 => 29, 175 => 28, 169 => 26, 166 => 25, 156 => 24, 143 => 243, 141 => 115, 138 => 114, 136 => 111, 128 => 106, 124 => 105, 121 => 104, 119 => 100, 112 => 98, 100 => 88, 98 => 78, 94 => 76, 92 => 75, 89 => 74, 87 => 24, 82 => 22, 79 => 21, 77 => 20, 66 => 12, 61 => 10, 53 => 2, 50 => 1,);
}
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=\"//www.google-analytics.com\" crossorigin>
<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
<link rel=\"preconnect\" href=\"https://code.jquery.com\" 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\"> #}
<script src=\"{{asset('templates/front/theme1/assets/js/jquery-3.6.0.min.js')}}\"></script>
{% block metaTag %}
{% if meta_robots is defined and meta_robots is not empty %}
<meta name=\"robots\" content=\"{{meta_robots}}\">
{% endif %}
{% if canonical is defined and canonical != null %}
<link href=\"{{canonical}}\" rel=\"canonical\"/>
{% else %}
{% if app.request.attributes.get('_route') in ['index_page_home','plan_du_site'] %}
{% set currentPath = path(app.request.attributes.get('_route')) %}
{% else %}
{% set parametre_url = app.request.attributes.get('page') %}
{% if app.request.attributes.get('_route_params').slug is defined %}
{% if parametre_url != null and parametre_url != '1' %}
{% set currentPath = path(app.request.attributes.get('_route'),{slug:app.request.attributes.get('_route_params').slug,page:app.request.attributes.get('_route_params').page}) %}
{% else %}
{% set currentPath = path(app.request.attributes.get('_route'),{slug:app.request.attributes.get('_route_params').slug}) %}
{% endif %}
{% else %}
{% set currentPath = path(app.request.attributes.get('_route')) %}
{% endif %}
{% endif %}
<link href=\"{{app.request.schemeAndHttpHost ~ currentPath}}\" rel=\"canonical\" />
{% 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 %}
{% block preload %}{% endblock %}
{% block stylesheets %}
{# {{ encore_entry_link_tags('app-theme') }} #}
<style>
{# {% include 'front/config_theme.html.twig' %} #}
{% for file in encore_entry_css_files('app-theme') %}
{{ source('@PUBLIC' ~ file) }}
{% endfor %}
</style>
{% endblock %}
<script async src=\"https://www.googletagmanager.com/gtag/js?id=G-XR7K60K3YD\"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XR7K60K3YD');
</script>
</head>
<body {% if app.request.attributes.get('_route') is null %}class=\"page-404\"{% 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':''}}\">
{% block body %}{% endblock %}
</main>
<a href=\"javascript:void(0);\" class=\"scroll-to-top\" title=\"Haut\" style=\"display: none;\"><span>Haut</span></a>
{% block footer %}
{{ render(controller('App\\\\Controller\\\\Front\\\\FunctionController::renderFooter',{ 'TypeMenu': 'Footer' })) }}
{% endblock %}
{% block javascripts %}
<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js\"></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>
// 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 Cookies() != null %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/cookies/cookie.html.twig',{}, with_context = false)}}
{% endif %}
{% endblock %}
</body>
</html>", "front/theme1/base.html.twig", "/var/www/vhosts/hrz.fr/new-site.hrz.fr/templates/front/theme1/base.html.twig");
}
}