var/cache/website/dev/twig/b8/b8febd1f2d07764f8aa0667980f9f742624ec2f833488b4bf5e77ec224afcca8.php line 84

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* includes/navbar.html.twig */
  16. class __TwigTemplate_dee52cf10642ed9f9795ca6b41d3b0d7b0e749776195bba263c859c2da5e7154 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = []): iterable
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/navbar.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/navbar.html.twig"));
  38.         // line 1
  39.         yield " <div class=\"header-sticky  px-0\">
  40.     <div id=\"header\" class=\"px-2 px-xl-0 \">
  41.         <div class=\"row align-items-center justify-content-center flex-lg-nowrap ml-0\">
  42.             <div class=\"menu-mobile-bloc\"><a href=\"#\" class=\"toggle-menu\" title=\"MENU\"><img src=\"";
  43.         // line 4
  44.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/images/ico_menu_m.svg"), "html"nulltrue);
  45.         yield "\" alt=\"MENU\" class=\"\"></a></div>
  46.             <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>
  47.             <div class=\"col-lg-auto col-12 left-logo\">
  48.                 <div class=\"logo-site\">
  49.                     <a href=\"";
  50.         // line 8
  51.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentRootPath(), "html"nulltrue);
  52.         yield "\" title=\"Coworking Lyon\">
  53.                         <img src=\"";
  54.         // line 9
  55.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/images/logo.svg"), "html"nulltrue);
  56.         yield "\" alt=\"\" class=\"\"/>
  57.                     </a>
  58.                 </div>
  59.             </div>
  60.             
  61.             <div class=\"col px-md-0\">
  62.                 <nav class=\"navigation-site \" id=\"\">
  63.                     <span class=\"span-menu-mob\">Menu</span>
  64.                     <a href=\"#\" class=\"close-menu-mob bg-gradient-orange\"><img src=\"";
  65.         // line 17
  66.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/images/closemenu.png"), "html"nulltrue);
  67.         yield "\" class=\"d-block\"></a>
  68.                     <div class=\"container p-lg-0  scroll-me-mobile_\" style=\"position:static;\">
  69.                         <div class=\"menu\">
  70.                             <ul class=\"onglets d-lg-flex justify-content-end align-items-center\">
  71.                                 <li class=\"navItem\"><a href=\"./\" title=\"Accueil\" class=\"navLink\"><span>Accueil</span></a></li>
  72.                                 ";
  73.         // line 22
  74.         $context['_parent'] = $context;
  75.         $context['_seq'] = CoreExtension::ensureTraversable($this->env->getFunction('sulu_navigation_root_flat')->getCallable()("main"1true));
  76.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  77.             // line 23
  78.             yield "                                    ";
  79.             $context["itemUrl"] = $this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentPath(CoreExtension::getAttribute($this->env$this->source$context["item"], "url", [], "any"falsefalsefalse23));
  80.             // line 24
  81.             yield "                                    <li class=\"navItem ";
  82.             yield (((is_string($_v0 CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse24), "uri", [], "any"falsefalsefalse24)) && 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") : (""));
  83.             yield "\">
  84.                                         
  85.                                         <a href=\"";
  86.             // line 26
  87.             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"nulltrue);
  88.             yield "\" title=\"";
  89.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "title", [], "any"falsefalsefalse26), "html"nulltrue);
  90.             yield "\"
  91.                                         
  92.                                         ";
  93.             // line 28
  94.             if ((CoreExtension::getAttribute($this->env$this->source$context["item"], "nodeType", [], "any"falsefalsefalse28) == 4)) {
  95.                 yield "target=\"_blank\" rel=\"noopener\"";
  96.             }
  97.             yield 
  98.                                         class=\"navLink navbar__item";
  99.             // line 29
  100.             yield (((is_string($_v2 CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse29), "uri", [], "any"falsefalsefalse29)) && 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") : (""));
  101.             yield "\">
  102.                                             ";
  103.             // line 31
  104.             yield "                                            <span>";
  105.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["item"], "excerpt", [], "any"falsetruefalse31), "title", [], "any"truetruefalse31)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["item"], "excerpt", [], "any"falsetruefalse31), "title", [], "any"falsefalsefalse31), CoreExtension::getAttribute($this->env$this->source$context["item"], "title", [], "any"falsefalsefalse31))) : (CoreExtension::getAttribute($this->env$this->source$context["item"], "title", [], "any"falsefalsefalse31))), "html"nulltrue);
  106.             yield "</span>
  107.                                         </a>
  108.                                         
  109.                                     </li>
  110.                                 ";
  111.         }
  112.         $_parent $context['_parent'];
  113.         unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
  114.         $context array_intersect_key($context$_parent) + $_parent;
  115.         // line 36
  116.         yield "                                
  117.                                 <li class=\"navItem item-btn-connect pr-2\">
  118.                                     ";
  119.         // line 38
  120.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) {
  121.             // line 39
  122.             yield "                                        ";
  123.             // line 48
  124.             yield "                                        <a href=\"";
  125.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("client_espace");
  126.             yield "\" class=\"btn-connect minw-sm btn-link2 is-connected\">
  127.                                             <span>
  128.                                                 Bonjour<br>
  129.                                                 <strong>";
  130.             // line 51
  131.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse51), "civ", [], "any"falsefalsefalse51)), "html"nulltrue);
  132.             yield " ";
  133.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse51), "prenom", [], "any"falsefalsefalse51)), "html"nulltrue);
  134.             yield "</strong>
  135.                                             </span>
  136.                                         </a>
  137.                                     ";
  138.         } else {
  139.             // line 55
  140.             yield "                                        <a href=\"";
  141.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
  142.             yield "\" class=\"btn-connect minw-sm btn-link2 to-upper\">Se connecter</a>
  143.                                         <!--a href=\"\" title=\"Se connecter\" target=\"_blank\" class=\"navbar__item mon_compte\">
  144.                                             <span class=\"icon_wrapper\">
  145.                                                 ";
  146.             // line 59
  147.             yield "                                            </span>
  148.                                             <span>Se connecter</span>
  149.                                         </a-->
  150.                                     ";
  151.         }
  152.         // line 63
  153.         yield "                                </li>
  154.                                 <li class=\"navItem \">
  155.                                     <a href=\"/details\" target=\"_blank\" title=\"Réserver\" class=\"btn btn-link transition-bgcolor bg-green-s minw-sm\"><span>Réserver</span></a>
  156.                                 </li>
  157.                             </ul>
  158.                         </div>
  159.                     </div>
  160.                 </nav>
  161.             </div>
  162.             <div class=\"col-auto d-none d-lg-block padding-fixed-ctc\">
  163.                 <div class=\"mr-lg-3\">
  164.                     <div class=\"fixed-contact\">
  165.                         <div class=\"letter-spacing\">Vous souhaitez réserver ?</div>
  166.                         <div class=\"font-pro-bold font-19 text-uppercase letter-spacing\">Contactez-nous</div>
  167.                         <a href=\"tel:04 51 58 08 05\" class=\"ctc-phone opacity-hover\">04 51 58 08 05</a>
  168.                     </div>
  169.                 </div>
  170.             </div>
  171.         </div>
  172.         
  173.     </div>
  174.     
  175. </div>";
  176.         
  177.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  178.         
  179.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  180.         yield from [];
  181.     }
  182.     /**
  183.      * @codeCoverageIgnore
  184.      */
  185.     public function getTemplateName(): string
  186.     {
  187.         return "includes/navbar.html.twig";
  188.     }
  189.     /**
  190.      * @codeCoverageIgnore
  191.      */
  192.     public function isTraitable(): bool
  193.     {
  194.         return false;
  195.     }
  196.     /**
  197.      * @codeCoverageIgnore
  198.      */
  199.     public function getDebugInfo(): array
  200.     {
  201.         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,);
  202.     }
  203.     public function getSourceContext(): Source
  204.     {
  205.         return new Source(" <div class=\"header-sticky  px-0\">
  206.     <div id=\"header\" class=\"px-2 px-xl-0 \">
  207.         <div class=\"row align-items-center justify-content-center flex-lg-nowrap ml-0\">
  208.             <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>
  209.             <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>
  210.             <div class=\"col-lg-auto col-12 left-logo\">
  211.                 <div class=\"logo-site\">
  212.                     <a href=\"{{ sulu_content_root_path() }}\" title=\"Coworking Lyon\">
  213.                         <img src=\"{{ asset('/assets/images/logo.svg')}}\" alt=\"\" class=\"\"/>
  214.                     </a>
  215.                 </div>
  216.             </div>
  217.             
  218.             <div class=\"col px-md-0\">
  219.                 <nav class=\"navigation-site \" id=\"\">
  220.                     <span class=\"span-menu-mob\">Menu</span>
  221.                     <a href=\"#\" class=\"close-menu-mob bg-gradient-orange\"><img src=\"{{ asset('/assets/images/closemenu.png')}}\" class=\"d-block\"></a>
  222.                     <div class=\"container p-lg-0  scroll-me-mobile_\" style=\"position:static;\">
  223.                         <div class=\"menu\">
  224.                             <ul class=\"onglets d-lg-flex justify-content-end align-items-center\">
  225.                                 <li class=\"navItem\"><a href=\"./\" title=\"Accueil\" class=\"navLink\"><span>Accueil</span></a></li>
  226.                                 {% for item in sulu_navigation_root_flat('main', 1, true) %}
  227.                                     {% set itemUrl = sulu_content_path(item.url) %}
  228.                                     <li class=\"navItem {{ app.request.uri starts with itemUrl ? ' active' : '' }}\">
  229.                                         
  230.                                         <a href=\"{{ itemUrl }}\" title=\"{{ item.title }}\"
  231.                                         
  232.                                         {% if item.nodeType == 4 %}target=\"_blank\" rel=\"noopener\"{% endif %} 
  233.                                         class=\"navLink navbar__item{{ app.request.uri starts with itemUrl ? ' navbar__item--active' : '' }}\">
  234.                                             {# fallback to content title when excerpt title not set #}
  235.                                             <span>{{ item.excerpt.title|default(item.title) }}</span>
  236.                                         </a>
  237.                                         
  238.                                     </li>
  239.                                 {% endfor %}
  240.                                 
  241.                                 <li class=\"navItem item-btn-connect pr-2\">
  242.                                     {% if is_granted('IS_AUTHENTICATED_FULLY') %}
  243.                                         {#<a href=\"{{ path('client_espace') }}\" title=\"Mon compte\" target=\"_blank\" class=\"navbar__item mon_compte\">
  244.                                             <span class=\"icon_wrapper\">
  245.                                                 <img src=\"{{ asset('assets/images/imgEC/ico_compte.svg') }}\" alt=\"Icône Mon compte\">
  246.                                             </span>
  247.                                             <span>
  248.                                                 Bonjour,
  249.                                                 <strong>{{ app.user.civ|capitalize }} {{ app.user.prenom|capitalize }}</strong>
  250.                                             </span>
  251.                                         </a>#}
  252.                                         <a href=\"{{ path('client_espace') }}\" class=\"btn-connect minw-sm btn-link2 is-connected\">
  253.                                             <span>
  254.                                                 Bonjour<br>
  255.                                                 <strong>{{ app.user.civ|capitalize }} {{ app.user.prenom|capitalize }}</strong>
  256.                                             </span>
  257.                                         </a>
  258.                                     {% else %}
  259.                                         <a href=\"{{ path('login') }}\" class=\"btn-connect minw-sm btn-link2 to-upper\">Se connecter</a>
  260.                                         <!--a href=\"\" title=\"Se connecter\" target=\"_blank\" class=\"navbar__item mon_compte\">
  261.                                             <span class=\"icon_wrapper\">
  262.                                                 {# <img src=\"{{ asset('assets/images/imgEC/ico_compte.svg') }}\" alt=\"Icône Se connecter\"> #}
  263.                                             </span>
  264.                                             <span>Se connecter</span>
  265.                                         </a-->
  266.                                     {% endif %}
  267.                                 </li>
  268.                                 <li class=\"navItem \">
  269.                                     <a href=\"/details\" target=\"_blank\" title=\"Réserver\" class=\"btn btn-link transition-bgcolor bg-green-s minw-sm\"><span>Réserver</span></a>
  270.                                 </li>
  271.                             </ul>
  272.                         </div>
  273.                     </div>
  274.                 </nav>
  275.             </div>
  276.             <div class=\"col-auto d-none d-lg-block padding-fixed-ctc\">
  277.                 <div class=\"mr-lg-3\">
  278.                     <div class=\"fixed-contact\">
  279.                         <div class=\"letter-spacing\">Vous souhaitez réserver ?</div>
  280.                         <div class=\"font-pro-bold font-19 text-uppercase letter-spacing\">Contactez-nous</div>
  281.                         <a href=\"tel:04 51 58 08 05\" class=\"ctc-phone opacity-hover\">04 51 58 08 05</a>
  282.                     </div>
  283.                 </div>
  284.             </div>
  285.         </div>
  286.         
  287.     </div>
  288.     
  289. </div>""includes/navbar.html.twig""/home/coworking/www_preprod/templates/includes/navbar.html.twig");
  290.     }
  291. }