<?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\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* pages/_includes/base/_header.html.twig */
class __TwigTemplate_9abc3d469a28ed4ad35df14bcb230fe2 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "pages/_includes/base/_header.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/_includes/base/_header.html.twig"));
// line 1
$context["mode"] = ((array_key_exists("mode", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 1, $this->source); })()), "desktop")) : ("desktop"));
// line 2
yield "
";
// line 3
$context["headerSnippet"] = $this->extensions['Sulu\Bundle\SnippetBundle\Twig\SnippetAreaTwigExtension']->loadByArea("header_croisiland_area", "main-website");
// line 4
if ( !(null === (isset($context["headerSnippet"]) || array_key_exists("headerSnippet", $context) ? $context["headerSnippet"] : (function () { throw new RuntimeError('Variable "headerSnippet" does not exist.', 4, $this->source); })()))) {
// line 5
yield " ";
yield from $this->load("_snippets/header_croisiland.html.twig", 5)->unwrap()->yield(CoreExtension::merge($context, ["content" => ((CoreExtension::getAttribute($this->env, $this->source, // line 6
($context["headerSnippet"] ?? null), "content", [], "any", true, true, false, 6)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["headerSnippet"]) || array_key_exists("headerSnippet", $context) ? $context["headerSnippet"] : (function () { throw new RuntimeError('Variable "headerSnippet" does not exist.', 6, $this->source); })()), "content", [], "any", false, false, false, 6), null)) : (null)), "mode" => // line 7
(isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 7, $this->source); })())]));
} else {
// line 10
yield " <div class=\"header-default\">
<p class=\"text-muted\">
Header par défaut - Veuillez définir un snippet pour l\x27area \x27header_croisiland_area\x27 dans l\x27admin Sulu.
</p>
</div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/_includes/base/_header.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 64 => 10, 61 => 7, 60 => 6, 58 => 5, 56 => 4, 54 => 3, 51 => 2, 49 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% set mode = mode|default(\x27desktop\x27) %}
{% set headerSnippet = sulu_snippet_load_by_area(\x27header_croisiland_area\x27, \x27main-website\x27) %}
{% if headerSnippet is not null %}
{% include \x27_snippets/header_croisiland.html.twig\x27 with {
\x27content\x27: headerSnippet.content|default(null),
\x27mode\x27: mode,
} %}
{% else %}
<div class=\"header-default\">
<p class=\"text-muted\">
Header par défaut - Veuillez définir un snippet pour l\x27area \x27header_croisiland_area\x27 dans l\x27admin Sulu.
</p>
</div>
{% endif %}
", "pages/_includes/base/_header.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/_includes/base/_header.html.twig");
}
}