<?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;
/* base.html.twig */
class __TwigTemplate_342018957cfcca7f023e28788a7eff663c0824a0c4f505cb11cfab5985b304ec extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'html_lang' => [$this, 'block_html_lang'],
'metaTags' => [$this, 'block_metaTags'],
'stylesheets' => [$this, 'block_stylesheets'],
'body_tag' => [$this, 'block_body_tag'],
'flash' => [$this, 'block_flash'],
'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", "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", "base.html.twig"));
// line 1
$context["page"] = $this->extensions['App\Service\AppService']->getPage(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.', 1, $this->source); })()), "request", [], "any", false, false, false, 1), "attributes", [], "any", false, false, false, 1), "get", [0 => "_controller"], "method", false, false, false, 1));
// line 2
echo "<!DOCTYPE html>
<html lang=\"";
// line 3
$this->displayBlock('html_lang', $context, $blocks);
echo "\">
<head>
<!-- Google Tag Manager -->
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start':
new Date().getTime(), event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-TVSNTXH');
</script>
<!-- End Google Tag Manager -->
<meta charset=\"UTF-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0,minimum-scale=1\">
<link rel=\"icon\"
href=\"";
// line 26
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/favicon.png"), "html", null, true);
echo "\">
";
// line 27
$this->displayBlock('metaTags', $context, $blocks);
// line 33
echo " <meta name=\"theme-color\" content=\"#95D3EC\">
";
// line 34
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
echo "
";
// line 35
$this->displayBlock('stylesheets', $context, $blocks);
// line 37
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/libs/openlayers/ol.css"), "html", null, true);
echo "\">
<script type=\"text/javascript\" src=\"";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/libs/openlayers/ol.js"), "html", null, true);
echo "\"></script>
<link rel=\"stylesheet\" href=\"";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/libs/aos/aos.css"), "html", null, true);
echo "\">
";
// line 41
echo " ";
// line 42
echo " ";
// line 43
echo " ";
// line 44
echo "
";
// line 46
echo " ";
// line 47
echo " ";
// line 48
echo "
";
// line 50
echo "
";
// line 52
echo " ";
// line 53
echo " </head>
<body data-navbar-search-url=\"";
// line 54
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_navbar_search");
echo "\" ";
$this->displayBlock('body_tag', $context, $blocks);
echo ">
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-TVSNTXH\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
<div class=\"wrapper\">
<div class=\"background-burger position-fixed t-0 b-0 z-0 zi-9\"></div>
";
// line 65
$this->displayBlock('flash', $context, $blocks);
// line 93
echo " ";
$this->displayBlock('navbar', $context, $blocks);
// line 178
echo "
";
// line 179
$this->displayBlock('body', $context, $blocks);
// line 180
echo " ";
$this->displayBlock('footer', $context, $blocks);
// line 183
echo " <div class=\"position-fixed zi-9999 b-20 r-20 scrollToTopDiv wi-50 d-flex align-items-center justify-content-center bgc-9DC771 c-white br-8\">
<i class=\"fa fa-arrow-up pointer scrollToTop fw-600 fs-15 wi-50 d-flex align-items-center justify-content-center he-50\"></i>
</div>
</div>
";
// line 187
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
echo "
<script type=\"text/javascript\" src=\"";
// line 188
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/libs/aos/aos.js"), "html", null, true);
echo "\"></script>
<script>
AOS.init({
once: true,
});
</script>
<script type=\"text/javascript\" src=\"";
// line 194
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/libs/cookieconsent/cookie-consent.js"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\">
document.addEventListener('DOMContentLoaded', function () {
cookieconsent.run({
\"notice_banner_type\": \"simple\",
\"consent_type\": \"implied\",
\"palette\": \"light\",
\"language\": \"";
// line 201
echo (((0 === twig_compare(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.', 201, $this->source); })()), "request", [], "any", false, false, false, 201), "locale", [], "any", false, false, false, 201), "fr"))) ? ("fr") : ("en"));
echo "\",
\"website_name\": \"";
// line 202
echo twig_escape_filter($this->env, (isset($context["siteTitle"]) || array_key_exists("siteTitle", $context) ? $context["siteTitle"] : (function () { throw new RuntimeError('Variable "siteTitle" does not exist.', 202, $this->source); })()), "html", null, true);
echo "\",
\"change_preferences_selector\": \"#changePreferences\"
});
});
</script>
";
// line 208
echo " <script src=\"https://www.recaptcha.net/recaptcha/api.js?hl=";
(((0 === twig_compare(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.', 208, $this->source); })()), "request", [], "any", false, false, false, 208), "locale", [], "any", false, false, false, 208), "zh"))) ? (print ("zh-CN")) : (print (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.', 208, $this->source); })()), "request", [], "any", false, false, false, 208), "locale", [], "any", false, false, false, 208), "html", null, true))));
echo "\" async defer></script>
";
// line 209
$this->displayBlock('javascripts', $context, $blocks);
// line 211
echo "</body>
</html>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_html_lang($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", "html_lang"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "html_lang"));
(((0 === twig_compare(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.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "locale", [], "any", false, false, false, 3), "zh"))) ? (print ("zh-CN")) : (print (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.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "locale", [], "any", false, false, false, 3), "html", null, true))));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 27
public function block_metaTags($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", "metaTags"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaTags"));
// line 28
echo " <meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 28, $this->source); })())) ? (twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 28, $this->source); })()), "metaDescription", [], "any", false, false, false, 28)) : ((isset($context["siteTitle"]) || array_key_exists("siteTitle", $context) ? $context["siteTitle"] : (function () { throw new RuntimeError('Variable "siteTitle" does not exist.', 28, $this->source); })()))), "html", null, true);
echo "\">
<title>";
// line 29
echo twig_escape_filter($this->env, (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 29, $this->source); })())) ? (twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 29, $this->source); })()), "metaTitle", [], "any", false, false, false, 29)) : ((isset($context["siteTitle"]) || array_key_exists("siteTitle", $context) ? $context["siteTitle"] : (function () { throw new RuntimeError('Variable "siteTitle" does not exist.', 29, $this->source); })()))), "html", null, true);
echo "</title>
<meta property=\"og:title\" content=\"";
// line 30
echo twig_escape_filter($this->env, (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 30, $this->source); })())) ? (twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 30, $this->source); })()), "metaTitle", [], "any", false, false, false, 30)) : ((isset($context["siteTitle"]) || array_key_exists("siteTitle", $context) ? $context["siteTitle"] : (function () { throw new RuntimeError('Variable "siteTitle" does not exist.', 30, $this->source); })()))), "html", null, true);
echo "\">
<meta property=\"og:description\" content=\"";
// line 31
echo twig_escape_filter($this->env, (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 31, $this->source); })())) ? (twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 31, $this->source); })()), "metaDescription", [], "any", false, false, false, 31)) : ((isset($context["siteTitle"]) || array_key_exists("siteTitle", $context) ? $context["siteTitle"] : (function () { throw new RuntimeError('Variable "siteTitle" does not exist.', 31, $this->source); })()))), "html", null, true);
echo "\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 35
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 36
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 54
public function block_body_tag($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_tag"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_tag"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 65
public function block_flash($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", "flash"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "flash"));
// line 66
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 66, $this->source); })()), "flashes", [], "any", false, false, false, 66));
foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
// line 67
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["messages"]);
foreach ($context['_seq'] as $context["key"] => $context["message"]) {
// line 68
echo " <div class=\"modal fade mat-200\" id=\"flashMessageModal\" tabindex=\"-1\" role=\"dialog\"
aria-labelledby=\"flashMessageModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-body\">
<div class=\"text-right\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div>
";
// line 79
if ((0 === twig_compare($context["label"], "success"))) {
// line 80
echo " <i class=\"fa fa-check text-success\"></i>
";
} else {
// line 82
echo " <i class=\"fa fa-warning text-danger\"></i>
";
}
// line 84
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["message"]), "html", null, true);
echo "
</div>
</div>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 91
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 92
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 93
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 94
echo " <header>
<div class=\"fixed-top zi-9999 he-47 bgc-95D3EC c-black pay-8 d-flex align-items-center\">
<div class=\"container container-top\">
<div class=\"d-flex align-items-center justify-content-between fs-14 fw-300\">
<h1 class=\" c-white fs-12 fw-500 col may-0\">
";
// line 99
$context["h1"] = ((array_key_exists("h1", $context)) ? (_twig_default_filter((isset($context["h1"]) || array_key_exists("h1", $context) ? $context["h1"] : (function () { throw new RuntimeError('Variable "h1" does not exist.', 99, $this->source); })()), null)) : (null));
// line 100
echo " ";
echo twig_escape_filter($this->env, (($context["h1"]) ?? ((((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 100, $this->source); })())) ? (twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 100, $this->source); })()), "title", [], "any", false, false, false, 100)) : ((isset($context["siteTitle"]) || array_key_exists("siteTitle", $context) ? $context["siteTitle"] : (function () { throw new RuntimeError('Variable "siteTitle" does not exist.', 100, $this->source); })()))))), "html", null, true);
echo "
</h1>
<div class=\"col-auto text-right d-flex\">
<div class=\"d-flex align-items-center languages\">
";
// line 104
if ((1 === twig_compare(twig_length_filter($this->env, (isset($context["managedLocales"]) || array_key_exists("managedLocales", $context) ? $context["managedLocales"] : (function () { throw new RuntimeError('Variable "managedLocales" does not exist.', 104, $this->source); })())), 1))) {
// line 105
echo " ";
// line 106
echo " ";
$context["localeNames"] = ["en" => "English", "zh" => "中文", "fr" => "Français"];
// line 107
echo " <div class=\"nav-item max-7 d-flex align-items-center \">
<i class=\"fas fa-globe color-9DE3FF position-relative t-0 mar-6\" aria-hidden=\"true\"></i>
<div class=\"fs-13\">
<select aria-label=\"Language / 语言\" onChange=\"window.location.href = this.value\">
";
// line 111
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["managedLocales"]) || array_key_exists("managedLocales", $context) ? $context["managedLocales"] : (function () { throw new RuntimeError('Variable "managedLocales" does not exist.', 111, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["managedLocale"]) {
// line 112
echo " <option ";
echo (((0 === twig_compare(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.', 112, $this->source); })()), "request", [], "any", false, false, false, 112), "locale", [], "any", false, false, false, 112), $context["managedLocale"]))) ? ("selected") : (""));
echo " lang=\"";
(((0 === twig_compare($context["managedLocale"], "zh"))) ? (print ("zh-CN")) : (print (twig_escape_filter($this->env, $context["managedLocale"], "html", null, true))));
echo "\"
value=\"";
// line 113
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_change_language", ["locale" => $context["managedLocale"], "redirectUrl" => 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.', 113, $this->source); })()), "request", [], "any", false, false, false, 113), "uri", [], "any", false, false, false, 113)]), "html", null, true);
echo "\">
";
// line 114
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, ($context["localeNames"] ?? null), $context["managedLocale"], [], "array", true, true, false, 114) && !(null === twig_get_attribute($this->env, $this->source, ($context["localeNames"] ?? null), $context["managedLocale"], [], "array", false, false, false, 114)))) ? (twig_get_attribute($this->env, $this->source, ($context["localeNames"] ?? null), $context["managedLocale"], [], "array", false, false, false, 114)) : (twig_upper_filter($this->env, $context["managedLocale"]))), "html", null, true);
echo "
</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['managedLocale'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 117
echo " </select>
</div>
</div>
";
}
// line 121
echo " </div>
<div class=\" d-flex rs-top\">
<a target=\"_blank\"
href=\"https://www.linkedin.com/company/viewpoint-behavior-technology/\"
class=\"d-flex br-30 justify-content-center align-items-center c-white\">
<i class=\"fa-brands fa-linkedin-in\"></i>
</a>
<a target=\"_blank\" href=\"https://twitter.com/ViewpointBehav\"
class=\"d-flex max-18 justify-content-center align-items-center c-white\">
<i class=\"fa-brands fa-twitter\"></i>
</a>
<a target=\"_blank\"
href=\"https://www.youtube.com/@viewpointbehaviortechnolog5139\"
class=\"d-flex br-30 justify-content-center align-items-center c-white\">
<i class=\"fa-brands fa-youtube\"></i>
</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"d-none d-lg-block\">
";
// line 143
$this->loadTemplate("commons/navbar.html.twig", "base.html.twig", 143)->display($context);
// line 144
echo " </div>
<div class=\"d-block d-lg-none\">
";
// line 146
$this->loadTemplate("commons/navbarMobile.html.twig", "base.html.twig", 146)->display($context);
// line 147
echo " </div>
</header>
";
// line 177
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 179
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 180
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 181
echo " ";
$this->loadTemplate("front/footer.html.twig", "base.html.twig", 181)->display($context);
// line 182
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 209
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 210
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 556 => 210, 546 => 209, 536 => 182, 533 => 181, 523 => 180, 505 => 179, 495 => 177, 491 => 147, 489 => 146, 485 => 144, 483 => 143, 459 => 121, 453 => 117, 444 => 114, 440 => 113, 433 => 112, 429 => 111, 423 => 107, 420 => 106, 418 => 105, 416 => 104, 408 => 100, 406 => 99, 399 => 94, 389 => 93, 379 => 92, 373 => 91, 359 => 84, 355 => 82, 351 => 80, 349 => 79, 336 => 68, 331 => 67, 326 => 66, 316 => 65, 298 => 54, 288 => 36, 278 => 35, 266 => 31, 262 => 30, 258 => 29, 253 => 28, 243 => 27, 224 => 3, 212 => 211, 210 => 209, 205 => 208, 197 => 202, 193 => 201, 183 => 194, 174 => 188, 170 => 187, 164 => 183, 161 => 180, 159 => 179, 156 => 178, 153 => 93, 151 => 65, 135 => 54, 132 => 53, 130 => 52, 127 => 50, 124 => 48, 122 => 47, 120 => 46, 117 => 44, 115 => 43, 113 => 42, 111 => 41, 107 => 39, 103 => 38, 98 => 37, 96 => 35, 92 => 34, 89 => 33, 87 => 27, 83 => 26, 57 => 3, 54 => 2, 52 => 1,);
}
public function getSourceContext()
{
return new Source("{% set page = getPage(app.request.attributes.get(\"_controller\")) %}
<!DOCTYPE html>
<html lang=\"{% block html_lang %}{{ app.request.locale == 'zh' ? 'zh-CN' : app.request.locale }}{% endblock %}\">
<head>
<!-- Google Tag Manager -->
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start':
new Date().getTime(), event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-TVSNTXH');
</script>
<!-- End Google Tag Manager -->
<meta charset=\"UTF-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0,minimum-scale=1\">
<link rel=\"icon\"
href=\"{{ asset('assets/img/favicon.png') }}\">
{% block metaTags %}
<meta name=\"description\" content=\"{{ page ? page.metaDescription : siteTitle }}\">
<title>{{ page ? page.metaTitle : siteTitle }}</title>
<meta property=\"og:title\" content=\"{{ page ? page.metaTitle : siteTitle }}\">
<meta property=\"og:description\" content=\"{{ page ? page.metaDescription : siteTitle }}\">
{% endblock %}
<meta name=\"theme-color\" content=\"#95D3EC\">
{{ encore_entry_link_tags('app') }}
{% block stylesheets %}
{% endblock %}
<link rel=\"stylesheet\" href=\"{{ asset('assets/libs/openlayers/ol.css') }}\">
<script type=\"text/javascript\" src=\"{{ asset('assets/libs/openlayers/ol.js') }}\"></script>
<link rel=\"stylesheet\" href=\"{{ asset('assets/libs/aos/aos.css') }}\">
{# <!-- Google tag (gtag.js) --> #}
{# <script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-148514144-1\"></script> #}
{# <script> #}
{# window.dataLayer = window.dataLayer || []; #}
{# function gtag() { #}
{# dataLayer.push(arguments); #}
{# } #}
{# gtag('js', new Date()); #}
{# gtag('config', 'UA-148514144-1'); #}
{# </script> #}
</head>
<body data-navbar-search-url=\"{{ path('front_navbar_search') }}\" {% block body_tag %}{% endblock %}>
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-TVSNTXH\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
<div class=\"wrapper\">
<div class=\"background-burger position-fixed t-0 b-0 z-0 zi-9\"></div>
{% block flash %}
{% for label, messages in app.flashes %}
{% for key, message in messages %}
<div class=\"modal fade mat-200\" id=\"flashMessageModal\" tabindex=\"-1\" role=\"dialog\"
aria-labelledby=\"flashMessageModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-body\">
<div class=\"text-right\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div>
{% if label == \"success\" %}
<i class=\"fa fa-check text-success\"></i>
{% else %}
<i class=\"fa fa-warning text-danger\"></i>
{% endif %}
{{ message|trans }}
</div>
</div>
</div>
</div>
</div>
{% endfor %}
{% endfor %}
{% endblock %}
{% block navbar %}
<header>
<div class=\"fixed-top zi-9999 he-47 bgc-95D3EC c-black pay-8 d-flex align-items-center\">
<div class=\"container container-top\">
<div class=\"d-flex align-items-center justify-content-between fs-14 fw-300\">
<h1 class=\" c-white fs-12 fw-500 col may-0\">
{% set h1 = h1|default(null) %}
{{ h1 ?? (page ? page.title : siteTitle) }}
</h1>
<div class=\"col-auto text-right d-flex\">
<div class=\"d-flex align-items-center languages\">
{% if managedLocales|length > 1 %}
{# Chaque langue est affichée dans sa propre langue (« English », « 中文 ») pour rester identifiable quelle que soit la langue courante #}
{% set localeNames = {'en': 'English', 'zh': '中文', 'fr': 'Français'} %}
<div class=\"nav-item max-7 d-flex align-items-center \">
<i class=\"fas fa-globe color-9DE3FF position-relative t-0 mar-6\" aria-hidden=\"true\"></i>
<div class=\"fs-13\">
<select aria-label=\"Language / 语言\" onChange=\"window.location.href = this.value\">
{% for key, managedLocale in managedLocales %}
<option {{ app.request.locale == managedLocale ? 'selected' }} lang=\"{{ managedLocale == 'zh' ? 'zh-CN' : managedLocale }}\"
value=\"{{ path('front_change_language', {'locale':managedLocale, \"redirectUrl\":app.request.uri}) }}\">
{{ localeNames[managedLocale] ?? managedLocale|upper }}
</option>
{% endfor %}
</select>
</div>
</div>
{% endif %}
</div>
<div class=\" d-flex rs-top\">
<a target=\"_blank\"
href=\"https://www.linkedin.com/company/viewpoint-behavior-technology/\"
class=\"d-flex br-30 justify-content-center align-items-center c-white\">
<i class=\"fa-brands fa-linkedin-in\"></i>
</a>
<a target=\"_blank\" href=\"https://twitter.com/ViewpointBehav\"
class=\"d-flex max-18 justify-content-center align-items-center c-white\">
<i class=\"fa-brands fa-twitter\"></i>
</a>
<a target=\"_blank\"
href=\"https://www.youtube.com/@viewpointbehaviortechnolog5139\"
class=\"d-flex br-30 justify-content-center align-items-center c-white\">
<i class=\"fa-brands fa-youtube\"></i>
</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"d-none d-lg-block\">
{% include \"commons/navbar.html.twig\" %}
</div>
<div class=\"d-block d-lg-none\">
{% include \"commons/navbarMobile.html.twig\" %}
</div>
</header>
{# {% for key, category in getCategories() %}
<div>
<a href=\"{{ path('front_products', {\"catSlug\":category.slug}) }}\">
{{ category.title }}
</a>
</div>
{% for key, subCategory in getSubCategories(category) %}
<div>
<a href=\"{{ path('front_products', {\"catSlug\":(subCategory.category ? subCategory.category.slug : 0),'subCatSlug':subCategory.slug}) }}\">
{{ subCategory.title }}
</a>
</div>
{% for key, product in getProducts(subCategory) %}
<div>
<a href=\"{{ getProductUrl(product, subCategory) }}\">
{{ product.title }}
</a>
</div>
{% endfor %}
{% endfor %}
{% endfor %}
{% for key, category in getCategories() %}
<div>
<a href=\"{{ path('front_publications', {'slug':category.slug}) }}\">
{{ category.title }}
</a>
</div>
{% endfor %} #}
{% endblock %}
{% block body %}{% endblock %}
{% block footer %}
{% include \"front/footer.html.twig\" %}
{% endblock %}
<div class=\"position-fixed zi-9999 b-20 r-20 scrollToTopDiv wi-50 d-flex align-items-center justify-content-center bgc-9DC771 c-white br-8\">
<i class=\"fa fa-arrow-up pointer scrollToTop fw-600 fs-15 wi-50 d-flex align-items-center justify-content-center he-50\"></i>
</div>
</div>
{{ encore_entry_script_tags('app') }}
<script type=\"text/javascript\" src=\"{{ asset('assets/libs/aos/aos.js') }}\"></script>
<script>
AOS.init({
once: true,
});
</script>
<script type=\"text/javascript\" src=\"{{ asset('assets/libs/cookieconsent/cookie-consent.js') }}\"></script>
<script type=\"text/javascript\">
document.addEventListener('DOMContentLoaded', function () {
cookieconsent.run({
\"notice_banner_type\": \"simple\",
\"consent_type\": \"implied\",
\"palette\": \"light\",
\"language\": \"{{ app.request.locale == 'fr' ? 'fr' : 'en' }}\",
\"website_name\": \"{{ siteTitle }}\",
\"change_preferences_selector\": \"#changePreferences\"
});
});
</script>
{# www.recaptcha.net : domaine officiel de reCAPTCHA accessible depuis la Chine continentale (www.google.com y est bloqué) #}
<script src=\"https://www.recaptcha.net/recaptcha/api.js?hl={{ app.request.locale == 'zh' ? 'zh-CN' : app.request.locale }}\" async defer></script>
{% block javascripts %}
{% endblock %}
</body>
</html>
", "base.html.twig", "/home/hlcdisb-gcesarine/www/viewpoint_dev/templates/base.html.twig");
}
}