<?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;
/* _snippets/header_croisiland.html.twig */
class __TwigTemplate_86f99a49a5598d47f4d2c4c1759ca7a6 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 = [
'header_burger' => [$this, 'block_header_burger'],
'header_before' => [$this, 'block_header_before'],
'header_account_bar' => [$this, 'block_header_account_bar'],
'header_phone' => [$this, 'block_header_phone'],
'header_hours' => [$this, 'block_header_hours'],
'header_account' => [$this, 'block_header_account'],
'header_burger_close' => [$this, 'block_header_burger_close'],
'header_phone_mobile' => [$this, 'block_header_phone_mobile'],
'header_hours_mobile' => [$this, 'block_header_hours_mobile'],
];
}
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", "_snippets/header_croisiland.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "_snippets/header_croisiland.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 "<div class=\"site-header__inner\">
\t<div class=\"site-header__bar\">
\t\t";
// line 4
if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 4, $this->source); })()) == "mobile")) {
// line 5
yield "\t\t\t";
yield from $this->unwrap()->yieldBlock('header_burger', $context, $blocks);
// line 10
yield "\t\t";
}
// line 11
yield "\t\t<div class=\"site-header__brand\">
\t\t\t<a class=\"site-header__logo logo\" href=\"";
// line 12
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentRootPath(), "html", null, true);
yield "\">
\t\t\t\t";
// line 13
yield from $this->load("pages/_includes/icons/croisiland-logo.svg", 13)->unwrap()->yield($context);
// line 14
yield "\t\t\t</a>
\t\t\t";
// line 16
if ((((array_key_exists("webspaceKey", $context) && ((isset($context["webspaceKey"]) || array_key_exists("webspaceKey", $context) ? $context["webspaceKey"] : (function () { throw new RuntimeError('Variable "webspaceKey" does not exist.', 16, $this->source); })()) != "main-website")) && CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", true, true, false, 16)) || (($tmp = ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "isPartnerDevelopment", [], "any", true, true, false, 16)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 16, $this->source); })()), "isPartnerDevelopment", [], "any", false, false, false, 16), false)) : (false))) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
// line 17
yield "\t\t\t\t<div id=\"logo-partner\" class=\"site-header__partner\">
\t\t\t\t\t\t";
// line 18
if ((((( !(null === CoreExtension::getAttribute($this->env, $this->source, // line 19
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 19, $this->source); })()), "user", [], "any", false, false, false, 19)) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 20
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 20, $this->source); })()), "user", [], "any", false, false, false, 20), "partnerToken", [], "any", false, false, false, 20))) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 21
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 21, $this->source); })()), "user", [], "any", false, false, false, 21), "partnerToken", [], "any", false, false, false, 21), "partner", [], "any", false, false, false, 21))) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 22
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 22, $this->source); })()), "user", [], "any", false, false, false, 22), "partnerToken", [], "any", false, false, false, 22), "partner", [], "any", false, false, false, 22), "logo", [], "any", false, false, false, 22))) || (CoreExtension::getAttribute($this->env, $this->source, // line 24
($context["content"] ?? null), "isPartnerDevelopment", [], "any", true, true, false, 24) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 24, $this->source); })()), "isPartnerDevelopment", [], "any", false, false, false, 24) == true)))) {
// line 26
yield "\t\t\t\t\t\t\t
\t\t\t\t\t\t\t";
// line 28
yield "\t\t\t\t\t\t\t";
// line 29
yield "\t\t\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "isPartnerDevelopment", [], "any", true, true, false, 29) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 29, $this->source); })()), "isPartnerDevelopment", [], "any", false, false, false, 29) == true))) {
// line 30
yield "\t\t\t\t\t\t\t\t";
$context["partnerLogo"] = "/img/placeholder-company.svg";
// line 31
yield "\t\t\t\t\t\t\t";
} else {
// line 32
yield "\t\t\t\t\t\t\t\t";
$context["partnerLogo"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, true, false, 32), "partnerToken", [], "any", false, true, false, 32), "partner", [], "any", false, true, false, 32), "logo", [], "any", true, true, false, 32)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 32, $this->source); })()), "user", [], "any", false, false, false, 32), "partnerToken", [], "any", false, false, false, 32), "partner", [], "any", false, false, false, 32), "logo", [], "any", false, false, false, 32), "")) : (""));
// line 33
yield "\t\t\t\t\t\t\t";
}
// line 34
yield "\t\t\t\t\t\t\t<div class=\"logo-partner\">
\t\t\t\t\t\t\t\t<img class=\"small-logo\" src=\"";
// line 35
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["partnerLogo"]) || array_key_exists("partnerLogo", $context) ? $context["partnerLogo"] : (function () { throw new RuntimeError('Variable "partnerLogo" does not exist.', 35, $this->source); })()), "html", null, true);
yield "\" alt=\"";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, true, false, 35), "partnerToken", [], "any", false, true, false, 35), "partner", [], "any", false, true, false, 35), "code", [], "any", true, true, false, 35)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 35, $this->source); })()), "user", [], "any", false, false, false, 35), "partnerToken", [], "any", false, false, false, 35), "partner", [], "any", false, false, false, 35), "code", [], "any", false, false, false, 35), "")) : ("")), "html", null, true);
yield "\" title=\"";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, true, false, 35), "partnerToken", [], "any", false, true, false, 35), "partner", [], "any", false, true, false, 35), "name", [], "any", true, true, false, 35)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 35, $this->source); })()), "user", [], "any", false, false, false, 35), "partnerToken", [], "any", false, false, false, 35), "partner", [], "any", false, false, false, 35), "name", [], "any", false, false, false, 35), "")) : ("")), "html", null, true);
yield "\">
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
} else {
// line 38
yield "\t\t\t\t\t\t\t<span class=\"text-danger\">";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header.partner.logo_missing"), "html", null, true);
yield "</span>
\t\t\t\t\t\t";
}
// line 40
yield "\t\t\t\t\t</div>
\t\t\t\t\t";
// line 41
yield from $this->unwrap()->yieldBlock('header_before', $context, $blocks);
// line 48
yield "\t\t\t";
}
// line 49
yield "\t\t</div>
\t\t
\t\t";
// line 52
if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 52, $this->source); })()) == "mobile")) {
// line 53
yield "\t\t\t";
yield from $this->unwrap()->yieldBlock('header_account_bar', $context, $blocks);
// line 59
yield "\t\t";
}
// line 60
yield "
\t\t";
// line 64
yield "
\t\t";
// line 65
if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 65, $this->source); })()) == "desktop")) {
// line 66
yield "\t\t\t<div class=\"site-header__meta\">
\t\t\t\t";
// line 67
yield from $this->unwrap()->yieldBlock('header_phone', $context, $blocks);
// line 70
yield "\t\t\t\t";
yield from $this->unwrap()->yieldBlock('header_hours', $context, $blocks);
// line 73
yield "\t\t\t\t";
yield from $this->unwrap()->yieldBlock('header_account', $context, $blocks);
// line 79
yield "\t\t\t</div>
\t\t";
}
// line 81
yield "\t</div>
\t<nav class=\"site-header__primary\" aria-label=\"";
// line 83
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header.navigation.primary"), "html", null, true);
yield "\">
\t\t";
// line 84
if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 84, $this->source); })()) == "mobile")) {
// line 85
yield "\t\t\t<div class=\"site-header__drawer\" id=\"site-header-drawer\">
\t\t\t\t";
// line 86
yield from $this->unwrap()->yieldBlock('header_burger_close', $context, $blocks);
// line 89
yield "\t\t\t\t<div class=\"site-header__meta site-header__meta--stack\">
\t\t\t\t\t";
// line 90
yield from $this->unwrap()->yieldBlock('header_phone_mobile', $context, $blocks);
// line 93
yield "\t\t\t\t\t";
yield from $this->unwrap()->yieldBlock('header_hours_mobile', $context, $blocks);
// line 96
yield "\t\t\t\t</div>
\t\t";
}
// line 98
yield "
\t\t\t";
// line 99
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "items", [], "any", true, true, false, 99) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 99, $this->source); })()), "items", [], "any", false, false, false, 99)))) {
// line 100
yield "\t\t\t\t<ul class=\"site-header__list\">
\t\t\t\t\t";
// line 101
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 101, $this->source); })()), "items", [], "any", false, false, false, 101));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 102
yield "\t\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 102) == "navigation_item")) {
// line 103
yield "\t\t\t\t\t\t\t";
[$context["menuLabel"], $context["menuImage"], $context["menuImageLink"]] = ["menuLabel", "menuImage", "menuImageLink"];
// line 104
yield "\t\t\t\t\t\t\t<li class=\"site-header__item accordion br1\" data-menu=\"";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["menuLabel"]) || array_key_exists("menuLabel", $context) ? $context["menuLabel"] : (function () { throw new RuntimeError('Variable "menuLabel" does not exist.', 104, $this->source); })()), "html", null, true);
yield "\" data-url=\"\">
\t\t\t\t\t\t\t\t<button type=\"button\" class=\"site-header__trigger accordion-trigger br1\" title=\"";
// line 105
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "multipleLabel", [], "any", false, false, false, 105), "html", null, true);
yield "\" data-href=\"\">
\t\t\t\t\t\t\t\t\t";
// line 106
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "multipleLabel", [], "any", false, false, false, 106), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t";
// line 107
yield (string) $this->env->getFunction('getLucidIcon')->getCallable()("chevron-down", ["class" => "accordion-chevron-icon", "aria-hidden" => "true", "data-menu" => CoreExtension::getAttribute($this->env, $this->source, $context["item"], "multipleLabel", [], "any", false, false, false, 107)]);
yield "
\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t";
// line 109
yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "pages/_includes/base/sub_menu/_submenu.html.twig", ["item" => // line 110
$context["item"], "mode" => // line 111
(isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 111, $this->source); })())]);
// line 112
yield "
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 114
$context["item"], "type", [], "any", false, false, false, 114) == "simple_link")) {
// line 115
yield "\t\t\t\t\t\t\t<li class=\"site-header__item site-header__link\">
\t\t\t\t\t\t\t\t<a href=\"";
// line 116
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "link", [], "any", false, false, false, 116), "html", null, true);
yield "\" class=\"site-header__link\">";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "text", [], "any", false, false, false, 116), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t";
}
// line 119
yield "\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 120
yield "\t\t\t\t</ul>
\t\t\t";
}
// line 122
yield "
\t\t";
// line 123
if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 123, $this->source); })()) == "mobile")) {
// line 124
yield "\t\t\t</div>
\t\t";
}
// line 126
yield "\t</nav>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_burger(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(), "block", "header_burger"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_burger"));
// line 6
yield "\t\t\t\t<button type=\"button\" class=\"site-header__menu-btn btn br1\" id=\"site-header-menu-open\" aria-expanded=\"false\" aria-controls=\"site-header-drawer\">
\t\t\t\t\t";
// line 7
yield (string) $this->env->getFunction('getLucidIcon')->getCallable()("menu", ["class" => "site-header__menu-btn-icon icon-menu"]);
yield "
\t\t\t\t</button>
\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 41
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_before(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(), "block", "header_before"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_before"));
// line 42
yield "\t\t\t\t\t\t";
if (((array_key_exists("webspaceKey", $context) && ((isset($context["webspaceKey"]) || array_key_exists("webspaceKey", $context) ? $context["webspaceKey"] : (function () { throw new RuntimeError('Variable "webspaceKey" does not exist.', 42, $this->source); })()) != "main-website")) && !(null === 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.', 42, $this->source); })()), "user", [], "any", false, false, false, 42)))) {
// line 43
yield "\t\t\t\t\t\t\t<div id=\"partner-message\">
\t\t\t\t\t\t\t\t";
// line 44
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("website.ui.partner_banner", ["%partnerName%" => CoreExtension::getAttribute($this->env, $this->source, 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.', 44, $this->source); })()), "user", [], "any", false, false, false, 44), "partnerToken", [], "any", false, false, false, 44), "partner", [], "any", false, false, false, 44), "name", [], "any", false, false, false, 44)]), "html", null, true);
yield "
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 47
yield "\t\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 53
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_account_bar(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(), "block", "header_account_bar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_account_bar"));
// line 54
yield "\t\t\t\t";
yield from $this->load("pages/_includes/base/account/_header_menu.html.twig", 54)->unwrap()->yield(CoreExtension::toArray(["isConnectedUser" => ((CoreExtension::getAttribute($this->env, $this->source, // line 55
($context["content"] ?? null), "isConnectedUser", [], "any", true, true, false, 55)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 55, $this->source); })()), "isConnectedUser", [], "any", false, false, false, 55), false)) : (false)), "mode" => // line 56
(isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 56, $this->source); })())]));
// line 58
yield "\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 67
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_phone(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(), "block", "header_phone"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_phone"));
// line 68
yield "\t\t\t\t\t";
yield from $this->load("pages/_includes/base/_phone.html.twig", 68)->unwrap()->yield($context);
// line 69
yield "\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 70
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_hours(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(), "block", "header_hours"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_hours"));
// line 71
yield "\t\t\t\t\t";
yield from $this->load("pages/_includes/base/_hours.html.twig", 71)->unwrap()->yield($context);
// line 72
yield "\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 73
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_account(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(), "block", "header_account"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_account"));
// line 74
yield "\t\t\t\t\t";
yield from $this->load("pages/_includes/base/account/_header_menu.html.twig", 74)->unwrap()->yield(CoreExtension::toArray(["isConnectedUser" => ((CoreExtension::getAttribute($this->env, $this->source, // line 75
($context["content"] ?? null), "isConnectedUser", [], "any", true, true, false, 75)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 75, $this->source); })()), "isConnectedUser", [], "any", false, false, false, 75), false)) : (false)), "mode" => // line 76
(isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 76, $this->source); })())]));
// line 78
yield "\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 86
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_burger_close(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(), "block", "header_burger_close"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_burger_close"));
// line 87
yield "\t\t\t\t\t";
yield from $this->load("pages/_includes/base/_burger_close.html.twig", 87)->unwrap()->yield($context);
// line 88
yield "\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 90
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_phone_mobile(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(), "block", "header_phone_mobile"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_phone_mobile"));
// line 91
yield "\t\t\t\t\t\t";
yield from $this->load("pages/_includes/base/_phone.html.twig", 91)->unwrap()->yield($context);
// line 92
yield "\t\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 93
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_hours_mobile(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(), "block", "header_hours_mobile"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_hours_mobile"));
// line 94
yield "\t\t\t\t\t\t";
yield from $this->load("pages/_includes/base/_hours.html.twig", 94)->unwrap()->yield($context);
// line 95
yield "\t\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "_snippets/header_croisiland.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 566 => 95, 563 => 94, 550 => 93, 539 => 92, 536 => 91, 523 => 90, 512 => 88, 509 => 87, 496 => 86, 485 => 78, 483 => 76, 482 => 75, 480 => 74, 467 => 73, 456 => 72, 453 => 71, 440 => 70, 429 => 69, 426 => 68, 413 => 67, 402 => 58, 400 => 56, 399 => 55, 397 => 54, 384 => 53, 373 => 47, 367 => 44, 364 => 43, 361 => 42, 348 => 41, 334 => 7, 331 => 6, 318 => 5, 305 => 126, 301 => 124, 299 => 123, 296 => 122, 292 => 120, 277 => 119, 269 => 116, 266 => 115, 264 => 114, 260 => 112, 258 => 111, 257 => 110, 256 => 109, 251 => 107, 247 => 106, 243 => 105, 238 => 104, 235 => 103, 232 => 102, 215 => 101, 212 => 100, 210 => 99, 207 => 98, 203 => 96, 200 => 93, 198 => 90, 195 => 89, 193 => 86, 190 => 85, 188 => 84, 184 => 83, 180 => 81, 176 => 79, 173 => 73, 170 => 70, 168 => 67, 165 => 66, 163 => 65, 160 => 64, 157 => 60, 154 => 59, 151 => 53, 149 => 52, 144 => 49, 141 => 48, 139 => 41, 136 => 40, 130 => 38, 120 => 35, 117 => 34, 114 => 33, 111 => 32, 108 => 31, 105 => 30, 102 => 29, 100 => 28, 97 => 26, 95 => 24, 94 => 22, 93 => 21, 92 => 20, 91 => 19, 90 => 18, 87 => 17, 85 => 16, 81 => 14, 79 => 13, 75 => 12, 72 => 11, 69 => 10, 66 => 5, 64 => 4, 60 => 2, 58 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% set mode = mode|default(\x27desktop\x27) %}
<div class=\"site-header__inner\">
\t<div class=\"site-header__bar\">
\t\t{% if mode == \x27mobile\x27 %}
\t\t\t{% block header_burger %}
\t\t\t\t<button type=\"button\" class=\"site-header__menu-btn btn br1\" id=\"site-header-menu-open\" aria-expanded=\"false\" aria-controls=\"site-header-drawer\">
\t\t\t\t\t{{ getLucidIcon(\x27menu\x27, {\x27class\x27: \x27site-header__menu-btn-icon icon-menu\x27}) }}
\t\t\t\t</button>
\t\t\t{% endblock %}
\t\t{% endif %}
\t\t<div class=\"site-header__brand\">
\t\t\t<a class=\"site-header__logo logo\" href=\"{{ sulu_content_root_path() }}\">
\t\t\t\t{% include \x27pages/_includes/icons/croisiland-logo.svg\x27 %}
\t\t\t</a>
\t\t\t{% if webspaceKey is defined and webspaceKey != \x27main-website\x27 and app.user is defined or content.isPartnerDevelopment|default(false) %}
\t\t\t\t<div id=\"logo-partner\" class=\"site-header__partner\">
\t\t\t\t\t\t{% if
app.user is not null
and app.user.partnerToken is not null
and app.user.partnerToken.partner is not null
and app.user.partnerToken.partner.logo is not null
\t\t\t\t\t\t\tor content.isPartnerDevelopment is defined and content.isPartnerDevelopment == true
%}
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t{# {% set partnerLogo = app.user.partnerToken.partner.logo %} #}
\t\t\t\t\t\t\t{# A supprimer en phase de production #}
\t\t\t\t\t\t\t{% if content.isPartnerDevelopment is defined and content.isPartnerDevelopment == true %}
\t\t\t\t\t\t\t\t{% set partnerLogo = \x27/img/placeholder-company.svg\x27 %}
\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t{% set partnerLogo = app.user.partnerToken.partner.logo|default(\x27\x27) %}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t<div class=\"logo-partner\">
\t\t\t\t\t\t\t\t<img class=\"small-logo\" src=\"{{ partnerLogo }}\" alt=\"{{ app.user.partnerToken.partner.code|default(\x27\x27) }}\" title=\"{{ app.user.partnerToken.partner.name|default(\x27\x27) }}\">
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t<span class=\"text-danger\">{{ \x27header.partner.logo_missing\x27|trans }}</span>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t\t{% block header_before %}
\t\t\t\t\t\t{% if webspaceKey is defined and webspaceKey != \x27main-website\x27 and app.user is not null %}
\t\t\t\t\t\t\t<div id=\"partner-message\">
\t\t\t\t\t\t\t\t{{ \x27website.ui.partner_banner\x27|trans({\x27%partnerName%\x27: app.user.partnerToken.partner.name}) }}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endblock %}
\t\t\t{% endif %}
\t\t</div>
\t\t
\t\t{% if mode == \x27mobile\x27 %}
\t\t\t{% block header_account_bar %}
\t\t\t\t{% include \x27pages/_includes/base/account/_header_menu.html.twig\x27 with {
\t\t\t\t\tisConnectedUser: content.isConnectedUser|default(false),
\t\t\t\t\tmode: mode,
\t\t\t\t} only %}
\t\t\t{% endblock %}
\t\t{% endif %}
\t\t{# {% block header_research %}
\t\t\t{% include \x27pages/_includes/base/sub_menu/_research.html.twig\x27 %}
\t\t{% endblock %} #}
\t\t{% if mode == \x27desktop\x27 %}
\t\t\t<div class=\"site-header__meta\">
\t\t\t\t{% block header_phone %}
\t\t\t\t\t{% include \x27pages/_includes/base/_phone.html.twig\x27 %}
\t\t\t\t{% endblock %}
\t\t\t\t{% block header_hours %}
\t\t\t\t\t{% include \x27pages/_includes/base/_hours.html.twig\x27 %}
\t\t\t\t{% endblock %}
\t\t\t\t{% block header_account %}
\t\t\t\t\t{% include \x27pages/_includes/base/account/_header_menu.html.twig\x27 with {
\t\t\t\t\t\tisConnectedUser: content.isConnectedUser|default(false),
\t\t\t\t\t\tmode: mode,
\t\t\t\t\t} only %}
\t\t\t\t{% endblock %}
\t\t\t</div>
\t\t{% endif %}
\t</div>
\t<nav class=\"site-header__primary\" aria-label=\"{{ \x27header.navigation.primary\x27|trans }}\">
\t\t{% if mode == \x27mobile\x27 %}
\t\t\t<div class=\"site-header__drawer\" id=\"site-header-drawer\">
\t\t\t\t{% block header_burger_close %}
\t\t\t\t\t{% include \x27pages/_includes/base/_burger_close.html.twig\x27 %}
\t\t\t\t{% endblock %}
\t\t\t\t<div class=\"site-header__meta site-header__meta--stack\">
\t\t\t\t\t{% block header_phone_mobile %}
\t\t\t\t\t\t{% include \x27pages/_includes/base/_phone.html.twig\x27 %}
\t\t\t\t\t{% endblock %}
\t\t\t\t\t{% block header_hours_mobile %}
\t\t\t\t\t\t{% include \x27pages/_includes/base/_hours.html.twig\x27 %}
\t\t\t\t\t{% endblock %}
\t\t\t\t</div>
\t\t{% endif %}
\t\t\t{% if content.items is defined and content.items is not empty %}
\t\t\t\t<ul class=\"site-header__list\">
\t\t\t\t\t{% for item in content.items %}
\t\t\t\t\t\t{% if item.type == \x27navigation_item\x27 %}
\t\t\t\t\t\t\t{% set menuLabel, menuImage, menuImageLink = \x27menuLabel\x27, \x27menuImage\x27, \x27menuImageLink\x27 %}
\t\t\t\t\t\t\t<li class=\"site-header__item accordion br1\" data-menu=\"{{ menuLabel }}\" data-url=\"\">
\t\t\t\t\t\t\t\t<button type=\"button\" class=\"site-header__trigger accordion-trigger br1\" title=\"{{ item.multipleLabel }}\" data-href=\"\">
\t\t\t\t\t\t\t\t\t{{ item.multipleLabel }}
\t\t\t\t\t\t\t\t\t{{ getLucidIcon(\x27chevron-down\x27, {\x27class\x27: \x27accordion-chevron-icon\x27, \x27aria-hidden\x27: \x27true\x27, \x27data-menu\x27: item.multipleLabel }) }}
\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t{{ include(\x27pages/_includes/base/sub_menu/_submenu.html.twig\x27, {
\t\t\t\t\t\t\t\t\titem: item,
\t\t\t\t\t\t\t\t\tmode: mode
\t\t\t\t\t\t\t\t}) }}
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t{% elseif item.type == \x27simple_link\x27 %}
\t\t\t\t\t\t\t<li class=\"site-header__item site-header__link\">
\t\t\t\t\t\t\t\t<a href=\"{{ item.link }}\" class=\"site-header__link\">{{ item.text }}</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t</ul>
\t\t\t{% endif %}
\t\t{% if mode == \x27mobile\x27 %}
\t\t\t</div>
\t\t{% endif %}
\t</nav>
</div>
", "_snippets/header_croisiland.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/_snippets/header_croisiland.html.twig");
}
}