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
<?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 ;
/* includes/header.html.twig */
class __TwigTemplate_f5140e65623fe3bb216d430e8eee441d 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_5a27a8ba21ca79b61932376b2fa922d2 = $this -> extensions [ "Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension" ];
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> enter ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "template" , "includes/header.html.twig" ));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> enter ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "template" , "includes/header.html.twig" ));
// line 1
echo "<nav class=\"navbar navbar-light sticky-top navbar-expand-lg navbar-light bg-light\">
<div class=\"container\">
<button type=\"button\" class=\"navbar-toggler\" data-bs-toggle=\"collapse\" data-bs-target=\"#navbarCollapse\">
<span class=\"navbar-toggler-icon\"></span>
</button>
<div class=\"collapse navbar-collapse\" id=\"navbarCollapse\">
<div class=\"navbar-nav\">
<a href=\"";
// line 9
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , twig_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" , false , false , false , 9 ), "website" , [], "any" , false , false , false , 9 ), "html" , null , true );
echo "\"
class=\"nav-item nav-link nav-home\"><img src=\"";
// line 10
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'Symfony\Bridge\Twig\Extension\AssetExtension' ]-> getAssetUrl (( "build/images/" . twig_get_attribute ( $this -> env , $this -> source , twig_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" , false , false , false , 10 ), "logo" , [], "any" , false , false , false , 10 ))), "html" , null , true );
echo "\"
alt=\"\"></a>
</div>
<div class=\"navbar-nav ms-auto\">
";
// line 14
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" , false , false , false , 14 )) {
// line 15
echo " <a href=\"" ;
echo $this -> extensions [ 'Symfony\Bridge\Twig\Extension\RoutingExtension' ]-> getPath ( "app_account" );
echo "\"
class=\"nav-item btnDefaut ";
// line 16
echo ((( twig_get_attribute ( $this -> env , $this -> source , twig_get_attribute ( $this -> env , $this -> source , 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.' , 16 , $this -> source ); })()), "request" , [], "any" , false , false , false , 16 ), "attributes" , [], "any" , false , false , false , 16 ), "get" , [ "_route" ], "method" , false , false , false , 16 ) == "app_account" )) ? ( "active" ) : ( "" ));
echo "\">" ;
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'Symfony\Bridge\Twig\Extension\TranslationExtension' ]-> trans ( "app.common.buttons.account" ), "html" , null , true );
echo "</a>
";
// line 17
if ( $this -> extensions [ 'Symfony\Bridge\Twig\Extension\SecurityExtension' ]-> isGranted ( "IS_IMPERSONATOR" )) {
// line 18
echo " <a href=\"" ;
echo twig_escape_filter ( $this -> env , twig_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" , false , false , false , 18 ), "html" , null , true );
echo "\"
class=\"red-btn nav-item nav-link logout-btn\">";
// line 19
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'Symfony\Bridge\Twig\Extension\TranslationExtension' ]-> trans ( "app.common.buttons.backToAdmin" ), "html" , null , true );
echo "</a>
";
} else {
// line 21
echo " <a href=\"" ;
echo $this -> extensions [ 'Symfony\Bridge\Twig\Extension\RoutingExtension' ]-> getPath ( "app_logout" );
echo "\"
class=\"nav-item nav-link logout-btn\">";
// line 22
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'Symfony\Bridge\Twig\Extension\TranslationExtension' ]-> trans ( "app.common.buttons.logout" ), "html" , null , true );
echo "</a>
";
}
// line 24
echo " " ;
} else {
// line 25
echo " <a href=\"" ;
echo $this -> extensions [ 'Symfony\Bridge\Twig\Extension\RoutingExtension' ]-> getPath ( "app_login" );
echo "\"
class=\"nav-item btnDefaut ";
// line 26
echo ((( twig_get_attribute ( $this -> env , $this -> source , twig_get_attribute ( $this -> env , $this -> source , 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.' , 26 , $this -> source ); })()), "request" , [], "any" , false , false , false , 26 ), "attributes" , [], "any" , false , false , false , 26 ), "get" , [ "_route" ], "method" , false , false , false , 26 ) == "app_login" )) ? ( "active" ) : ( "" ));
echo "\">" ;
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'Symfony\Bridge\Twig\Extension\TranslationExtension' ]-> trans ( "app.common.buttons.login" ), "html" , null , true );
echo "</a>
";
}
// line 28
echo " <li class=\"nav-item dropdown mx-2 language-dropdown\">
";
// line 29
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ( twig_split_filter ( $this -> env , twig_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" , false , false , false , 29 ), "|" ));
foreach ($context [ '_seq' ] as $context [ "_key" ] => $context [ "locale" ]) {
// line 30
echo " " ;
if ((twig_get_attribute ( $this -> env , $this -> source , 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.' , 30 , $this -> source ); })()), "request" , [], "any" , false , false , false , 30 ), "locale" , [], "any" , false , false , false , 30 ) != $context [ "locale" ])) {
// line 31
echo " <a href=\"" ;
echo twig_escape_filter ( $this -> env , (( twig_get_attribute ( $this -> env , $this -> source , 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.' , 31 , $this -> source ); })()), "request" , [], "any" , false , false , false , 31 ), "get" , [ "_route" ], "method" , false , false , false , 31 )) ? ( $this -> extensions [ 'Symfony\Bridge\Twig\Extension\RoutingExtension' ]-> getPath ( twig_get_attribute ( $this -> env , $this -> source , 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.' , 31 , $this -> source ); })()), "request" , [], "any" , false , false , false , 31 ), "get" , [ "_route" ], "method" , false , false , false , 31 ), twig_array_merge ( twig_get_attribute ( $this -> env , $this -> source , 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.' , 31 , $this -> source ); })()), "request" , [], "any" , false , false , false , 31 ), "get" , [ "_route_params" ], "method" , false , false , false , 31 ), [ "_locale" => $context [ "locale" ]]))) : ( $this -> extensions [ 'Symfony\Bridge\Twig\Extension\RoutingExtension' ]-> getPath ( "app_account" , [ "_locale" => $context [ "locale" ]]))), "html" , null , true );
echo "\">
<img width=\"30\" height=\"30\" src=\"";
// line 32
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'Symfony\Bridge\Twig\Extension\AssetExtension' ]-> getAssetUrl ((( "build/images/" . $context [ "locale" ]) . ".svg" )), "html" , null , true );
echo "\"
alt=\"";
// line 33
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'Twig\Extra\Intl\IntlExtension' ]-> getLocaleName ( $context [ "locale" ]), "html" , null , true );
echo "\">
</a>
";
}
// line 36
echo " " ;
}
$_parent = $context [ '_parent' ];
unset($context [ '_seq' ], $context [ '_iterated' ], $context [ '_key' ], $context [ 'locale' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 37
echo " </li>
</div>
</div>
</div>
</nav>
";
// line 43
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" , false , false , false , 43 ) && 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" , false , false , false , 43 )], "method" , false , false , false , 43 ))) {
// line 44
echo " <div>
<div class=\"discount-banner banner d-flex justify-content-center\">
<div class=\"content flex-grow-1 text-center p-3\">
";
// line 47
echo twig_get_attribute ( $this -> env , $this -> source , 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.' , 47 , $this -> source ); })()), "banner" , [], "any" , false , false , false , 47 ), "content" , [], "any" , false , false , false , 47 );
echo "
</div>
<div class=\"close-btn d-flex align-items-center pe-3\">
<i class=\"fa-solid fa-xmark\"></i>
</div>
</div>
</div>
";
}
// line 55
echo "
<span class=\"mb-5\"></span>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
}
public function getTemplateName ()
{
return "includes/header.html.twig" ;
}
public function isTraitable ()
{
return false ;
}
public function getDebugInfo ()
{
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 ,);
}
public function getSourceContext ()
{
return new Source ( "<nav class=\"navbar navbar-light sticky-top navbar-expand-lg navbar-light bg-light\">
<div class=\"container\">
<button type=\"button\" class=\"navbar-toggler\" data-bs-toggle=\"collapse\" data-bs-target=\"#navbarCollapse\">
<span class=\"navbar-toggler-icon\"></span>
</button>
<div class=\"collapse navbar-collapse\" id=\"navbarCollapse\">
<div class=\"navbar-nav\">
<a href=\"{{ brandService.brand.website }}\"
class=\"nav-item nav-link nav-home\"><img src=\"{{ asset('build/images/' ~ brandService.brand.logo) }}\"
alt=\"\"></a>
</div>
<div class=\"navbar-nav ms-auto\">
{% if app.user %}
<a href=\"{{ path('app_account') }}\"
class=\"nav-item btnDefaut {{ app.request.attributes.get('_route') == 'app_account' ? 'active' : '' }}\">{{ 'app.common.buttons.account'|trans }}</a>
{% if is_granted('IS_IMPERSONATOR') %}
<a href=\"{{ sessionService.data('impersonate_referer_url') }}\"
class=\"red-btn nav-item nav-link logout-btn\">{{ 'app.common.buttons.backToAdmin'|trans }}</a>
{% else %}
<a href=\"{{ path('app_logout') }}\"
class=\"nav-item nav-link logout-btn\">{{ 'app.common.buttons.logout'|trans }}</a>
{% endif %}
{% else %}
<a href=\"{{ path('app_login') }}\"
class=\"nav-item btnDefaut {{ app.request.attributes.get('_route') == 'app_login' ? 'active' : '' }}\">{{ 'app.common.buttons.login'|trans }}</a>
{% endif %}
<li class=\"nav-item dropdown mx-2 language-dropdown\">
{% for locale in parameters.supported_locales|split('|') %}
{% if app.request.locale != locale %}
<a href=\"{{ app.request.get('_route') ? path(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': locale})) : path('app_account', {'_locale': locale}) }}\">
<img width=\"30\" height=\"30\" src=\"{{ asset('build/images/' ~ locale ~ '.svg') }}\"
alt=\"{{ locale|locale_name }}\">
</a>
{% endif %}
{% endfor %}
</li>
</div>
</div>
</div>
</nav>
{% if app.user and discountBannerService.isActive(discountBannerService.banner) %}
<div>
<div class=\"discount-banner banner d-flex justify-content-center\">
<div class=\"content flex-grow-1 text-center p-3\">
{{ discountBannerService.banner.content|raw }}
</div>
<div class=\"close-btn d-flex align-items-center pe-3\">
<i class=\"fa-solid fa-xmark\"></i>
</div>
</div>
</div>
{% endif %}
<span class=\"mb-5\"></span>", "includes/header.html.twig" , "/home/pastorz/old-espace-client/templates/includes/header.html.twig" );
}
}