var/cache/website/dev/twig/7c/7ce923ec6146a8cd20fb2d132f1276652637f2d981eaf9f7b9bef574cfa286ef.php line 148

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* elements2024/menu.html.twig */
  14. class __TwigTemplate_b128e3a8e0f25c24a7c1b855f5af429003c8a7022455bcad620f956a33e389d5 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""elements2024/menu.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""elements2024/menu.html.twig"));
  33.         // line 1
  34.         $context["settings"] = $this->extensions['Sulu\Bundle\SnippetBundle\Twig\SnippetAreaTwigExtension']->loadByArea("settings_area");
  35.         // line 2
  36.         echo "
  37. ";
  38.         // line 3
  39.         $context["menu"] = [=> ["title" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 5
  40. ($context["settings"] ?? null), "content", [], "any"falsefalsefalse5), "menutitleOne", [], "any"falsefalsefalse5), "menu" => "burgerOne""images" => [=> "img/menu/1.webp"=> "img/home/services/1.webp"=> "img/home/services/2.webp"]], => ["title" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 13
  41. ($context["settings"] ?? null), "content", [], "any"falsefalsefalse13), "menutitleTow", [], "any"falsefalsefalse13), "menu" => "burgerTow""images" => [=> "img/menu/1.webp"=> "img/home/services/1.webp"=> "img/home/services/2.webp"=> "img/home/services/3.webp"=> "img/home/services/1.webp"=> "img/home/services/2.webp"]], => ["title" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 24
  42. ($context["settings"] ?? null), "content", [], "any"falsefalsefalse24), "menutitleThree", [], "any"falsefalsefalse24), "menu" => "burgerThree""images" => [=> "img/home/services/1.webp"=> "img/home/services/2.webp"]]];
  43.         // line 32
  44.         echo "
  45. <div class=\"menu bg-green text-white fixed inset-0 opacity-0 pointer-events-none duration-500 z-30\">
  46. \t<div class=\"container pt-28 md:pt-36 lg:pt-28 overflow-auto max-h-screen h-full\">
  47. \t\t<div class=\"flex flex-col md:w-1/2 lg:w-4/12 h-full\">
  48. \t\t\t<ul class=\"menu-list js-slides-animation-triggers mb-28\">
  49. \t\t\t\t";
  50.         // line 37
  51.         $context['_parent'] = $context;
  52.         $context['_seq'] = twig_ensure_traversable(($context["menu"] ?? null));
  53.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  54.             // line 38
  55.             echo "\t\t\t\t\t<li>
  56. \t\t\t\t\t\t<button class=\"text-2xl md:text-4xl lg:text-[2rem]\">
  57. \t\t\t\t\t\t\t";
  58.             // line 40
  59.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "title", [], "any"falsefalsefalse40), "html"nulltrue);
  60.             echo "
  61. \t\t\t\t\t\t\t<svg viewbox=\"0 0 4 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
  62. \t\t\t\t\t\t\t\t<path d=\"M4 4L-3.49691e-07 1.74846e-07L0 8L4 4Z\" fill=\"#F7F7F7\"/>
  63. \t\t\t\t\t\t\t</svg>
  64. \t\t\t\t\t\t</button>
  65. \t\t\t\t\t\t";
  66.             // line 46
  67.             if (twig_get_attribute($this->env$this->source$context["item"], "menu", [], "any"falsefalsefalse46)) {
  68.                 // line 47
  69.                 echo "\t\t\t\t\t\t\t<ul class=\"menu-list__sub\">
  70. \t\t\t\t\t\t\t\t";
  71.                 // line 48
  72.                 $context['_parent'] = $context;
  73.                 $context['_seq'] = twig_ensure_traversable($this->env->getFunction('sulu_navigation_root_flat')->getCallable()(twig_get_attribute($this->env$this->source$context["item"], "menu", [], "any"falsefalsefalse48), 4));
  74.                 foreach ($context['_seq'] as $context["_key"] => $context["subItem"]) {
  75.                     // line 49
  76.                     echo "\t\t\t\t\t\t\t\t\t<li class=\"js-slides-animation-trigger\">
  77. \t\t\t\t\t\t\t\t\t\t<a class=\"text-base md:text-2xl lg:text-base\" href=\"";
  78.                     // line 50
  79.                     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"falsefalsefalse50)), "html"nulltrue);
  80.                     echo "\" target=\"_parent\">";
  81.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["subItem"], "title", [], "any"falsefalsefalse50), "html"nulltrue);
  82.                     echo "</a>
  83. \t\t\t\t\t\t\t\t\t</li>
  84. \t\t\t\t\t\t\t\t";
  85.                 }
  86.                 $_parent $context['_parent'];
  87.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subItem'], $context['_parent'], $context['loop']);
  88.                 $context array_intersect_key($context$_parent) + $_parent;
  89.                 // line 53
  90.                 echo "\t\t\t\t\t\t\t</ul>
  91. \t\t\t\t\t\t";
  92.             }
  93.             // line 55
  94.             echo "\t\t\t\t\t</li>
  95. \t\t\t\t";
  96.         }
  97.         $_parent $context['_parent'];
  98.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  99.         $context array_intersect_key($context$_parent) + $_parent;
  100.         // line 57
  101.         echo "\t\t\t</ul>
  102. \t\t\t<div class=\"flex flex-col gap-8 mt-auto max-md:pb-32 pb-16\">
  103. \t\t\t\t<div class=\"flex flex-col gap-2\">
  104. \t\t\t\t\t<div>Address</div>
  105. \t\t\t\t\t<address class=\"not-italic\">
  106. \t\t\t\t\t\t";
  107.         // line 63
  108.         echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["settings"] ?? null), "content", [], "any"falsefalsefalse63), "address", [], "any"falsefalsefalse63);
  109.         echo "
  110. \t\t\t\t\t</address>
  111. \t\t\t\t</div>
  112. \t\t\t\t";
  113.         // line 66
  114.         $this->loadTemplate("elements2024/contacts.html.twig""elements2024/menu.html.twig"66)->display($context);
  115.         // line 67
  116.         echo "\t\t\t</div>
  117. \t\t</div>
  118. \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\">
  119. \t\t\t";
  120.         // line 71
  121.         $context['_parent'] = $context;
  122.         $context['_seq'] = twig_ensure_traversable(($context["menu"] ?? null));
  123.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  124.             // line 72
  125.             echo "\t\t\t\t";
  126.             // line 73
  127.             echo "\t\t\t\t\t";
  128.             $context['_parent'] = $context;
  129.             $context['_seq'] = twig_ensure_traversable($this->env->getFunction('sulu_navigation_root_flat')->getCallable()(twig_get_attribute($this->env$this->source$context["item"], "menu", [], "any"falsefalsefalse73), 4));
  130.             foreach ($context['_seq'] as $context["_key"] => $context["subItem"]) {
  131.                 // line 74
  132.                 echo "\t\t\t\t\t\t<div class=\"js-menu-slide absolute inset-0\">
  133. \t\t\t\t\t\t\t<div class=\"js-menu-slide__image w-full h-full\">
  134. \t\t\t\t\t\t\t\t";
  135.                 // line 76
  136.                 $context["page"] = $this->env->getFunction('sulu_content_load')->getCallable()(twig_get_attribute($this->env$this->source$context["subItem"], "uuid", [], "any"falsefalsefalse76));
  137.                 // line 77
  138.                 echo "\t\t\t\t\t\t\t\t";
  139.                 $context["menuImage"] = null;
  140.                 // line 78
  141.                 echo "\t\t\t\t\t\t\t\t";
  142.                 if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["page"] ?? null), "content", [], "any"falsefalsefalse78), "url", [], "any"falsefalsefalse78) == "/louer") || (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["page"] ?? null), "content", [], "any"falsefalsefalse78), "url", [], "any"falsefalsefalse78) == "/acheter"))) {
  143.                     // line 79
  144.                     echo "\t\t\t\t\t\t\t\t\t";
  145.                     if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["page"] ?? null), "extension", [], "any"falsetruefalse79), "excerpt", [], "any"falsetruefalse79), "images", [], "any"falsetruefalse79), 0, [], "array"falsetruefalse79), "url", [], "any"truetruefalse79)) {
  146.                         // line 80
  147.                         echo "\t\t\t\t\t\t\t\t\t\t";
  148.                         $context["menuImage"] = twig_get_attribute($this->env$this->source, (($__internal_compile_0 twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["page"] ?? null), "extension", [], "any"falsefalsefalse80), "excerpt", [], "any"falsefalsefalse80), "images", [], "any"falsefalsefalse80)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[0] ?? null) : null), "url", [], "any"falsefalsefalse80);
  149.                         // line 81
  150.                         echo "\t\t\t\t\t\t\t\t\t";
  151.                     }
  152.                     // line 82
  153.                     echo "\t\t\t\t\t\t\t\t";
  154.                 } else {
  155.                     // line 83
  156.                     echo "\t\t\t\t\t\t\t\t\t";
  157.                     $context["menuImage"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["page"] ?? null), "content", [], "any"falsefalsefalse83), "menuImage", [], "any"falsefalsefalse83), "url", [], "any"falsefalsefalse83);
  158.                     // line 84
  159.                     echo "\t\t\t\t\t\t\t\t";
  160.                 }
  161.                 // line 85
  162.                 echo "\t\t\t\t\t\t\t\t<img class=\"img-cover\" src=\"";
  163.                 echo twig_escape_filter($this->env, ($context["menuImage"] ?? null), "html"nulltrue);
  164.                 echo "\" alt=\"\">
  165. \t\t\t\t\t\t\t</div>
  166. \t\t\t\t\t\t</div>
  167. \t\t\t\t\t";
  168.             }
  169.             $_parent $context['_parent'];
  170.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subItem'], $context['_parent'], $context['loop']);
  171.             $context array_intersect_key($context$_parent) + $_parent;
  172.             // line 89
  173.             echo "\t\t\t\t";
  174.             // line 90
  175.             echo "\t\t\t";
  176.         }
  177.         $_parent $context['_parent'];
  178.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  179.         $context array_intersect_key($context$_parent) + $_parent;
  180.         // line 91
  181.         echo "\t\t</div>
  182. \t</div>
  183. </div>
  184. ";
  185.         
  186.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  187.         
  188.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  189.     }
  190.     public function getTemplateName()
  191.     {
  192.         return "elements2024/menu.html.twig";
  193.     }
  194.     public function isTraitable()
  195.     {
  196.         return false;
  197.     }
  198.     public function getDebugInfo()
  199.     {
  200.         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,);
  201.     }
  202.     public function getSourceContext()
  203.     {
  204.         return new Source("{% set settings = sulu_snippet_load_by_area('settings_area') %}
  205. {% set menu = [
  206.   {
  207.     title: settings.content.menutitleOne,
  208. \t\tmenu: 'burgerOne',
  209. \t\timages: [
  210. \t\t\t'img/menu/1.webp',
  211. \t\t\t'img/home/services/1.webp',
  212. \t\t\t'img/home/services/2.webp',
  213. \t\t]
  214.   }, {
  215.     title: settings.content.menutitleTow,
  216. \t\tmenu: 'burgerTow',
  217. \t\timages: [
  218.     \t'img/menu/1.webp',
  219. \t\t\t'img/home/services/1.webp',
  220. \t\t\t'img/home/services/2.webp',
  221. \t\t\t'img/home/services/3.webp',
  222. \t\t\t'img/home/services/1.webp',
  223. \t\t\t'img/home/services/2.webp',
  224. \t\t]
  225.   }, {
  226.     title: settings.content.menutitleThree,
  227. \t\tmenu: 'burgerThree',
  228. \t\timages: [
  229. \t\t\t'img/home/services/1.webp',
  230. \t\t\t'img/home/services/2.webp',
  231.     ]
  232.   }
  233. ] %}
  234. <div class=\"menu bg-green text-white fixed inset-0 opacity-0 pointer-events-none duration-500 z-30\">
  235. \t<div class=\"container pt-28 md:pt-36 lg:pt-28 overflow-auto max-h-screen h-full\">
  236. \t\t<div class=\"flex flex-col md:w-1/2 lg:w-4/12 h-full\">
  237. \t\t\t<ul class=\"menu-list js-slides-animation-triggers mb-28\">
  238. \t\t\t\t{% for item in menu %}
  239. \t\t\t\t\t<li>
  240. \t\t\t\t\t\t<button class=\"text-2xl md:text-4xl lg:text-[2rem]\">
  241. \t\t\t\t\t\t\t{{ item.title }}
  242. \t\t\t\t\t\t\t<svg viewbox=\"0 0 4 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
  243. \t\t\t\t\t\t\t\t<path d=\"M4 4L-3.49691e-07 1.74846e-07L0 8L4 4Z\" fill=\"#F7F7F7\"/>
  244. \t\t\t\t\t\t\t</svg>
  245. \t\t\t\t\t\t</button>
  246. \t\t\t\t\t\t{% if item.menu %}
  247. \t\t\t\t\t\t\t<ul class=\"menu-list__sub\">
  248. \t\t\t\t\t\t\t\t{% for subItem in sulu_navigation_root_flat(item.menu, 4)  %}
  249. \t\t\t\t\t\t\t\t\t<li class=\"js-slides-animation-trigger\">
  250. \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>
  251. \t\t\t\t\t\t\t\t\t</li>
  252. \t\t\t\t\t\t\t\t{% endfor %}
  253. \t\t\t\t\t\t\t</ul>
  254. \t\t\t\t\t\t{% endif %}
  255. \t\t\t\t\t</li>
  256. \t\t\t\t{% endfor %}
  257. \t\t\t</ul>
  258. \t\t\t<div class=\"flex flex-col gap-8 mt-auto max-md:pb-32 pb-16\">
  259. \t\t\t\t<div class=\"flex flex-col gap-2\">
  260. \t\t\t\t\t<div>Address</div>
  261. \t\t\t\t\t<address class=\"not-italic\">
  262. \t\t\t\t\t\t{{settings.content.address|raw}}
  263. \t\t\t\t\t</address>
  264. \t\t\t\t</div>
  265. \t\t\t\t{% include 'elements2024/contacts.html.twig' %}
  266. \t\t\t</div>
  267. \t\t</div>
  268. \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\">
  269. \t\t\t{% for item in menu %}
  270. \t\t\t\t{# {% for img in item.menu %} #}
  271. \t\t\t\t\t{% for subItem in sulu_navigation_root_flat(item.menu, 4)  %}
  272. \t\t\t\t\t\t<div class=\"js-menu-slide absolute inset-0\">
  273. \t\t\t\t\t\t\t<div class=\"js-menu-slide__image w-full h-full\">
  274. \t\t\t\t\t\t\t\t{% set page = sulu_content_load(subItem.uuid) %}
  275. \t\t\t\t\t\t\t\t{% set menuImage = null %}
  276. \t\t\t\t\t\t\t\t{% if page.content.url == \"/louer\" or page.content.url == \"/acheter\" %}
  277. \t\t\t\t\t\t\t\t\t{% if page.extension.excerpt.images[0].url is defined %}
  278. \t\t\t\t\t\t\t\t\t\t{% set menuImage = page.extension.excerpt.images[0].url %}
  279. \t\t\t\t\t\t\t\t\t{% endif %}
  280. \t\t\t\t\t\t\t\t{% else %}
  281. \t\t\t\t\t\t\t\t\t{% set menuImage = page.content.menuImage.url %}
  282. \t\t\t\t\t\t\t\t{% endif %}
  283. \t\t\t\t\t\t\t\t<img class=\"img-cover\" src=\"{{menuImage}}\" alt=\"\">
  284. \t\t\t\t\t\t\t</div>
  285. \t\t\t\t\t\t</div>
  286. \t\t\t\t\t{% endfor %}
  287. \t\t\t\t{# {% endfor %} #}
  288. \t\t\t{% endfor %}
  289. \t\t</div>
  290. \t</div>
  291. </div>
  292. ""elements2024/menu.html.twig""/home/clients/6069f7d890ad1893915d376cf7e5b903/var/www/bn-invest-commercial/templates/elements2024/menu.html.twig");
  293.     }
  294. }