Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

var/cache/dev/twig/fa/fa08fda538076fada0c3f46a46ab9b69.php line 103

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. /* includes/header.html.twig */
  14. class __TwigTemplate_f5140e65623fe3bb216d430e8eee441d 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/header.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/header.html.twig"));
  33.         // line 1
  34.         echo "<nav class=\"navbar navbar-light sticky-top navbar-expand-lg navbar-light bg-light\">
  35.     <div class=\"container\">
  36.         <button type=\"button\" class=\"navbar-toggler\" data-bs-toggle=\"collapse\" data-bs-target=\"#navbarCollapse\">
  37.             <span class=\"navbar-toggler-icon\"></span>
  38.         </button>
  39.         <div class=\"collapse navbar-collapse\" id=\"navbarCollapse\">
  40.             <div class=\"navbar-nav\">
  41.                 <a href=\"";
  42.         // line 9
  43.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["brandService"]) || array_key_exists("brandService"$context) ? $context["brandService"] : (function () { throw new RuntimeError('Variable "brandService" does not exist.'9$this->source); })()), "brand", [], "any"falsefalsefalse9), "website", [], "any"falsefalsefalse9), "html"nulltrue);
  44.         echo "\"
  45.                    class=\"nav-item nav-link nav-home\"><img src=\"";
  46.         // line 10
  47.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("build/images/" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["brandService"]) || array_key_exists("brandService"$context) ? $context["brandService"] : (function () { throw new RuntimeError('Variable "brandService" does not exist.'10$this->source); })()), "brand", [], "any"falsefalsefalse10), "logo", [], "any"falsefalsefalse10))), "html"nulltrue);
  48.         echo "\"
  49.                                                            alt=\"\"></a>
  50.             </div>
  51.             <div class=\"navbar-nav ms-auto\">
  52.                 ";
  53.         // line 14
  54.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'14$this->source); })()), "user", [], "any"falsefalsefalse14)) {
  55.             // line 15
  56.             echo "                    <a href=\"";
  57.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_account");
  58.             echo "\"
  59.                        class=\"nav-item btnDefaut ";
  60.             // line 16
  61.             echo (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'16$this->source); })()), "request", [], "any"falsefalsefalse16), "attributes", [], "any"falsefalsefalse16), "get", ["_route"], "method"falsefalsefalse16) == "app_account")) ? ("active") : (""));
  62.             echo "\">";
  63.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.buttons.account"), "html"nulltrue);
  64.             echo "</a>
  65.                     ";
  66.             // line 17
  67.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_IMPERSONATOR")) {
  68.                 // line 18
  69.                 echo "                        <a href=\"";
  70.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sessionService"]) || array_key_exists("sessionService"$context) ? $context["sessionService"] : (function () { throw new RuntimeError('Variable "sessionService" does not exist.'18$this->source); })()), "data", ["impersonate_referer_url"], "method"falsefalsefalse18), "html"nulltrue);
  71.                 echo "\"
  72.                            class=\"red-btn nav-item nav-link logout-btn\">";
  73.                 // line 19
  74.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.buttons.backToAdmin"), "html"nulltrue);
  75.                 echo "</a>
  76.                     ";
  77.             } else {
  78.                 // line 21
  79.                 echo "                        <a href=\"";
  80.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  81.                 echo "\"
  82.                            class=\"nav-item nav-link logout-btn\">";
  83.                 // line 22
  84.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.buttons.logout"), "html"nulltrue);
  85.                 echo "</a>
  86.                     ";
  87.             }
  88.             // line 24
  89.             echo "                ";
  90.         } else {
  91.             // line 25
  92.             echo "                    <a href=\"";
  93.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  94.             echo "\"
  95.                        class=\"nav-item btnDefaut ";
  96.             // line 26
  97.             echo (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'26$this->source); })()), "request", [], "any"falsefalsefalse26), "attributes", [], "any"falsefalsefalse26), "get", ["_route"], "method"falsefalsefalse26) == "app_login")) ? ("active") : (""));
  98.             echo "\">";
  99.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.buttons.login"), "html"nulltrue);
  100.             echo "</a>
  101.                 ";
  102.         }
  103.         // line 28
  104.         echo "                <li class=\"nav-item dropdown mx-2 language-dropdown\">
  105.                     ";
  106.         // line 29
  107.         $context['_parent'] = $context;
  108.         $context['_seq'] = twig_ensure_traversable(twig_split_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["parameters"]) || array_key_exists("parameters"$context) ? $context["parameters"] : (function () { throw new RuntimeError('Variable "parameters" does not exist.'29$this->source); })()), "supported_locales", [], "any"falsefalsefalse29), "|"));
  109.         foreach ($context['_seq'] as $context["_key"] => $context["locale"]) {
  110.             // line 30
  111.             echo "                        ";
  112.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'30$this->source); })()), "request", [], "any"falsefalsefalse30), "locale", [], "any"falsefalsefalse30) != $context["locale"])) {
  113.                 // line 31
  114.                 echo "                            <a href=\"";
  115.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'31$this->source); })()), "request", [], "any"falsefalsefalse31), "get", ["_route"], "method"falsefalsefalse31)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'31$this->source); })()), "request", [], "any"falsefalsefalse31), "get", ["_route"], "method"falsefalsefalse31), twig_array_merge(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'31$this->source); })()), "request", [], "any"falsefalsefalse31), "get", ["_route_params"], "method"falsefalsefalse31), ["_locale" => $context["locale"]]))) : ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_account", ["_locale" => $context["locale"]]))), "html"nulltrue);
  116.                 echo "\">
  117.                                 <img width=\"30\" height=\"30\" src=\"";
  118.                 // line 32
  119.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("build/images/" $context["locale"]) . ".svg")), "html"nulltrue);
  120.                 echo "\"
  121.                                      alt=\"";
  122.                 // line 33
  123.                 echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->getLocaleName($context["locale"]), "html"nulltrue);
  124.                 echo "\">
  125.                             </a>
  126.                         ";
  127.             }
  128.             // line 36
  129.             echo "                    ";
  130.         }
  131.         $_parent $context['_parent'];
  132.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['locale'], $context['_parent'], $context['loop']);
  133.         $context array_intersect_key($context$_parent) + $_parent;
  134.         // line 37
  135.         echo "                </li>
  136.             </div>
  137.         </div>
  138.     </div>
  139. </nav>
  140. ";
  141.         // line 43
  142.         if ((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'43$this->source); })()), "user", [], "any"falsefalsefalse43) && twig_get_attribute($this->env$this->source, (isset($context["discountBannerService"]) || array_key_exists("discountBannerService"$context) ? $context["discountBannerService"] : (function () { throw new RuntimeError('Variable "discountBannerService" does not exist.'43$this->source); })()), "isActive", [twig_get_attribute($this->env$this->source, (isset($context["discountBannerService"]) || array_key_exists("discountBannerService"$context) ? $context["discountBannerService"] : (function () { throw new RuntimeError('Variable "discountBannerService" does not exist.'43$this->source); })()), "banner", [], "any"falsefalsefalse43)], "method"falsefalsefalse43))) {
  143.             // line 44
  144.             echo "    <div>
  145.         <div class=\"discount-banner banner d-flex justify-content-center\">
  146.             <div class=\"content flex-grow-1 text-center p-3\">
  147.                 ";
  148.             // line 47
  149.             echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["discountBannerService"]) || array_key_exists("discountBannerService"$context) ? $context["discountBannerService"] : (function () { throw new RuntimeError('Variable "discountBannerService" does not exist.'47$this->source); })()), "banner", [], "any"falsefalsefalse47), "content", [], "any"falsefalsefalse47);
  150.             echo "
  151.             </div>
  152.             <div class=\"close-btn d-flex align-items-center pe-3\">
  153.                 <i class=\"fa-solid fa-xmark\"></i>
  154.             </div>
  155.         </div>
  156.     </div>
  157. ";
  158.         }
  159.         // line 55
  160.         echo "
  161. <span class=\"mb-5\"></span>";
  162.         
  163.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  164.         
  165.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  166.     }
  167.     public function getTemplateName()
  168.     {
  169.         return "includes/header.html.twig";
  170.     }
  171.     public function isTraitable()
  172.     {
  173.         return false;
  174.     }
  175.     public function getDebugInfo()
  176.     {
  177.         return array (  171 => 55,  160 => 47,  155 => 44,  153 => 43,  145 => 37,  139 => 36,  133 => 33,  129 => 32,  124 => 31,  121 => 30,  117 => 29,  114 => 28,  107 => 26,  102 => 25,  99 => 24,  94 => 22,  89 => 21,  84 => 19,  79 => 18,  77 => 17,  71 => 16,  66 => 15,  64 => 14,  57 => 10,  53 => 9,  43 => 1,);
  178.     }
  179.     public function getSourceContext()
  180.     {
  181.         return new Source("<nav class=\"navbar navbar-light sticky-top navbar-expand-lg navbar-light bg-light\">
  182.     <div class=\"container\">
  183.         <button type=\"button\" class=\"navbar-toggler\" data-bs-toggle=\"collapse\" data-bs-target=\"#navbarCollapse\">
  184.             <span class=\"navbar-toggler-icon\"></span>
  185.         </button>
  186.         <div class=\"collapse navbar-collapse\" id=\"navbarCollapse\">
  187.             <div class=\"navbar-nav\">
  188.                 <a href=\"{{ brandService.brand.website }}\"
  189.                    class=\"nav-item nav-link nav-home\"><img src=\"{{ asset('build/images/' ~ brandService.brand.logo) }}\"
  190.                                                            alt=\"\"></a>
  191.             </div>
  192.             <div class=\"navbar-nav ms-auto\">
  193.                 {% if app.user %}
  194.                     <a href=\"{{ path('app_account') }}\"
  195.                        class=\"nav-item btnDefaut {{ app.request.attributes.get('_route') == 'app_account' ? 'active' : '' }}\">{{ 'app.common.buttons.account'|trans }}</a>
  196.                     {% if is_granted('IS_IMPERSONATOR') %}
  197.                         <a href=\"{{ sessionService.data('impersonate_referer_url') }}\"
  198.                            class=\"red-btn nav-item nav-link logout-btn\">{{ 'app.common.buttons.backToAdmin'|trans }}</a>
  199.                     {% else %}
  200.                         <a href=\"{{ path('app_logout') }}\"
  201.                            class=\"nav-item nav-link logout-btn\">{{ 'app.common.buttons.logout'|trans }}</a>
  202.                     {% endif %}
  203.                 {% else %}
  204.                     <a href=\"{{ path('app_login') }}\"
  205.                        class=\"nav-item btnDefaut {{ app.request.attributes.get('_route') == 'app_login' ? 'active' : '' }}\">{{ 'app.common.buttons.login'|trans }}</a>
  206.                 {% endif %}
  207.                 <li class=\"nav-item dropdown mx-2 language-dropdown\">
  208.                     {% for locale in parameters.supported_locales|split('|') %}
  209.                         {% if app.request.locale != locale %}
  210.                             <a href=\"{{ app.request.get('_route') ? path(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': locale})) : path('app_account', {'_locale': locale}) }}\">
  211.                                 <img width=\"30\" height=\"30\" src=\"{{ asset('build/images/' ~ locale ~ '.svg') }}\"
  212.                                      alt=\"{{ locale|locale_name }}\">
  213.                             </a>
  214.                         {% endif %}
  215.                     {% endfor %}
  216.                 </li>
  217.             </div>
  218.         </div>
  219.     </div>
  220. </nav>
  221. {% if app.user and discountBannerService.isActive(discountBannerService.banner) %}
  222.     <div>
  223.         <div class=\"discount-banner banner d-flex justify-content-center\">
  224.             <div class=\"content flex-grow-1 text-center p-3\">
  225.                 {{ discountBannerService.banner.content|raw }}
  226.             </div>
  227.             <div class=\"close-btn d-flex align-items-center pe-3\">
  228.                 <i class=\"fa-solid fa-xmark\"></i>
  229.             </div>
  230.         </div>
  231.     </div>
  232. {% endif %}
  233. <span class=\"mb-5\"></span>""includes/header.html.twig""/home/pastorz/old-espace-client/templates/includes/header.html.twig");
  234.     }
  235. }