<?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;
/* frontend/header.html.twig */
class __TwigTemplate_be3eeeb441b127cd519c7cc6684bf7a4 extends \Twig\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", "frontend/header.html.twig"));
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/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", "frontend/header.html.twig"));
// line 1
echo "<header id=\"header\" class=\"header\" role=\"banner\">
";
// line 2
$this->loadTemplate("frontend/header_change_country.html.twig", "frontend/header.html.twig", 2)->display($context);
// line 3
echo "
";
// line 4
ob_start();
// line 5
echo " ";
$this->loadTemplate("frontend/countries.html.twig", "frontend/header.html.twig", 5)->display($context);
// line 6
echo " ";
$context["country_switcher"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 7
echo "
<div class=\"header-container-top header-menu-mobile clearfix\" data-size=\"big\">
<div class=\"left\"><a href=\"";
// line 9
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/vpauto/frontend/images/logo-vpauto.webp"), "html", null, true);
echo "\" alt=\"Achat/Vente de voitures d'occasion aux enchères\" class=\"logo-vpauto\" /></a></div>
<nav class=\"left navigation nav m-hide\" role=\"navigation\">
<ul class=\"clearfix\">
<li>
<a href=\"javascript:void(0)\" class=\"bt-menu tab-l-hide tab-p-hide m-hide\">
<span class=\"lignes\">
<span class=\"ligne1\"></span>
<span class=\"ligne2\"></span>
<span class=\"ligne3\"></span>
</span>
<span>";
// line 20
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.navigation.menu"), "html", null, true);
echo "</span>
</a>
<a href=\"#\" class=\"tab-bt-menu grid-hide tab-l-visible tab-p-visible m-hide\">
<span class=\"lignes\">
<span class=\"ligne1\"></span>
<span class=\"ligne2\"></span>
<span class=\"ligne3\"></span>
</span>
<span>";
// line 28
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.navigation.menu"), "html", null, true);
echo "</span>
</a>
</li>
<li class=\"tab-l-hide tab-p-hide m-hide\"><a href=\"";
// line 31
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_vehicle_list");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.link.buy"), "html", null, true);
echo "</a></li>
";
// line 32
if ($this->extensions['App\Twig\Extension\CountryExtension']->isCurrentCountry(twig_constant("App\\Twig\\Extension\\CountryExtension::COUNTRY_FRANCE"))) {
// line 33
echo " <li class=\"tab-l-hide tab-p-hide m-hide\"><a href=\"";
echo twig_escape_filter($this->env, (isset($context["sell_my_auto_url"]) || array_key_exists("sell_my_auto_url", $context) ? $context["sell_my_auto_url"] : (function () { throw new RuntimeError('Variable "sell_my_auto_url" does not exist.', 33, $this->source); })()), "html", null, true);
echo "\" target=\"_blank\" title=\"\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.link.sell"), "html", null, true);
echo "</a></li>
";
}
// line 35
echo " ";
if ($this->extensions['App\Twig\Extension\CountryExtension']->isCurrentCountry(twig_constant("App\\Twig\\Extension\\CountryExtension::COUNTRY_FRANCE"))) {
// line 36
echo " <li class=\"grid-xl-visible grid-l-visible grid-hide\">
<a href=\"";
// line 37
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_wiki_list_fr", ["limit" => 10]);
echo "\" title=\"\">
";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.france.blog.link01"), "html", null, true);
echo "
</a>
</li>
";
}
// line 42
echo " ";
if ($this->extensions['App\Twig\Extension\CountryExtension']->isCurrentCountry(twig_constant("App\\Twig\\Extension\\CountryExtension::COUNTRY_PORTUGAL"))) {
// line 43
echo " <li class=\"grid-xl-visible grid-l-visible grid-hide\">
<a href=\"";
// line 44
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_wiki_list_pt");
echo "\">
";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.portugal.blog.title"), "html", null, true);
echo "
</a>
</li>
";
}
// line 49
echo " </ul>
</nav>
<div class=\"menuhaut d-menuhaut right prelative tab-p-hide m-hide\">
<ul class=\"left\">
<li class=\"tel\"><i class=\"icon-menu-tel\"></i><span>";
// line 54
$this->loadTemplate("Frontend/user/_tel_customer_service.html.twig", "frontend/header.html.twig", 54)->display($context);
echo "</span></li>
";
// line 55
if (( !(null === 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.', 55, $this->source); })()), "user", [], "any", false, false, false, 55)) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED"))) {
// line 56
echo " <li class=\"connexion\"><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_profile_edit");
echo "\" title=\"\" class=\"mon-compte\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.profile.account"), "html", null, true);
echo "</a></li>
";
// line 57
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PREVIOUS_ADMIN")) {
// line 58
echo " <li class=\"inscription\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("backend_user_view", ["id" => 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.', 58, $this->source); })()), "user", [], "any", false, false, false, 58), "id", [], "any", false, false, false, 58), "_switch_user" => "_exit"]), "html", null, true);
echo "\" title=\"\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.switch.user.exit"), "html", null, true);
echo "</a></li>
";
} else {
// line 60
echo " <li class=\"deconnexion\"><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_security_logout");
echo "\" title=\"\" class=\"deconnexion\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.profile.logout"), "html", null, true);
echo "</a></li>
";
}
// line 62
echo " ";
} else {
// line 63
echo " <li class=\"connexion u-login u-modal\"><a href=\"#\" title=\"\" class=\"\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.profile.login"), "html", null, true);
echo "</a></li>
<li class=\"inscription header_menu_dropdown\">
";
// line 65
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.profile.create"), "html", null, true);
echo "
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"8\" height=\"8\" fill=\"#383b3e\" class=\"bi bi-chevron-down\" viewBox=\"0 0 16 16\">
<path fill-rule=\"evenodd\" d=\"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z\"></path>
</svg>
<ul class=\"header_menu_dropdown_ul\">
<li class=\"header_menu_link_pro\"><a href=\"";
// line 70
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\ADExtension']->generateADUrl(), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.link.pro"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.link.pro"), "html", null, true);
echo "</a></li>
<li class=\"header_menu_link_private\"><a href=\"";
// line 71
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registration_step", ["step" => 2]);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.link.private"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.link.private"), "html", null, true);
echo "</a></li>
<li class=\"header_menu_link_society\"><a href=\"";
// line 72
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registration_step", ["step" => 2]);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.link.society"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.link.society"), "html", null, true);
echo "</a></li>
</ul>
</li>
";
}
// line 76
echo " ";
if (((null === 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.', 76, $this->source); })()), "user", [], "any", false, false, false, 76)) || $this->env->getTest('pro')->getCallable()(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.', 76, $this->source); })()), "user", [], "any", false, false, false, 76)))) {
// line 77
echo " <li class=\"btn-pro\"><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage_pro");
echo "\" title=\"\" rel=\"nofollow\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.button.pro"), "html", null, true);
echo "</a></li>
";
}
// line 79
echo " ";
if ( !$this->extensions['App\Twig\Extension\WebsiteExtension']->isCurrentWebsite("showvroom")) {
// line 80
echo " <li class=\"langue cursor\">
<span class=\"d-txt-langue\">
<i class=\"icon-flag-";
// line 82
echo twig_escape_filter($this->env, (isset($context["current_country"]) || array_key_exists("current_country", $context) ? $context["current_country"] : (function () { throw new RuntimeError('Variable "current_country" does not exist.', 82, $this->source); })()), "html", null, true);
echo "\"></i>
<span class=\"fleche\">
<span class=\"ligne1\"></span>
<span class=\"ligne2\"></span>
</span>
</span>
";
// line 89
echo twig_escape_filter($this->env, (isset($context["country_switcher"]) || array_key_exists("country_switcher", $context) ? $context["country_switcher"] : (function () { throw new RuntimeError('Variable "country_switcher" does not exist.', 89, $this->source); })()), "html", null, true);
echo "
</li>
";
}
// line 92
echo " </ul>
</div>
<div class=\"menuhaut-mobile right grid-hide tab-l-hide tab-p-hide m-visible\">
<a href=\"#\" class=\"m-bt-menu\">
<span class=\"lignes\">
<span class=\"ligne1\"></span>
<span class=\"ligne2\"></span>
<span class=\"ligne3\"></span>
</span>
<span>";
// line 101
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.navigation.menu"), "html", null, true);
echo "</span>
</a>
</div>
</div>
</header>
";
// line 106
$this->loadTemplate("frontend/main_menu.html.twig", "frontend/header.html.twig", 106)->display(twig_array_merge($context, ["type" => "private", "country_switcher" => // line 108
(isset($context["country_switcher"]) || array_key_exists("country_switcher", $context) ? $context["country_switcher"] : (function () { throw new RuntimeError('Variable "country_switcher" does not exist.', 108, $this->source); })())]));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "frontend/header.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 285 => 108, 284 => 106, 276 => 101, 265 => 92, 259 => 89, 249 => 82, 245 => 80, 242 => 79, 234 => 77, 231 => 76, 220 => 72, 212 => 71, 204 => 70, 196 => 65, 190 => 63, 187 => 62, 179 => 60, 171 => 58, 169 => 57, 162 => 56, 160 => 55, 156 => 54, 149 => 49, 142 => 45, 138 => 44, 135 => 43, 132 => 42, 125 => 38, 121 => 37, 118 => 36, 115 => 35, 107 => 33, 105 => 32, 99 => 31, 93 => 28, 82 => 20, 66 => 9, 62 => 7, 59 => 6, 56 => 5, 54 => 4, 51 => 3, 49 => 2, 46 => 1,);
}
public function getSourceContext()
{
return new Source("<header id=\"header\" class=\"header\" role=\"banner\">
{% include 'frontend/header_change_country.html.twig' %}
{% set country_switcher %}
{% include 'frontend/countries.html.twig' %}
{% endset %}
<div class=\"header-container-top header-menu-mobile clearfix\" data-size=\"big\">
<div class=\"left\"><a href=\"{{ path('homepage') }}\"><img src=\"{{ asset('bundles/vpauto/frontend/images/logo-vpauto.webp') }}\" alt=\"Achat/Vente de voitures d'occasion aux enchères\" class=\"logo-vpauto\" /></a></div>
<nav class=\"left navigation nav m-hide\" role=\"navigation\">
<ul class=\"clearfix\">
<li>
<a href=\"javascript:void(0)\" class=\"bt-menu tab-l-hide tab-p-hide m-hide\">
<span class=\"lignes\">
<span class=\"ligne1\"></span>
<span class=\"ligne2\"></span>
<span class=\"ligne3\"></span>
</span>
<span>{{ 'frontend.header.navigation.menu'|trans }}</span>
</a>
<a href=\"#\" class=\"tab-bt-menu grid-hide tab-l-visible tab-p-visible m-hide\">
<span class=\"lignes\">
<span class=\"ligne1\"></span>
<span class=\"ligne2\"></span>
<span class=\"ligne3\"></span>
</span>
<span>{{ 'frontend.header.navigation.menu'|trans }}</span>
</a>
</li>
<li class=\"tab-l-hide tab-p-hide m-hide\"><a href=\"{{ path('frontend_vehicle_list') }}\">{{ 'frontend.header.link.buy'|trans }}</a></li>
{% if is_current_country(constant('App\\\\Twig\\\\Extension\\\\CountryExtension::COUNTRY_FRANCE')) %}
<li class=\"tab-l-hide tab-p-hide m-hide\"><a href=\"{{ sell_my_auto_url }}\" target=\"_blank\" title=\"\">{{ 'frontend.header.link.sell'|trans }}</a></li>
{% endif %}
{% if is_current_country(constant('App\\\\Twig\\\\Extension\\\\CountryExtension::COUNTRY_FRANCE')) %}
<li class=\"grid-xl-visible grid-l-visible grid-hide\">
<a href=\"{{ path('frontend_wiki_list_fr', {'limit': 10}) }}\" title=\"\">
{{ 'frontend.france.blog.link01'|trans }}
</a>
</li>
{% endif %}
{% if is_current_country(constant('App\\\\Twig\\\\Extension\\\\CountryExtension::COUNTRY_PORTUGAL')) %}
<li class=\"grid-xl-visible grid-l-visible grid-hide\">
<a href=\"{{ path('frontend_wiki_list_pt') }}\">
{{ 'frontend.portugal.blog.title'|trans }}
</a>
</li>
{% endif %}
</ul>
</nav>
<div class=\"menuhaut d-menuhaut right prelative tab-p-hide m-hide\">
<ul class=\"left\">
<li class=\"tel\"><i class=\"icon-menu-tel\"></i><span>{% include 'Frontend/user/_tel_customer_service.html.twig' %}</span></li>
{% if app.user is not null and is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<li class=\"connexion\"><a href=\"{{ path('fos_user_profile_edit') }}\" title=\"\" class=\"mon-compte\">{{ \"frontend.profile.account\"|trans }}</a></li>
{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
<li class=\"inscription\"><a href=\"{{ path('backend_user_view', {'id': app.user.id, '_switch_user': '_exit'})}}\" title=\"\">{{ \"frontend.switch.user.exit\"|trans }}</a></li>
{% else %}
<li class=\"deconnexion\"><a href=\"{{ path('fos_user_security_logout') }}\" title=\"\" class=\"deconnexion\">{{ \"frontend.profile.logout\"|trans }}</a></li>
{% endif %}
{% else %}
<li class=\"connexion u-login u-modal\"><a href=\"#\" title=\"\" class=\"\">{{ \"frontend.header.profile.login\"|trans }}</a></li>
<li class=\"inscription header_menu_dropdown\">
{{ \"frontend.header.profile.create\"|trans }}
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"8\" height=\"8\" fill=\"#383b3e\" class=\"bi bi-chevron-down\" viewBox=\"0 0 16 16\">
<path fill-rule=\"evenodd\" d=\"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z\"></path>
</svg>
<ul class=\"header_menu_dropdown_ul\">
<li class=\"header_menu_link_pro\"><a href=\"{{ getADUrl() }}\" title=\"{{ \"frontend.header.link.pro\"|trans }}\">{{ \"frontend.header.link.pro\"|trans }}</a></li>
<li class=\"header_menu_link_private\"><a href=\"{{ path('registration_step', {step: 2}) }}\" title=\"{{ \"frontend.header.link.private\"|trans }}\">{{ \"frontend.header.link.private\"|trans }}</a></li>
<li class=\"header_menu_link_society\"><a href=\"{{ path('registration_step', {step: 2}) }}\" title=\"{{ \"frontend.header.link.society\"|trans }}\">{{ \"frontend.header.link.society\"|trans }}</a></li>
</ul>
</li>
{% endif %}
{% if app.user is null or app.user is pro %}
<li class=\"btn-pro\"><a href=\"{{ path('homepage_pro') }}\" title=\"\" rel=\"nofollow\">{{ \"frontend.header.button.pro\"|trans }}</a></li>
{% endif %}
{% if not (is_current_website('showvroom')) %}
<li class=\"langue cursor\">
<span class=\"d-txt-langue\">
<i class=\"icon-flag-{{ current_country }}\"></i>
<span class=\"fleche\">
<span class=\"ligne1\"></span>
<span class=\"ligne2\"></span>
</span>
</span>
{{ country_switcher }}
</li>
{% endif %}
</ul>
</div>
<div class=\"menuhaut-mobile right grid-hide tab-l-hide tab-p-hide m-visible\">
<a href=\"#\" class=\"m-bt-menu\">
<span class=\"lignes\">
<span class=\"ligne1\"></span>
<span class=\"ligne2\"></span>
<span class=\"ligne3\"></span>
</span>
<span>{{ 'frontend.navigation.menu'|trans }}</span>
</a>
</div>
</div>
</header>
{% include 'frontend/main_menu.html.twig' with {
'type': 'private',
country_switcher: country_switcher
} %}
", "frontend/header.html.twig", "/srv/templates/frontend/header.html.twig");
}
}