<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* theme/default/partials/base.html.twig */
class __TwigTemplate_3cb84f322496ff5e8ee50843daf9d986 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'custom_class' => [$this, 'block_custom_class'],
'navbar' => [$this, 'block_navbar'],
'body' => [$this, 'block_body'],
'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", "theme/default/partials/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", "theme/default/partials/base.html.twig"));
// line 1
yield "<!doctype html>
<html lang=\"";
// line 2
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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);
yield "\">
<head>
<meta charset=\"utf-8\" />
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
<link rel=\"icon\" type=\"image/x-icon\" href=\"";
// line 6
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/favicon/favicon.ico"), "html", null, true);
yield "\" />
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"";
// line 7
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/favicon/favicon-16x16.png"), "html", null, true);
yield "\" />
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"";
// line 8
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/favicon/favicon-32x32.png"), "html", null, true);
yield "\" />
";
// line 10
$___internal_parse_0_ = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 11
yield " ";
yield $this->extensions['Leogout\Bundle\SeoBundle\Twig\SeoExtension']->seo();
yield "
<meta property=\"og:locale\" content=\"fr_FR\" />
<meta property=\"og:site_name\" content=\"";
// line 13
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["site_parameters"] ?? null), "getParameters", [], "method", false, true, false, 13), "titre", [], "any", true, true, false, 13)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["site_parameters"] ?? null), "getParameters", [], "method", false, true, false, 13), "titre", [], "any", false, false, false, 13), "")) : ("")), "html", null, true);
yield "\" />
<meta name=\"robots\" content= \"";
// line 14
if ((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['App\Twig\SiteConfigExtension']->ParametreSiteFunction(), "metaindex", [], "any", false, false, false, 14) == 1)) {
yield "INDEX";
} else {
yield "NOINDEX";
}
yield " , ";
if ((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['App\Twig\SiteConfigExtension']->ParametreSiteFunction(), "metafollow", [], "any", false, false, false, 14) == 1)) {
yield "FOLLOW";
} else {
yield "NOFOLLOW";
}
yield "\">
";
return; yield '';
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 10
yield Twig\Extension\CoreExtension::spaceless($___internal_parse_0_);
// line 16
yield "
";
// line 17
$context["languages"] = $this->extensions['App\Twig\AppExtension']->LanguagesFrontFunction();
// line 18
yield " ";
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["languages"]) || array_key_exists("languages", $context) ? $context["languages"] : (function () { throw new RuntimeError('Variable "languages" does not exist.', 18, $this->source); })())) > 1)) {
// line 19
yield " ";
yield $this->env->getFunction('hreflang')->getCallable()();
yield "
";
}
// line 21
yield "
";
// line 22
yield $this->env->getFunction('codeHead')->getCallable()();
yield "
";
// line 23
yield $this->env->getFunction('canonicalUrl')->getCallable()();
yield "
";
// line 24
yield $this->env->getFunction('schemaOrg')->getCallable()();
yield "
";
// line 25
yield $this->env->getFunction('schemaOrgGeneral')->getCallable()();
yield "
";
// line 27
if (CoreExtension::getAttribute($this->env, $this->source, $this->extensions['App\Twig\SiteConfigExtension']->ParametreSiteFunction(), "codehead", [], "any", false, false, false, 27)) {
// line 28
yield " ";
yield CoreExtension::getAttribute($this->env, $this->source, $this->extensions['App\Twig\SiteConfigExtension']->ParametreSiteFunction(), "codehead", [], "any", false, false, false, 28);
yield "
";
}
// line 30
yield "
";
// line 31
$___internal_parse_1_ = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 32
yield " ";
yield from $this->unwrap()->yieldBlock('stylesheets', $context, $blocks);
// line 44
yield " ";
return; yield '';
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 31
yield Twig\Extension\CoreExtension::spaceless($___internal_parse_1_);
// line 45
yield "
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/lazysizes/5.3.2/lazysizes.min.js\" ></script>
</head>
";
// line 49
$___internal_parse_2_ = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 50
yield " <body class=\"";
yield from $this->unwrap()->yieldBlock('custom_class', $context, $blocks);
yield "\">
";
// line 51
yield from $this->unwrap()->yieldBlock('navbar', $context, $blocks);
// line 54
yield "
<main>";
// line 55
yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
yield "</main>
";
// line 56
if (CoreExtension::getAttribute($this->env, $this->source, $this->extensions['App\Twig\SiteConfigExtension']->ParametreSiteFunction(), "actifwhatsapp", [], "any", false, false, false, 56)) {
// line 57
yield " <div id=\"floating-wpp\"></div>
";
}
// line 59
yield "
";
// line 62
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\FrontEnd\\FeatureController::renderFooter", ["TypeMenu" => "Footer"]));
yield "
";
// line 64
yield from $this->unwrap()->yieldBlock('javascripts', $context, $blocks);
// line 68
yield "
";
// line 70
yield $this->env->getFunction('codeBody')->getCallable()();
yield "
";
// line 71
if (CoreExtension::getAttribute($this->env, $this->source, $this->extensions['App\Twig\SiteConfigExtension']->ParametreSiteFunction(), "codebody", [], "any", false, false, false, 71)) {
// line 72
yield " ";
yield CoreExtension::getAttribute($this->env, $this->source, $this->extensions['App\Twig\SiteConfigExtension']->ParametreSiteFunction(), "codebody", [], "any", false, false, false, 72);
yield "
";
}
// line 74
yield " </body>
";
return; yield '';
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 49
yield Twig\Extension\CoreExtension::spaceless($___internal_parse_2_);
// line 76
yield "</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield '';
}
// line 32
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 33
yield " ";
// line 34
yield " <style>
";
// line 35
yield Twig\Extension\CoreExtension::source($this->env, ("@PUBLIC" . "/theme.min.css"));
yield "
";
// line 36
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->getWebpackCssFiles("frontend"));
foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
// line 37
yield " ";
yield Twig\Extension\CoreExtension::source($this->env, ("@PUBLIC" . $context["file"]));
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 39
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['App\Twig\SiteConfigExtension']->ParametreSiteFunction(), "customstylecss", [], "any", false, false, false, 39) != null)) {
// line 40
yield " ";
yield CoreExtension::getAttribute($this->env, $this->source, $this->extensions['App\Twig\SiteConfigExtension']->ParametreSiteFunction(), "customstylecss", [], "any", false, false, false, 40);
yield "
";
}
// line 42
yield " </style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 50
public function block_custom_class($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", "custom_class"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "custom_class"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 51
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 52
yield " ";
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\FrontEnd\\FeatureController::renderMenu"));
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 55
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"));
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 64
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 65
yield " <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js\"></script>
";
// line 66
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("frontend");
yield "
";
// line 67
yield Twig\Extension\CoreExtension::include($this->env, $context, (("theme/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 67, $this->source); })()), "request", [], "any", false, false, false, 67), "server", [], "any", false, false, false, 67), "get", ["APP_THEME"], "method", false, false, false, 67)) . "/partials/cookies/cookie.html.twig"), [], false);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "theme/default/partials/base.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 366 => 67, 362 => 66, 359 => 65, 349 => 64, 329 => 55, 315 => 52, 305 => 51, 286 => 50, 274 => 42, 268 => 40, 265 => 39, 256 => 37, 252 => 36, 248 => 35, 245 => 34, 243 => 33, 233 => 32, 221 => 76, 219 => 49, 214 => 74, 208 => 72, 206 => 71, 202 => 70, 198 => 68, 196 => 64, 191 => 62, 186 => 59, 182 => 57, 180 => 56, 176 => 55, 173 => 54, 171 => 51, 166 => 50, 164 => 49, 158 => 45, 156 => 31, 152 => 44, 149 => 32, 147 => 31, 144 => 30, 138 => 28, 136 => 27, 131 => 25, 127 => 24, 123 => 23, 119 => 22, 116 => 21, 110 => 19, 107 => 18, 105 => 17, 102 => 16, 100 => 10, 84 => 14, 80 => 13, 74 => 11, 72 => 10, 67 => 8, 63 => 7, 59 => 6, 52 => 2, 49 => 1,);
}
public function getSourceContext()
{
return new Source("<!doctype html>
<html lang=\"{{ app.request.locale }}\">
<head>
<meta charset=\"utf-8\" />
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
<link rel=\"icon\" type=\"image/x-icon\" href=\"{{asset('/favicon/favicon.ico')}}\" />
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"{{ asset('/favicon/favicon-16x16.png') }}\" />
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"{{ asset('/favicon/favicon-32x32.png') }}\" />
{% apply spaceless %}
{{ leogout_seo() }}
<meta property=\"og:locale\" content=\"fr_FR\" />
<meta property=\"og:site_name\" content=\"{{site_parameters.getParameters().titre|default('')}}\" />
<meta name=\"robots\" content= \"{% if ParametreSite().metaindex == 1 %}INDEX{% else %}NOINDEX{% endif %} , {% if ParametreSite().metafollow == 1 %}FOLLOW{% else %}NOFOLLOW{% endif %}\">
{% endapply %}
{% set languages = LanguagesFront() %}
{% if languages|length > 1 %}
{{hreflang()|raw}}
{% endif %}
{{ codeHead()|raw }}
{{ canonicalUrl()|raw }}
{{ schemaOrg()|raw }}
{{ schemaOrgGeneral()|raw }}
{% if ParametreSite().codehead %}
{{ParametreSite().codehead|raw}}
{% endif %}
{% apply spaceless %}
{% block stylesheets %}
{# <link rel=\"stylesheet\" href=\"{{ asset('theme.min.css') }}\"> #}
<style>
{{ source('@PUBLIC' ~ '/theme.min.css') }}
{% for file in encore_entry_css_files('frontend') %}
{{ source('@PUBLIC' ~ file) }}
{% endfor %}
{% if ParametreSite().customstylecss != null %}
{{ParametreSite().customstylecss|raw}}
{% endif %}
</style>
{% endblock %}
{% endapply %}
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/lazysizes/5.3.2/lazysizes.min.js\" ></script>
</head>
{% apply spaceless %}
<body class=\"{% block custom_class %}{% endblock %}\">
{% block navbar %}
{{ render(controller('App\\\\Controller\\\\FrontEnd\\\\FeatureController::renderMenu')) }}
{% endblock %}
<main>{% block body %} {% endblock %}</main>
{% if ParametreSite().actifwhatsapp %}
<div id=\"floating-wpp\"></div>
{% endif %}
{{ render(controller('App\\\\Controller\\\\FrontEnd\\\\FeatureController::renderFooter',{ 'TypeMenu': 'Footer' })) }}
{% block javascripts %}
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js\"></script>
{{ encore_entry_script_tags('frontend') }}
{{ include ('theme/'~ app.request.server.get('APP_THEME') ~'/partials/cookies/cookie.html.twig',{}, with_context = false)}}
{% endblock %}
{{ codeBody()|raw }}
{% if ParametreSite().codebody %}
{{ParametreSite().codebody|raw}}
{% endif %}
</body>
{% endapply %}
</html>
", "theme/default/partials/base.html.twig", "/var/www/vhosts/klean.studiojna.fr/httpdocs/templates/theme/default/partials/base.html.twig");
}
}