<?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;
/* elements2024/menu.html.twig */
class __TwigTemplate_b128e3a8e0f25c24a7c1b855f5af429003c8a7022455bcad620f956a33e389d5 extends Template
{
private $source;
private $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 = [])
{
$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", "elements2024/menu.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "elements2024/menu.html.twig"));
// line 1
$context["settings"] = $this->extensions['Sulu\Bundle\SnippetBundle\Twig\SnippetAreaTwigExtension']->loadByArea("settings_area");
// line 2
echo "
";
// line 3
$context["menu"] = [0 => ["title" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 5
($context["settings"] ?? null), "content", [], "any", false, false, false, 5), "menutitleOne", [], "any", false, false, false, 5), "menu" => "burgerOne", "images" => [0 => "img/menu/1.webp", 1 => "img/home/services/1.webp", 2 => "img/home/services/2.webp"]], 1 => ["title" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 13
($context["settings"] ?? null), "content", [], "any", false, false, false, 13), "menutitleTow", [], "any", false, false, false, 13), "menu" => "burgerTow", "images" => [0 => "img/menu/1.webp", 1 => "img/home/services/1.webp", 2 => "img/home/services/2.webp", 3 => "img/home/services/3.webp", 4 => "img/home/services/1.webp", 5 => "img/home/services/2.webp"]], 2 => ["title" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 24
($context["settings"] ?? null), "content", [], "any", false, false, false, 24), "menutitleThree", [], "any", false, false, false, 24), "menu" => "burgerThree", "images" => [0 => "img/home/services/1.webp", 1 => "img/home/services/2.webp"]]];
// line 32
echo "
<div class=\"menu bg-green text-white fixed inset-0 opacity-0 pointer-events-none duration-500 z-30\">
\t<div class=\"container pt-28 md:pt-36 lg:pt-28 overflow-auto max-h-screen h-full\">
\t\t<div class=\"flex flex-col md:w-1/2 lg:w-4/12 h-full\">
\t\t\t<ul class=\"menu-list js-slides-animation-triggers mb-28\">
\t\t\t\t";
// line 37
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["menu"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 38
echo "\t\t\t\t\t<li>
\t\t\t\t\t\t<button class=\"text-2xl md:text-4xl lg:text-[2rem]\">
\t\t\t\t\t\t\t";
// line 40
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 40), "html", null, true);
echo "
\t\t\t\t\t\t\t<svg viewbox=\"0 0 4 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
\t\t\t\t\t\t\t\t<path d=\"M4 4L-3.49691e-07 1.74846e-07L0 8L4 4Z\" fill=\"#F7F7F7\"/>
\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t</button>
\t\t\t\t\t\t";
// line 46
if (twig_get_attribute($this->env, $this->source, $context["item"], "menu", [], "any", false, false, false, 46)) {
// line 47
echo "\t\t\t\t\t\t\t<ul class=\"menu-list__sub\">
\t\t\t\t\t\t\t\t";
// line 48
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->env->getFunction('sulu_navigation_root_flat')->getCallable()(twig_get_attribute($this->env, $this->source, $context["item"], "menu", [], "any", false, false, false, 48), 4));
foreach ($context['_seq'] as $context["_key"] => $context["subItem"]) {
// line 49
echo "\t\t\t\t\t\t\t\t\t<li class=\"js-slides-animation-trigger\">
\t\t\t\t\t\t\t\t\t\t<a class=\"text-base md:text-2xl lg:text-base\" href=\"";
// line 50
echo twig_escape_filter($this->env, $this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentPath(twig_get_attribute($this->env, $this->source, $context["subItem"], "url", [], "any", false, false, false, 50)), "html", null, true);
echo "\" target=\"_parent\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subItem"], "title", [], "any", false, false, false, 50), "html", null, true);
echo "</a>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 53
echo "\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t";
}
// line 55
echo "\t\t\t\t\t</li>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 57
echo "\t\t\t</ul>
\t\t\t<div class=\"flex flex-col gap-8 mt-auto max-md:pb-32 pb-16\">
\t\t\t\t<div class=\"flex flex-col gap-2\">
\t\t\t\t\t<div>Address</div>
\t\t\t\t\t<address class=\"not-italic\">
\t\t\t\t\t\t";
// line 63
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["settings"] ?? null), "content", [], "any", false, false, false, 63), "address", [], "any", false, false, false, 63);
echo "
\t\t\t\t\t</address>
\t\t\t\t</div>
\t\t\t\t";
// line 66
$this->loadTemplate("elements2024/contacts.html.twig", "elements2024/menu.html.twig", 66)->display($context);
// line 67
echo "\t\t\t</div>
\t\t</div>
\t\t<div class=\"js-menu-slide-wrapper hidden lg:block absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-1/5 max-w-[404px] aspect-[1/1.37] pointer-events-none\">
\t\t\t";
// line 71
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["menu"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 72
echo "\t\t\t\t";
// line 73
echo "\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->env->getFunction('sulu_navigation_root_flat')->getCallable()(twig_get_attribute($this->env, $this->source, $context["item"], "menu", [], "any", false, false, false, 73), 4));
foreach ($context['_seq'] as $context["_key"] => $context["subItem"]) {
// line 74
echo "\t\t\t\t\t\t<div class=\"js-menu-slide absolute inset-0\">
\t\t\t\t\t\t\t<div class=\"js-menu-slide__image w-full h-full\">
\t\t\t\t\t\t\t\t";
// line 76
$context["page"] = $this->env->getFunction('sulu_content_load')->getCallable()(twig_get_attribute($this->env, $this->source, $context["subItem"], "uuid", [], "any", false, false, false, 76));
// line 77
echo "\t\t\t\t\t\t\t\t";
$context["menuImage"] = null;
// line 78
echo "\t\t\t\t\t\t\t\t";
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "content", [], "any", false, false, false, 78), "url", [], "any", false, false, false, 78) == "/louer") || (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "content", [], "any", false, false, false, 78), "url", [], "any", false, false, false, 78) == "/acheter"))) {
// line 79
echo "\t\t\t\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extension", [], "any", false, true, false, 79), "excerpt", [], "any", false, true, false, 79), "images", [], "any", false, true, false, 79), 0, [], "array", false, true, false, 79), "url", [], "any", true, true, false, 79)) {
// line 80
echo "\t\t\t\t\t\t\t\t\t\t";
$context["menuImage"] = twig_get_attribute($this->env, $this->source, (($__internal_compile_0 = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extension", [], "any", false, false, false, 80), "excerpt", [], "any", false, false, false, 80), "images", [], "any", false, false, false, 80)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[0] ?? null) : null), "url", [], "any", false, false, false, 80);
// line 81
echo "\t\t\t\t\t\t\t\t\t";
}
// line 82
echo "\t\t\t\t\t\t\t\t";
} else {
// line 83
echo "\t\t\t\t\t\t\t\t\t";
$context["menuImage"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "content", [], "any", false, false, false, 83), "menuImage", [], "any", false, false, false, 83), "url", [], "any", false, false, false, 83);
// line 84
echo "\t\t\t\t\t\t\t\t";
}
// line 85
echo "\t\t\t\t\t\t\t\t<img class=\"img-cover\" src=\"";
echo twig_escape_filter($this->env, ($context["menuImage"] ?? null), "html", null, true);
echo "\" alt=\"\">
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 89
echo "\t\t\t\t";
// line 90
echo "\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 91
echo "\t\t</div>
\t</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "elements2024/menu.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 193 => 91, 187 => 90, 185 => 89, 174 => 85, 171 => 84, 168 => 83, 165 => 82, 162 => 81, 159 => 80, 156 => 79, 153 => 78, 150 => 77, 148 => 76, 144 => 74, 139 => 73, 137 => 72, 133 => 71, 127 => 67, 125 => 66, 119 => 63, 111 => 57, 104 => 55, 100 => 53, 89 => 50, 86 => 49, 82 => 48, 79 => 47, 77 => 46, 68 => 40, 64 => 38, 60 => 37, 53 => 32, 51 => 24, 50 => 13, 49 => 5, 48 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set settings = sulu_snippet_load_by_area('settings_area') %}
{% set menu = [
{
title: settings.content.menutitleOne,
\t\tmenu: 'burgerOne',
\t\timages: [
\t\t\t'img/menu/1.webp',
\t\t\t'img/home/services/1.webp',
\t\t\t'img/home/services/2.webp',
\t\t]
}, {
title: settings.content.menutitleTow,
\t\tmenu: 'burgerTow',
\t\timages: [
\t'img/menu/1.webp',
\t\t\t'img/home/services/1.webp',
\t\t\t'img/home/services/2.webp',
\t\t\t'img/home/services/3.webp',
\t\t\t'img/home/services/1.webp',
\t\t\t'img/home/services/2.webp',
\t\t]
}, {
title: settings.content.menutitleThree,
\t\tmenu: 'burgerThree',
\t\timages: [
\t\t\t'img/home/services/1.webp',
\t\t\t'img/home/services/2.webp',
]
}
] %}
<div class=\"menu bg-green text-white fixed inset-0 opacity-0 pointer-events-none duration-500 z-30\">
\t<div class=\"container pt-28 md:pt-36 lg:pt-28 overflow-auto max-h-screen h-full\">
\t\t<div class=\"flex flex-col md:w-1/2 lg:w-4/12 h-full\">
\t\t\t<ul class=\"menu-list js-slides-animation-triggers mb-28\">
\t\t\t\t{% for item in menu %}
\t\t\t\t\t<li>
\t\t\t\t\t\t<button class=\"text-2xl md:text-4xl lg:text-[2rem]\">
\t\t\t\t\t\t\t{{ item.title }}
\t\t\t\t\t\t\t<svg viewbox=\"0 0 4 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
\t\t\t\t\t\t\t\t<path d=\"M4 4L-3.49691e-07 1.74846e-07L0 8L4 4Z\" fill=\"#F7F7F7\"/>
\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t</button>
\t\t\t\t\t\t{% if item.menu %}
\t\t\t\t\t\t\t<ul class=\"menu-list__sub\">
\t\t\t\t\t\t\t\t{% for subItem in sulu_navigation_root_flat(item.menu, 4) %}
\t\t\t\t\t\t\t\t\t<li class=\"js-slides-animation-trigger\">
\t\t\t\t\t\t\t\t\t\t<a class=\"text-base md:text-2xl lg:text-base\" href=\"{{ sulu_content_path(subItem.url) }}\" target=\"_parent\">{{ subItem.title }}</a>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</li>
\t\t\t\t{% endfor %}
\t\t\t</ul>
\t\t\t<div class=\"flex flex-col gap-8 mt-auto max-md:pb-32 pb-16\">
\t\t\t\t<div class=\"flex flex-col gap-2\">
\t\t\t\t\t<div>Address</div>
\t\t\t\t\t<address class=\"not-italic\">
\t\t\t\t\t\t{{settings.content.address|raw}}
\t\t\t\t\t</address>
\t\t\t\t</div>
\t\t\t\t{% include 'elements2024/contacts.html.twig' %}
\t\t\t</div>
\t\t</div>
\t\t<div class=\"js-menu-slide-wrapper hidden lg:block absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-1/5 max-w-[404px] aspect-[1/1.37] pointer-events-none\">
\t\t\t{% for item in menu %}
\t\t\t\t{# {% for img in item.menu %} #}
\t\t\t\t\t{% for subItem in sulu_navigation_root_flat(item.menu, 4) %}
\t\t\t\t\t\t<div class=\"js-menu-slide absolute inset-0\">
\t\t\t\t\t\t\t<div class=\"js-menu-slide__image w-full h-full\">
\t\t\t\t\t\t\t\t{% set page = sulu_content_load(subItem.uuid) %}
\t\t\t\t\t\t\t\t{% set menuImage = null %}
\t\t\t\t\t\t\t\t{% if page.content.url == \"/louer\" or page.content.url == \"/acheter\" %}
\t\t\t\t\t\t\t\t\t{% if page.extension.excerpt.images[0].url is defined %}
\t\t\t\t\t\t\t\t\t\t{% set menuImage = page.extension.excerpt.images[0].url %}
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{% set menuImage = page.content.menuImage.url %}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t<img class=\"img-cover\" src=\"{{menuImage}}\" alt=\"\">
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endfor %}
\t\t\t\t{# {% endfor %} #}
\t\t\t{% endfor %}
\t\t</div>
\t</div>
</div>
", "elements2024/menu.html.twig", "/home/clients/6069f7d890ad1893915d376cf7e5b903/var/www/bn-invest-commercial/templates/elements2024/menu.html.twig");
}
}