<?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\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* includes/navbar.html.twig */
class __TwigTemplate_dee52cf10642ed9f9795ca6b41d3b0d7b0e749776195bba263c859c2da5e7154 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/navbar.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/navbar.html.twig"));
// line 1
yield " <div class=\"header-sticky px-0\">
<div id=\"header\" class=\"px-2 px-xl-0 \">
<div class=\"row align-items-center justify-content-center flex-lg-nowrap ml-0\">
<div class=\"menu-mobile-bloc\"><a href=\"#\" class=\"toggle-menu\" title=\"MENU\"><img src=\"";
// line 4
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/images/ico_menu_m.svg"), "html", null, true);
yield "\" alt=\"MENU\" class=\"\"></a></div>
<div class=\"d-block d-lg-none ctc-mobile\"><a href=\"tel:04 51 58 08 05\" class=\"ctc-phone py-2\">04 51 58 08 05</a></div>
<div class=\"col-lg-auto col-12 left-logo\">
<div class=\"logo-site\">
<a href=\"";
// line 8
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentRootPath(), "html", null, true);
yield "\" title=\"Coworking Lyon\">
<img src=\"";
// line 9
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/images/logo.svg"), "html", null, true);
yield "\" alt=\"\" class=\"\"/>
</a>
</div>
</div>
<div class=\"col px-md-0\">
<nav class=\"navigation-site \" id=\"\">
<span class=\"span-menu-mob\">Menu</span>
<a href=\"#\" class=\"close-menu-mob bg-gradient-orange\"><img src=\"";
// line 17
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/images/closemenu.png"), "html", null, true);
yield "\" class=\"d-block\"></a>
<div class=\"container p-lg-0 scroll-me-mobile_\" style=\"position:static;\">
<div class=\"menu\">
<ul class=\"onglets d-lg-flex justify-content-end align-items-center\">
<li class=\"navItem\"><a href=\"./\" title=\"Accueil\" class=\"navLink\"><span>Accueil</span></a></li>
";
// line 22
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->env->getFunction('sulu_navigation_root_flat')->getCallable()("main", 1, true));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 23
yield " ";
$context["itemUrl"] = $this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentPath(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "url", [], "any", false, false, false, 23));
// line 24
yield " <li class=\"navItem ";
yield (((is_string($_v0 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 24, $this->source); })()), "request", [], "any", false, false, false, 24), "uri", [], "any", false, false, false, 24)) && is_string($_v1 = (isset($context["itemUrl"]) || array_key_exists("itemUrl", $context) ? $context["itemUrl"] : (function () { throw new RuntimeError('Variable "itemUrl" does not exist.', 24, $this->source); })())) && str_starts_with($_v0, $_v1))) ? (" active") : (""));
yield "\">
<a href=\"";
// line 26
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["itemUrl"]) || array_key_exists("itemUrl", $context) ? $context["itemUrl"] : (function () { throw new RuntimeError('Variable "itemUrl" does not exist.', 26, $this->source); })()), "html", null, true);
yield "\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 26), "html", null, true);
yield "\"
";
// line 28
if ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "nodeType", [], "any", false, false, false, 28) == 4)) {
yield "target=\"_blank\" rel=\"noopener\"";
}
yield "
class=\"navLink navbar__item";
// line 29
yield (((is_string($_v2 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 29, $this->source); })()), "request", [], "any", false, false, false, 29), "uri", [], "any", false, false, false, 29)) && is_string($_v3 = (isset($context["itemUrl"]) || array_key_exists("itemUrl", $context) ? $context["itemUrl"] : (function () { throw new RuntimeError('Variable "itemUrl" does not exist.', 29, $this->source); })())) && str_starts_with($_v2, $_v3))) ? (" navbar__item--active") : (""));
yield "\">
";
// line 31
yield " <span>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "excerpt", [], "any", false, true, false, 31), "title", [], "any", true, true, false, 31)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "excerpt", [], "any", false, true, false, 31), "title", [], "any", false, false, false, 31), CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 31))) : (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 31))), "html", null, true);
yield "</span>
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 36
yield "
<li class=\"navItem item-btn-connect pr-2\">
";
// line 38
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) {
// line 39
yield " ";
// line 48
yield " <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("client_espace");
yield "\" class=\"btn-connect minw-sm btn-link2 is-connected\">
<span>
Bonjour<br>
<strong>";
// line 51
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 51, $this->source); })()), "user", [], "any", false, false, false, 51), "civ", [], "any", false, false, false, 51)), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 51, $this->source); })()), "user", [], "any", false, false, false, 51), "prenom", [], "any", false, false, false, 51)), "html", null, true);
yield "</strong>
</span>
</a>
";
} else {
// line 55
yield " <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
yield "\" class=\"btn-connect minw-sm btn-link2 to-upper\">Se connecter</a>
<!--a href=\"\" title=\"Se connecter\" target=\"_blank\" class=\"navbar__item mon_compte\">
<span class=\"icon_wrapper\">
";
// line 59
yield " </span>
<span>Se connecter</span>
</a-->
";
}
// line 63
yield " </li>
<li class=\"navItem \">
<a href=\"/details\" target=\"_blank\" title=\"Réserver\" class=\"btn btn-link transition-bgcolor bg-green-s minw-sm\"><span>Réserver</span></a>
</li>
</ul>
</div>
</div>
</nav>
</div>
<div class=\"col-auto d-none d-lg-block padding-fixed-ctc\">
<div class=\"mr-lg-3\">
<div class=\"fixed-contact\">
<div class=\"letter-spacing\">Vous souhaitez réserver ?</div>
<div class=\"font-pro-bold font-19 text-uppercase letter-spacing\">Contactez-nous</div>
<a href=\"tel:04 51 58 08 05\" class=\"ctc-phone opacity-hover\">04 51 58 08 05</a>
</div>
</div>
</div>
</div>
</div>
</div>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "includes/navbar.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 162 => 63, 156 => 59, 149 => 55, 140 => 51, 133 => 48, 131 => 39, 129 => 38, 125 => 36, 113 => 31, 109 => 29, 103 => 28, 96 => 26, 90 => 24, 87 => 23, 83 => 22, 75 => 17, 64 => 9, 60 => 8, 53 => 4, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source(" <div class=\"header-sticky px-0\">
<div id=\"header\" class=\"px-2 px-xl-0 \">
<div class=\"row align-items-center justify-content-center flex-lg-nowrap ml-0\">
<div class=\"menu-mobile-bloc\"><a href=\"#\" class=\"toggle-menu\" title=\"MENU\"><img src=\"{{ asset('/assets/images/ico_menu_m.svg')}}\" alt=\"MENU\" class=\"\"></a></div>
<div class=\"d-block d-lg-none ctc-mobile\"><a href=\"tel:04 51 58 08 05\" class=\"ctc-phone py-2\">04 51 58 08 05</a></div>
<div class=\"col-lg-auto col-12 left-logo\">
<div class=\"logo-site\">
<a href=\"{{ sulu_content_root_path() }}\" title=\"Coworking Lyon\">
<img src=\"{{ asset('/assets/images/logo.svg')}}\" alt=\"\" class=\"\"/>
</a>
</div>
</div>
<div class=\"col px-md-0\">
<nav class=\"navigation-site \" id=\"\">
<span class=\"span-menu-mob\">Menu</span>
<a href=\"#\" class=\"close-menu-mob bg-gradient-orange\"><img src=\"{{ asset('/assets/images/closemenu.png')}}\" class=\"d-block\"></a>
<div class=\"container p-lg-0 scroll-me-mobile_\" style=\"position:static;\">
<div class=\"menu\">
<ul class=\"onglets d-lg-flex justify-content-end align-items-center\">
<li class=\"navItem\"><a href=\"./\" title=\"Accueil\" class=\"navLink\"><span>Accueil</span></a></li>
{% for item in sulu_navigation_root_flat('main', 1, true) %}
{% set itemUrl = sulu_content_path(item.url) %}
<li class=\"navItem {{ app.request.uri starts with itemUrl ? ' active' : '' }}\">
<a href=\"{{ itemUrl }}\" title=\"{{ item.title }}\"
{% if item.nodeType == 4 %}target=\"_blank\" rel=\"noopener\"{% endif %}
class=\"navLink navbar__item{{ app.request.uri starts with itemUrl ? ' navbar__item--active' : '' }}\">
{# fallback to content title when excerpt title not set #}
<span>{{ item.excerpt.title|default(item.title) }}</span>
</a>
</li>
{% endfor %}
<li class=\"navItem item-btn-connect pr-2\">
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
{#<a href=\"{{ path('client_espace') }}\" title=\"Mon compte\" target=\"_blank\" class=\"navbar__item mon_compte\">
<span class=\"icon_wrapper\">
<img src=\"{{ asset('assets/images/imgEC/ico_compte.svg') }}\" alt=\"Icône Mon compte\">
</span>
<span>
Bonjour,
<strong>{{ app.user.civ|capitalize }} {{ app.user.prenom|capitalize }}</strong>
</span>
</a>#}
<a href=\"{{ path('client_espace') }}\" class=\"btn-connect minw-sm btn-link2 is-connected\">
<span>
Bonjour<br>
<strong>{{ app.user.civ|capitalize }} {{ app.user.prenom|capitalize }}</strong>
</span>
</a>
{% else %}
<a href=\"{{ path('login') }}\" class=\"btn-connect minw-sm btn-link2 to-upper\">Se connecter</a>
<!--a href=\"\" title=\"Se connecter\" target=\"_blank\" class=\"navbar__item mon_compte\">
<span class=\"icon_wrapper\">
{# <img src=\"{{ asset('assets/images/imgEC/ico_compte.svg') }}\" alt=\"Icône Se connecter\"> #}
</span>
<span>Se connecter</span>
</a-->
{% endif %}
</li>
<li class=\"navItem \">
<a href=\"/details\" target=\"_blank\" title=\"Réserver\" class=\"btn btn-link transition-bgcolor bg-green-s minw-sm\"><span>Réserver</span></a>
</li>
</ul>
</div>
</div>
</nav>
</div>
<div class=\"col-auto d-none d-lg-block padding-fixed-ctc\">
<div class=\"mr-lg-3\">
<div class=\"fixed-contact\">
<div class=\"letter-spacing\">Vous souhaitez réserver ?</div>
<div class=\"font-pro-bold font-19 text-uppercase letter-spacing\">Contactez-nous</div>
<a href=\"tel:04 51 58 08 05\" class=\"ctc-phone opacity-hover\">04 51 58 08 05</a>
</div>
</div>
</div>
</div>
</div>
</div>", "includes/navbar.html.twig", "/home/coworking/www_preprod/templates/includes/navbar.html.twig");
}
}