<?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/sub_menu/_submenu_company.html.twig */
class __TwigTemplate_272f4ec82b4b990464885b31a515e638 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/sub_menu/_submenu_company.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/sub_menu/_submenu_company.html.twig"));
// line 2
$context["items"] = $this->extensions['App\Twig\Menu\MenuExtension']->getNavigationMenuItems("company");
// line 3
yield "
<div class=\"lists\">
\t<ul class=\"highlighted-items ";
// line 5
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::lower($this->env->getCharset(), ((CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "multipleLabel", [], "any", true, true, false, 5)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 5, $this->source); })()), "multipleLabel", [], "any", false, false, false, 5), "")) : (""))), "html", null, true);
yield "\">
\t\t";
// line 6
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::slice($this->env->getCharset(), (isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 6, $this->source); })()), 0, 3));
foreach ($context['_seq'] as $context["_key"] => $context["element"]) {
// line 7
yield "\t\t\t";
$context["logo"] = $this->extensions['App\Twig\CreaMedia\CachingMediaBundleExtension']->getMedia(["logo"], $context["element"]);
// line 8
yield "\t\t\t<li class=\"SubMenu-item br3\">
\t\t\t\t<a href=\"";
// line 9
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('getCruiseSearchUrl')->getCallable()([$context["element"]]), "html", null, true);
yield "\" class=\"site-header__mega-link\" title=\"";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["element"], "name", [], "any", true, true, false, 9)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["element"], "name", [], "any", false, false, false, 9), ((CoreExtension::getAttribute($this->env, $this->source, $context["element"], "title", [], "any", true, true, false, 9)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["element"], "title", [], "any", false, false, false, 9), "")) : ("")))) : (((CoreExtension::getAttribute($this->env, $this->source, $context["element"], "title", [], "any", true, true, false, 9)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["element"], "title", [], "any", false, false, false, 9), "")) : ("")))), "html", null, true);
yield "\">
\t\t\t\t\t<div class=\"logo br2\" style=\"background: url(\x27";
// line 10
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['App\Twig\CreaMedia\CachingMediaBundleExtension']->getMedia(["nav_menu"], $context["element"]), "cdnUrl", [], "any", true, true, false, 10)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['App\Twig\CreaMedia\CachingMediaBundleExtension']->getMedia(["nav_menu"], $context["element"]), "cdnUrl", [], "any", false, false, false, 10), $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/placeholders/menu.jpg"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/placeholders/menu.jpg"))), "html", null, true);
yield "\x27) no-repeat center / cover\">
\t\t\t\t\t\t";
// line 11
if ( !(null === (isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 11, $this->source); })()))) {
// line 12
yield "\t\t\t\t\t\t\t<img src=\"";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 12, $this->source); })()), "cdnUrl", [], "any", false, false, false, 12), "html", null, true);
yield "\" alt=\"";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["element"], "name", [], "any", true, true, false, 12)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["element"], "name", [], "any", false, false, false, 12), "")) : ("")), "html", null, true);
yield "\">
\t\t\t\t\t\t";
}
// line 14
yield "\t\t\t\t\t</div>
\t\t\t\t\t<div>
\t\t\t\t\t\t<span>";
// line 16
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["element"], "name", [], "any", true, true, false, 16)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["element"], "name", [], "any", false, false, false, 16), ((CoreExtension::getAttribute($this->env, $this->source, $context["element"], "title", [], "any", true, true, false, 16)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["element"], "title", [], "any", false, false, false, 16), "")) : ("")))) : (((CoreExtension::getAttribute($this->env, $this->source, $context["element"], "title", [], "any", true, true, false, 16)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["element"], "title", [], "any", false, false, false, 16), "")) : ("")))), "html", null, true);
yield "</span>
\t\t\t\t\t\t<div>";
// line 17
yield (string) ((CoreExtension::getAttribute($this->env, $this->source, $context["element"], "shortDescription", [], "any", true, true, false, 17)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["element"], "shortDescription", [], "any", false, false, false, 17), ((CoreExtension::getAttribute($this->env, $this->source, $context["element"], "lead", [], "any", true, true, false, 17)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["element"], "lead", [], "any", false, false, false, 17), "")) : ("")))) : (((CoreExtension::getAttribute($this->env, $this->source, $context["element"], "lead", [], "any", true, true, false, 17)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["element"], "lead", [], "any", false, false, false, 17), "")) : (""))));
yield "</div>
\t\t\t\t\t</div>
\t\t\t\t</a>
\t\t\t</li>
\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['element'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 22
yield "\t</ul>
\t";
// line 24
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), Twig\Extension\CoreExtension::slice($this->env->getCharset(), (isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 24, $this->source); })()), 3)) > 0)) {
// line 25
yield "\t\t";
yield from $this->load("pages/_includes/base/sub_menu/_submenu_company.html.twig", 25, 1)->unwrap()->yield(CoreExtension::merge($context, ["title" => (($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("snippets.header.all_f") . " ") . Twig\Extension\CoreExtension::lower($this->env->getCharset(), ((CoreExtension::getAttribute($this->env, $this->source, // line 26
($context["item"] ?? null), "multipleLabel", [], "any", true, true, false, 26)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 26, $this->source); })()), "multipleLabel", [], "any", false, false, false, 26), "")) : ("")))), "mode" => (( // line 27
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.', 27, $this->source); })()), "desktop")) : ("desktop"))]));
// line 39
yield "\t";
}
// line 40
yield "</div>
<style>
.site-header__mega{
\t/* display: flex !important;
\tvisibility: visible !important;
\topacity: 1 !important; */
}
</style>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/_includes/base/sub_menu/_submenu_company.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 123 => 40, 120 => 39, 118 => 27, 117 => 26, 115 => 25, 113 => 24, 109 => 22, 97 => 17, 93 => 16, 89 => 14, 81 => 12, 79 => 11, 75 => 10, 69 => 9, 66 => 8, 63 => 7, 59 => 6, 55 => 5, 51 => 3, 49 => 2,);
}
public function getSourceContext(): Source
{
return new Source("{# Compagnies — typeItem: company #}
{% set items = getNavigationMenuItems(\x27company\x27) %}
<div class=\"lists\">
\t<ul class=\"highlighted-items {{ item.multipleLabel|default(\x27\x27)|lower }}\">
\t\t{% for element in items|slice(0, 3) %}
\t\t\t{% set logo = crea_media_get_media([\x27logo\x27], element) %}
\t\t\t<li class=\"SubMenu-item br3\">
\t\t\t\t<a href=\"{{ getCruiseSearchUrl([element]) }}\" class=\"site-header__mega-link\" title=\"{{ element.name|default(element.title|default(\x27\x27)) }}\">
\t\t\t\t\t<div class=\"logo br2\" style=\"background: url(\x27{{ (crea_media_get_media([\x27nav_menu\x27], element).cdnUrl)|default(asset(\x27img/placeholders/menu.jpg\x27)) }}\x27) no-repeat center / cover\">
\t\t\t\t\t\t{% if logo is not null %}
\t\t\t\t\t\t\t<img src=\"{{ logo.cdnUrl }}\" alt=\"{{ element.name|default(\x27\x27) }}\">
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t\t<div>
\t\t\t\t\t\t<span>{{ element.name|default(element.title|default(\x27\x27)) }}</span>
\t\t\t\t\t\t<div>{{ element.shortDescription|default(element.lead|default(\x27\x27))|raw }}</div>
\t\t\t\t\t</div>
\t\t\t\t</a>
\t\t\t</li>
\t\t{% endfor %}
\t</ul>
\t{% if items|slice(3)|length > 0 %}
\t\t{% embed \x27pages/_includes/base/sub_menu/_regular_items_accordion.html.twig\x27 with {
\t\t\ttitle: (\x27snippets.header.all_f\x27|trans ~ \x27 \x27 ~ item.multipleLabel|default(\x27\x27)|lower),
\t\t\tmode: mode|default(\x27desktop\x27),
\t\t} %}
\t\t\t{% block content %}
\t\t\t\t<ul class=\"regular-items br2\">
\t\t\t\t\t{% for element in items|slice(3) %}
\t\t\t\t\t\t<li class=\"SubMenu-item br1\">
\t\t\t\t\t\t\t<a href=\"{{ getCruiseSearchUrl([element]) }}\" class=\"site-header__mega-link\" title=\"{{ element.name }}\">{{ element.name }}</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t{% endfor %}
\t\t\t\t</ul>
\t\t\t{% endblock %}
\t\t{% endembed %}
\t{% endif %}
</div>
<style>
.site-header__mega{
\t/* display: flex !important;
\tvisibility: visible !important;
\topacity: 1 !important; */
}
</style>", "pages/_includes/base/sub_menu/_submenu_company.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/_includes/base/sub_menu/_submenu_company.html.twig");
}
}
/* pages/_includes/base/sub_menu/_submenu_company.html.twig */
class __TwigTemplate_272f4ec82b4b990464885b31a515e638___1 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->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 25
return "pages/_includes/base/sub_menu/_regular_items_accordion.html.twig";
}
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/sub_menu/_submenu_company.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/sub_menu/_submenu_company.html.twig"));
$this->parent = $this->load("pages/_includes/base/sub_menu/_regular_items_accordion.html.twig", 25);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 29
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 30
yield "\t\t\t\t<ul class=\"regular-items br2\">
\t\t\t\t\t";
// line 31
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::slice($this->env->getCharset(), (isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 31, $this->source); })()), 3));
foreach ($context['_seq'] as $context["_key"] => $context["element"]) {
// line 32
yield "\t\t\t\t\t\t<li class=\"SubMenu-item br1\">
\t\t\t\t\t\t\t<a href=\"";
// line 33
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('getCruiseSearchUrl')->getCallable()([$context["element"]]), "html", null, true);
yield "\" class=\"site-header__mega-link\" title=\"";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["element"], "name", [], "any", false, false, false, 33), "html", null, true);
yield "\">";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["element"], "name", [], "any", false, false, false, 33), "html", null, true);
yield "</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['element'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 36
yield "\t\t\t\t</ul>
\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/_includes/base/sub_menu/_submenu_company.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 302 => 36, 288 => 33, 285 => 32, 281 => 31, 278 => 30, 265 => 29, 242 => 25, 123 => 40, 120 => 39, 118 => 27, 117 => 26, 115 => 25, 113 => 24, 109 => 22, 97 => 17, 93 => 16, 89 => 14, 81 => 12, 79 => 11, 75 => 10, 69 => 9, 66 => 8, 63 => 7, 59 => 6, 55 => 5, 51 => 3, 49 => 2,);
}
public function getSourceContext(): Source
{
return new Source("{# Compagnies — typeItem: company #}
{% set items = getNavigationMenuItems(\x27company\x27) %}
<div class=\"lists\">
\t<ul class=\"highlighted-items {{ item.multipleLabel|default(\x27\x27)|lower }}\">
\t\t{% for element in items|slice(0, 3) %}
\t\t\t{% set logo = crea_media_get_media([\x27logo\x27], element) %}
\t\t\t<li class=\"SubMenu-item br3\">
\t\t\t\t<a href=\"{{ getCruiseSearchUrl([element]) }}\" class=\"site-header__mega-link\" title=\"{{ element.name|default(element.title|default(\x27\x27)) }}\">
\t\t\t\t\t<div class=\"logo br2\" style=\"background: url(\x27{{ (crea_media_get_media([\x27nav_menu\x27], element).cdnUrl)|default(asset(\x27img/placeholders/menu.jpg\x27)) }}\x27) no-repeat center / cover\">
\t\t\t\t\t\t{% if logo is not null %}
\t\t\t\t\t\t\t<img src=\"{{ logo.cdnUrl }}\" alt=\"{{ element.name|default(\x27\x27) }}\">
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t\t<div>
\t\t\t\t\t\t<span>{{ element.name|default(element.title|default(\x27\x27)) }}</span>
\t\t\t\t\t\t<div>{{ element.shortDescription|default(element.lead|default(\x27\x27))|raw }}</div>
\t\t\t\t\t</div>
\t\t\t\t</a>
\t\t\t</li>
\t\t{% endfor %}
\t</ul>
\t{% if items|slice(3)|length > 0 %}
\t\t{% embed \x27pages/_includes/base/sub_menu/_regular_items_accordion.html.twig\x27 with {
\t\t\ttitle: (\x27snippets.header.all_f\x27|trans ~ \x27 \x27 ~ item.multipleLabel|default(\x27\x27)|lower),
\t\t\tmode: mode|default(\x27desktop\x27),
\t\t} %}
\t\t\t{% block content %}
\t\t\t\t<ul class=\"regular-items br2\">
\t\t\t\t\t{% for element in items|slice(3) %}
\t\t\t\t\t\t<li class=\"SubMenu-item br1\">
\t\t\t\t\t\t\t<a href=\"{{ getCruiseSearchUrl([element]) }}\" class=\"site-header__mega-link\" title=\"{{ element.name }}\">{{ element.name }}</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t{% endfor %}
\t\t\t\t</ul>
\t\t\t{% endblock %}
\t\t{% endembed %}
\t{% endif %}
</div>
<style>
.site-header__mega{
\t/* display: flex !important;
\tvisibility: visible !important;
\topacity: 1 !important; */
}
</style>", "pages/_includes/base/sub_menu/_submenu_company.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/_includes/base/sub_menu/_submenu_company.html.twig");
}
}