var/cache/website/dev/twig/25/252ecbbe846670c078b36d7328b60297ddf349873c69471c797671190253d37b.php line 129

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/header.html.twig */
  14. class __TwigTemplate_24155e4bccc753fa210bae58e4bd03c55a26b7c9e78f63c3b4381a5486efc13a 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/header.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/header.html.twig"));
  33.         // line 1
  34.         $macros["buttons"] = $this->macros["buttons"] = $this->loadTemplate("elements2024/macros/buttons.html.twig""elements2024/header.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "
  37. ";
  38.         // line 3
  39.         $context["settings"] = $this->extensions['Sulu\Bundle\SnippetBundle\Twig\SnippetAreaTwigExtension']->loadByArea("settings_area");
  40.         // line 4
  41.         echo "
  42. <header class=\"header fixed top-0 left-0 right-0 z-40 text-white\">
  43. \t<div class=\"container grid grid-cols-2 2xl:grid-cols-[1fr_auto_1fr] items-center gap-8 py-8\">
  44. \t\t<ul class=\"header-left-menu hidden 2xl:flex items-center gap-4 text-sm 4xl:text-base duration-500\">
  45. \t\t\t\t";
  46.         // line 8
  47.         $context['_parent'] = $context;
  48.         $context['_seq'] = twig_ensure_traversable($this->env->getFunction('sulu_navigation_root_flat')->getCallable()("main"4));
  49.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  50.             // line 9
  51.             echo "\t\t\t\t<li>
  52. \t\t\t\t\t<a class=\"link-underline\" href=\"";
  53.             // line 10
  54.             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"falsefalsefalse10)), "html"nulltrue);
  55.             echo "\">";
  56.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "title", [], "any"falsefalsefalse10), "html"nulltrue);
  57.             echo "</a>
  58. \t\t\t\t</li>
  59. \t\t\t";
  60.         }
  61.         $_parent $context['_parent'];
  62.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  63.         $context array_intersect_key($context$_parent) + $_parent;
  64.         // line 13
  65.         echo "\t\t</ul>
  66. \t\t<div>
  67. \t\t\t<a class=\"header-logo block w-28 md:w-48\" href=\"/\">
  68. \t\t\t\t<div class=\"sr-only\">Home page</div>
  69. \t\t\t\t";
  70.         // line 18
  71.         $this->loadTemplate("elements2024/logo.html.twig""elements2024/header.html.twig"18)->display($context);
  72.         // line 19
  73.         echo "\t\t\t</a>
  74. \t\t</div>
  75. \t\t<div class=\"flex items-center justify-end gap-2\">
  76. \t\t\t<div class=\"header-user\">
  77. \t\t\t\t<div class=\"header-user__icon btn-icon\">
  78. \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\">
  79. \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\" />
  80. \t\t\t\t\t</svg>
  81. \t\t\t\t</div>
  82. \t\t\t\t<ul class=\"header-user__dropdown\">
  83. \t\t\t\t\t<li>
  84. \t\t\t\t\t\t<a href=\"tel:";
  85.         // line 32
  86.         echo twig_escape_filter($this->envtwig_replace_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["settings"] ?? null), "content", [], "any"falsefalsefalse32), "phone", [], "any"falsefalsefalse32), [" " => ""]), "html"nulltrue);
  87.         echo "\">Location</a>
  88. \t\t\t\t\t</li>
  89. \t\t\t\t\t<li>
  90. \t\t\t\t\t\t<a href=\"tel:";
  91.         // line 35
  92.         echo twig_escape_filter($this->envtwig_replace_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["settings"] ?? null), "content", [], "any"falsefalsefalse35), "phone2", [], "any"falsefalsefalse35), [" " => ""]), "html"nulltrue);
  93.         echo "\">Vente</a>
  94. \t\t\t\t\t</li>
  95. \t\t\t\t</ul>
  96. \t\t\t</div>
  97. \t\t\t<div class=\"hidden md:block\">
  98. \t\t\t\t";
  99.         // line 41
  100.         echo twig_call_macro($macros["buttons"], "macro_borderWhiteLink", ["Contact""/contact"], 41$context$this->getSourceContext());
  101.         echo "
  102. \t\t\t</div>
  103. \t\t\t<div class=\"flex items-center\">
  104. \t\t\t\t";
  105.         // line 45
  106.         echo twig_call_macro($macros["buttons"], "macro_borderWhiteBtnMenu", ["Menu""header-burger"], 45$context$this->getSourceContext());
  107.         echo "
  108. \t\t\t</div>
  109. \t\t</div>
  110. \t</div>
  111. </header>
  112. ";
  113.         // line 51
  114.         $this->loadTemplate("elements2024/menu.html.twig""elements2024/header.html.twig"51)->display($context);
  115.         
  116.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  117.         
  118.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  119.     }
  120.     public function getTemplateName()
  121.     {
  122.         return "elements2024/header.html.twig";
  123.     }
  124.     public function isTraitable()
  125.     {
  126.         return false;
  127.     }
  128.     public function getDebugInfo()
  129.     {
  130.         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,);
  131.     }
  132.     public function getSourceContext()
  133.     {
  134.         return new Source("{% import 'elements2024/macros/buttons.html.twig' as buttons %}
  135. {% set settings = sulu_snippet_load_by_area('settings_area') %}
  136. <header class=\"header fixed top-0 left-0 right-0 z-40 text-white\">
  137. \t<div class=\"container grid grid-cols-2 2xl:grid-cols-[1fr_auto_1fr] items-center gap-8 py-8\">
  138. \t\t<ul class=\"header-left-menu hidden 2xl:flex items-center gap-4 text-sm 4xl:text-base duration-500\">
  139. \t\t\t\t{% for item in sulu_navigation_root_flat('main', 4) %}
  140. \t\t\t\t<li>
  141. \t\t\t\t\t<a class=\"link-underline\" href=\"{{ sulu_content_path(item.url) }}\">{{ item.title }}</a>
  142. \t\t\t\t</li>
  143. \t\t\t{% endfor %}
  144. \t\t</ul>
  145. \t\t<div>
  146. \t\t\t<a class=\"header-logo block w-28 md:w-48\" href=\"/\">
  147. \t\t\t\t<div class=\"sr-only\">Home page</div>
  148. \t\t\t\t{% include 'elements2024/logo.html.twig' %}
  149. \t\t\t</a>
  150. \t\t</div>
  151. \t\t<div class=\"flex items-center justify-end gap-2\">
  152. \t\t\t<div class=\"header-user\">
  153. \t\t\t\t<div class=\"header-user__icon btn-icon\">
  154. \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\">
  155. \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\" />
  156. \t\t\t\t\t</svg>
  157. \t\t\t\t</div>
  158. \t\t\t\t<ul class=\"header-user__dropdown\">
  159. \t\t\t\t\t<li>
  160. \t\t\t\t\t\t<a href=\"tel:{{settings.content.phone|replace({' ': ''})}}\">Location</a>
  161. \t\t\t\t\t</li>
  162. \t\t\t\t\t<li>
  163. \t\t\t\t\t\t<a href=\"tel:{{settings.content.phone2|replace({' ': ''})}}\">Vente</a>
  164. \t\t\t\t\t</li>
  165. \t\t\t\t</ul>
  166. \t\t\t</div>
  167. \t\t\t<div class=\"hidden md:block\">
  168. \t\t\t\t{{ buttons.borderWhiteLink('Contact', \"/contact\") }}
  169. \t\t\t</div>
  170. \t\t\t<div class=\"flex items-center\">
  171. \t\t\t\t{{ buttons.borderWhiteBtnMenu('Menu', \"header-burger\") }}
  172. \t\t\t</div>
  173. \t\t</div>
  174. \t</div>
  175. </header>
  176. {% include 'elements2024/menu.html.twig' %}
  177. ""elements2024/header.html.twig""/home/clients/6069f7d890ad1893915d376cf7e5b903/var/www/bn-invest-commercial/templates/elements2024/header.html.twig");
  178.     }
  179. }