<?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/header.html.twig */
class __TwigTemplate_24155e4bccc753fa210bae58e4bd03c55a26b7c9e78f63c3b4381a5486efc13a 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/header.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/header.html.twig"));
// line 1
$macros["buttons"] = $this->macros["buttons"] = $this->loadTemplate("elements2024/macros/buttons.html.twig", "elements2024/header.html.twig", 1)->unwrap();
// line 2
echo "
";
// line 3
$context["settings"] = $this->extensions['Sulu\Bundle\SnippetBundle\Twig\SnippetAreaTwigExtension']->loadByArea("settings_area");
// line 4
echo "
<header class=\"header fixed top-0 left-0 right-0 z-40 text-white\">
\t<div class=\"container grid grid-cols-2 2xl:grid-cols-[1fr_auto_1fr] items-center gap-8 py-8\">
\t\t<ul class=\"header-left-menu hidden 2xl:flex items-center gap-4 text-sm 4xl:text-base duration-500\">
\t\t\t\t";
// line 8
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->env->getFunction('sulu_navigation_root_flat')->getCallable()("main", 4));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 9
echo "\t\t\t\t<li>
\t\t\t\t\t<a class=\"link-underline\" href=\"";
// line 10
echo twig_escape_filter($this->env, $this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentPath(twig_get_attribute($this->env, $this->source, $context["item"], "url", [], "any", false, false, false, 10)), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 10), "html", null, true);
echo "</a>
\t\t\t\t</li>
\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 13
echo "\t\t</ul>
\t\t<div>
\t\t\t<a class=\"header-logo block w-28 md:w-48\" href=\"/\">
\t\t\t\t<div class=\"sr-only\">Home page</div>
\t\t\t\t";
// line 18
$this->loadTemplate("elements2024/logo.html.twig", "elements2024/header.html.twig", 18)->display($context);
// line 19
echo "\t\t\t</a>
\t\t</div>
\t\t<div class=\"flex items-center justify-end gap-2\">
\t\t\t<div class=\"header-user\">
\t\t\t\t<div class=\"header-user__icon btn-icon\">
\t\t\t\t\t<svg class=\"w-8 h-8\" viewbox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
\t\t\t\t\t\t<path stroke='currentcolor' d=\"M17.74 19.417s1.349-.772 1.702-.958c.352-.186.718-.233.94-.098.335.205 3.153 2.08 3.39 2.246.238.166.353.642.026 1.107-.325.465-1.824 2.305-2.46 2.286-.636-.021-3.282-.08-8.27-5.07C8.079 13.943 8.02 11.297 8 10.66c-.02-.637 1.82-2.136 2.285-2.462.466-.325.942-.202 1.107.026.188.26 2.042 3.07 2.245 3.392.14.22.089.587-.098.94-.185.353-.957 1.703-.957 1.703s.544.929 2.386 2.77c1.843 1.843 2.771 2.388 2.771 2.388z\" />
\t\t\t\t\t</svg>
\t\t\t\t</div>
\t\t\t\t<ul class=\"header-user__dropdown\">
\t\t\t\t\t<li>
\t\t\t\t\t\t<a href=\"tel:";
// line 32
echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["settings"] ?? null), "content", [], "any", false, false, false, 32), "phone", [], "any", false, false, false, 32), [" " => ""]), "html", null, true);
echo "\">Location</a>
\t\t\t\t\t</li>
\t\t\t\t\t<li>
\t\t\t\t\t\t<a href=\"tel:";
// line 35
echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["settings"] ?? null), "content", [], "any", false, false, false, 35), "phone2", [], "any", false, false, false, 35), [" " => ""]), "html", null, true);
echo "\">Vente</a>
\t\t\t\t\t</li>
\t\t\t\t</ul>
\t\t\t</div>
\t\t\t<div class=\"hidden md:block\">
\t\t\t\t";
// line 41
echo twig_call_macro($macros["buttons"], "macro_borderWhiteLink", ["Contact", "/contact"], 41, $context, $this->getSourceContext());
echo "
\t\t\t</div>
\t\t\t<div class=\"flex items-center\">
\t\t\t\t";
// line 45
echo twig_call_macro($macros["buttons"], "macro_borderWhiteBtnMenu", ["Menu", "header-burger"], 45, $context, $this->getSourceContext());
echo "
\t\t\t</div>
\t\t</div>
\t</div>
</header>
";
// line 51
$this->loadTemplate("elements2024/menu.html.twig", "elements2024/header.html.twig", 51)->display($context);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "elements2024/header.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 129 => 51, 120 => 45, 113 => 41, 104 => 35, 98 => 32, 83 => 19, 81 => 18, 74 => 13, 63 => 10, 60 => 9, 56 => 8, 50 => 4, 48 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% import 'elements2024/macros/buttons.html.twig' as buttons %}
{% set settings = sulu_snippet_load_by_area('settings_area') %}
<header class=\"header fixed top-0 left-0 right-0 z-40 text-white\">
\t<div class=\"container grid grid-cols-2 2xl:grid-cols-[1fr_auto_1fr] items-center gap-8 py-8\">
\t\t<ul class=\"header-left-menu hidden 2xl:flex items-center gap-4 text-sm 4xl:text-base duration-500\">
\t\t\t\t{% for item in sulu_navigation_root_flat('main', 4) %}
\t\t\t\t<li>
\t\t\t\t\t<a class=\"link-underline\" href=\"{{ sulu_content_path(item.url) }}\">{{ item.title }}</a>
\t\t\t\t</li>
\t\t\t{% endfor %}
\t\t</ul>
\t\t<div>
\t\t\t<a class=\"header-logo block w-28 md:w-48\" href=\"/\">
\t\t\t\t<div class=\"sr-only\">Home page</div>
\t\t\t\t{% include 'elements2024/logo.html.twig' %}
\t\t\t</a>
\t\t</div>
\t\t<div class=\"flex items-center justify-end gap-2\">
\t\t\t<div class=\"header-user\">
\t\t\t\t<div class=\"header-user__icon btn-icon\">
\t\t\t\t\t<svg class=\"w-8 h-8\" viewbox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
\t\t\t\t\t\t<path stroke='currentcolor' d=\"M17.74 19.417s1.349-.772 1.702-.958c.352-.186.718-.233.94-.098.335.205 3.153 2.08 3.39 2.246.238.166.353.642.026 1.107-.325.465-1.824 2.305-2.46 2.286-.636-.021-3.282-.08-8.27-5.07C8.079 13.943 8.02 11.297 8 10.66c-.02-.637 1.82-2.136 2.285-2.462.466-.325.942-.202 1.107.026.188.26 2.042 3.07 2.245 3.392.14.22.089.587-.098.94-.185.353-.957 1.703-.957 1.703s.544.929 2.386 2.77c1.843 1.843 2.771 2.388 2.771 2.388z\" />
\t\t\t\t\t</svg>
\t\t\t\t</div>
\t\t\t\t<ul class=\"header-user__dropdown\">
\t\t\t\t\t<li>
\t\t\t\t\t\t<a href=\"tel:{{settings.content.phone|replace({' ': ''})}}\">Location</a>
\t\t\t\t\t</li>
\t\t\t\t\t<li>
\t\t\t\t\t\t<a href=\"tel:{{settings.content.phone2|replace({' ': ''})}}\">Vente</a>
\t\t\t\t\t</li>
\t\t\t\t</ul>
\t\t\t</div>
\t\t\t<div class=\"hidden md:block\">
\t\t\t\t{{ buttons.borderWhiteLink('Contact', \"/contact\") }}
\t\t\t</div>
\t\t\t<div class=\"flex items-center\">
\t\t\t\t{{ buttons.borderWhiteBtnMenu('Menu', \"header-burger\") }}
\t\t\t</div>
\t\t</div>
\t</div>
</header>
{% include 'elements2024/menu.html.twig' %}
", "elements2024/header.html.twig", "/home/clients/6069f7d890ad1893915d376cf7e5b903/var/www/bn-invest-commercial/templates/elements2024/header.html.twig");
}
}