var/cache/dev/fr/vpauto/twig/44/44112de8c9ee5c29de275e324c79d45a.php line 177

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. /* frontend/main_menu.html.twig */
  14. class __TwigTemplate_ffc872e1d7beee903382888f2946eb41 extends \Twig\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""frontend/main_menu.html.twig"));
  31.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  32.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/main_menu.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/main_menu.html.twig"));
  35.         // line 1
  36.         echo "<!-- Menu deroulant -->
  37. <div class=\"menu-deroulant grid-container tab-l-hide tab-p-hide m-hide\">
  38.     ";
  39.         // line 3
  40.         if (((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'3$this->source); })()) == "private")) {
  41.             // line 4
  42.             echo "        <div class=\"grid-50\">
  43.             ";
  44.             // line 5
  45.             $this->loadTemplate("frontend/cms_menu.html.twig""frontend/main_menu.html.twig"5)->display(twig_array_merge($context, ["root" => "b2c"]));
  46.             // line 6
  47.             echo "        </div>
  48.         <div class=\"grid-30 tab-p-50\">
  49.             <ul class=\"clearfix\">
  50.                 <li><a href=\"";
  51.             // line 9
  52.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("live_portal_next_sales");
  53.             echo "\" title=\"\"><i class=\"icon-menu-live\"></i><span>";
  54.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.navigation.live"), "html"nulltrue);
  55.             echo "</span></a></li>
  56.                 ";
  57.             // line 10
  58.             if ($this->extensions['App\Twig\Extension\CountryExtension']->isCurrentCountry(twig_constant("App\\Twig\\Extension\\CountryExtension::COUNTRY_FRANCE"))) {
  59.                 // line 11
  60.                 echo "                    <li><a href=\"";
  61.                 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.'11$this->source); })()), "html"nulltrue);
  62.                 echo "\" target=\"_blank\" title=\"\"><i class=\"icon-menu-vendre\"></i><span>";
  63.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.navigation.saleAuto"), "html"nulltrue);
  64.                 echo "</span></a></li>
  65.                 ";
  66.             }
  67.             // line 13
  68.             echo "                <li><span class=\"obflink\" role=\"link\" data-o=\"";
  69.             echo twig_escape_filter($this->env$this->extensions['App\Twig\Extension\UserExtension']->base64Encode($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_vehicle_list")), "html"nulltrue);
  70.             echo "\" title=\"\"><i class=\"icon-menu-rechercher\"></i><span>";
  71.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.navigation.globalSearch"), "html"nulltrue);
  72.             echo "</span></span></li>
  73.                 <li><a href=\"";
  74.             // line 14
  75.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_client_opinion");
  76.             echo "\" title=\"\"><i class=\"icon-menu-avis\"></i><span>";
  77.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.navigation.reviews"), "html"nulltrue);
  78.             echo "</span></a></li>
  79.             </ul>
  80.         </div>
  81.         <div class=\"grid-20 tab-p-50\">
  82.             <ul class=\"clearfix\">
  83.                 <li><a href=\"";
  84.             // line 19
  85.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_contact");
  86.             echo "\" class=\"lien08\" title=\"\"><i class=\"icon-service-clt\"></i> ";
  87.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.customer_service"), "html"nulltrue);
  88.             echo "</a></li>
  89.                 <li><a href=\"";
  90.             // line 20
  91.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_cgv_country", ["country" => "fr"]);
  92.             echo "\" class=\"header_link\" title=\"\">";
  93.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.navigation.ConditionsSale"), "html"nulltrue);
  94.             echo "</a></li>
  95.             </ul>
  96.         </div>
  97.     ";
  98.         } elseif ((        // line 23
  99. (isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'23$this->source); })()) == "pro")) {
  100.             // line 24
  101.             echo "        <div class=\"pro\">
  102.             ";
  103.             // line 25
  104.             if ( !$this->extensions['App\Twig\Extension\WebsiteExtension']->isCurrentWebsite("ecat")) {
  105.                 // line 26
  106.                 echo "                ";
  107.                 $this->loadTemplate("frontend/cms_menu.html.twig""frontend/main_menu.html.twig"26)->display(twig_array_merge($context, ["root" => "b2b"]));
  108.                 // line 27
  109.                 echo "            ";
  110.             } else {
  111.                 // line 28
  112.                 echo "                ";
  113.                 $this->loadTemplate("frontend/cms_menu.html.twig""frontend/main_menu.html.twig"28)->display(twig_array_merge($context, ["root" => "b2becat"]));
  114.                 // line 29
  115.                 echo "            ";
  116.             }
  117.             // line 30
  118.             echo "        </div>
  119.     ";
  120.         }
  121.         // line 32
  122.         echo "</div>
  123. <!-- END Menu deroulant -->
  124. <!-- Menu deroulant mobile -->
  125. <div class=\"tab-menu-deroulant ";
  126.         // line 36
  127.         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.'36$this->source); })()), "user", [], "any"falsefalsefalse36))) {
  128.             echo "user-logout";
  129.         }
  130.         echo "\">
  131.     <div class=\"grid-container\">
  132.         <div class=\"grid-70\">";
  133.         // line 38
  134.         if (((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'38$this->source); })()) == "private")) {
  135.             echo "<a href=\"";
  136.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_vehicle_list");
  137.             echo "\" title=\"\" class=\"btn-rechercher\"><i class=\"icon-menu-rechercher\"></i><span>";
  138.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.navigation.globalSearch"), "html"nulltrue);
  139.             echo "</span></a>";
  140.         } else {
  141.             echo "&nbsp;";
  142.         }
  143.         echo "</div>
  144.         <div class=\"grid-30 txtright\">
  145.             <span class=\"bt-close tab-close-menu-deroulant tab-l-visible tab-p-visible m-hide\">
  146.                 <span class=\"lignes\">
  147.                     <span class=\"ligne1\"></span>
  148.                     <span class=\"ligne2\"></span>
  149.                     <span class=\"ligne3\"></span>
  150.                 </span>
  151.             </span>
  152.             <span class=\"bt-close m-close-menu-deroulant tab-l-hide tab-p-hide m-visible\">
  153.                 <span class=\"lignes\">
  154.                     <span class=\"ligne1\"></span>
  155.                     <span class=\"ligne2\"></span>
  156.                     <span class=\"ligne3\"></span>
  157.                 </span>
  158.             </span>
  159.         </div>
  160.     </div>
  161.     ";
  162.         // line 56
  163.         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.'56$this->source); })()), "user", [], "any"falsefalsefalse56) ||  !$this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED"))) {
  164.             // line 57
  165.             echo "        ";
  166.             $this->loadTemplate("login.html.twig""frontend/main_menu.html.twig"57)->display($context);
  167.             // line 58
  168.             echo "    ";
  169.         }
  170.         // line 59
  171.         echo "
  172.     ";
  173.         // line 60
  174.         if (((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'60$this->source); })()) == "private")) {
  175.             // line 61
  176.             echo "        <div class=\"menuhaut tab-menuhaut clearfix prelative border01\">
  177.             <ul>
  178.                 ";
  179.             // line 63
  180.             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.'63$this->source); })()), "user", [], "any"falsefalsefalse63)) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED"))) {
  181.                 // line 64
  182.                 echo "                    <li class=\"grid-100\"><a href=\"";
  183.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_profile_edit");
  184.                 echo "\" title=\"\">";
  185.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.profile.edit"), "html"nulltrue);
  186.                 echo "</a></li>
  187.                     <li class=\"grid-100\"><a href=\"";
  188.                 // line 65
  189.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_security_logout");
  190.                 echo "\" title=\"\">";
  191.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.profile.logout"), "html"nulltrue);
  192.                 echo "</a></li>
  193.                 ";
  194.             } else {
  195.                 // line 67
  196.                 echo "                    <li class=\"grid-100 u-login u-modal\"><a href=\"#\" title=\"\">";
  197.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.profile.login"), "html"nulltrue);
  198.                 echo "</a></li>
  199.                     <li class=\"grid-100\"><a href=\"";
  200.                 // line 68
  201.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registration_step");
  202.                 echo "\">";
  203.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.profile.create"), "html"nulltrue);
  204.                 echo "</a></li>
  205.                 ";
  206.             }
  207.             // line 70
  208.             echo "                <li class=\"grid-40 btn-pro\"><a href=\"";
  209.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage_pro");
  210.             echo "\" title=\"\">";
  211.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.button.pro"), "html"nulltrue);
  212.             echo "</a></li>
  213.                 <li class=\"grid-60\">
  214.                     <p><i class=\"icon-menu-tel\"></i> ";
  215.             // line 72
  216.             $this->loadTemplate("Frontend/user/_tel_customer_service.html.twig""frontend/main_menu.html.twig"72)->display($context);
  217.             echo "</p>
  218.                 </li>
  219.                 ";
  220.             // line 74
  221.             if ( !$this->extensions['App\Twig\Extension\WebsiteExtension']->isCurrentWebsite("showvroom")) {
  222.                 // line 75
  223.                 echo "                    <li class=\"mobile-langue\">
  224.                         <span class=\"tab-langue cursor txt-langue\">
  225.                             <i class=\"icon-flag-";
  226.                 // line 77
  227.                 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.'77$this->source); })()), "html"nulltrue);
  228.                 echo "\"></i>
  229.                             <span class=\"fleche\">
  230.                                 <span class=\"ligne1\"></span>
  231.                                 <span class=\"ligne2\"></span>
  232.                             </span>
  233.                         </span>
  234.                         ";
  235.                 // line 83
  236.                 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.'83$this->source); })()), "html"nulltrue);
  237.                 echo "
  238.                     </li>
  239.                 ";
  240.             }
  241.             // line 86
  242.             echo "            </ul>
  243.         </div>
  244.     ";
  245.         } elseif ((        // line 88
  246. (isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'88$this->source); })()) == "pro")) {
  247.             // line 89
  248.             echo "        <div class=\"pro menuhaut tab-menuhaut clearfix prelative border01\">
  249.             <ul>
  250.                 ";
  251.             // line 91
  252.             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.'91$this->source); })()), "user", [], "any"falsefalsefalse91)) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED"))) {
  253.                 // line 92
  254.                 echo "                    ";
  255.                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PREVIOUS_ADMIN")) {
  256.                     // line 93
  257.                     echo "                        <li class=\"grid-100 inscription\"><a href=\"";
  258.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("backend_user_view", ["id" => 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.'93$this->source); })()), "user", [], "any"falsefalsefalse93), "id", [], "any"falsefalsefalse93), "_switch_user" => "_exit"]), "html"nulltrue);
  259.                     echo "\" title=\"\">";
  260.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.switch.user.exit"), "html"nulltrue);
  261.                     echo "</a></li>
  262.                     ";
  263.                 }
  264.                 // line 95
  265.                 echo "                ";
  266.             } else {
  267.                 // line 96
  268.                 echo "                    <li class=\"grid-100 connexion\"><a href=\"";
  269.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\Extension\ADExtension']->generateADUrl(), "html"nulltrue);
  270.                 echo "\" title=\"\" class=\"connexion\">";
  271.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.pro.link.sign_in"), "html"nulltrue);
  272.                 echo "</a></li>
  273.                     <li class=\"grid-100 inscription\"><a href=\"";
  274.                 // line 97
  275.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\Extension\ADExtension']->generateADUrl(), "html"nulltrue);
  276.                 echo "\" title=\"\" class=\"inscription\">";
  277.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.pro.link.register"), "html"nulltrue);
  278.                 echo "</a></li>
  279.                 ";
  280.             }
  281.             // line 99
  282.             echo "                ";
  283.             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.'99$this->source); })()), "user", [], "any"falsefalsefalse99))) {
  284.                 // line 100
  285.                 echo "                    <li class=\"grid-40 btn-particulier\">
  286.                     ";
  287.                 // line 101
  288.                 if ($this->extensions['App\Twig\Extension\CountryExtension']->isCurrentCountry(twig_constant("App\\Twig\\Extension\\CountryExtension::COUNTRY_FRANCE"))) {
  289.                     // line 102
  290.                     echo "                        <a href=\"";
  291.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage", ["_locale" => (isset($context["default_locale"]) || array_key_exists("default_locale"$context) ? $context["default_locale"] : (function () { throw new RuntimeError('Variable "default_locale" does not exist.'102$this->source); })())]), "html"nulltrue);
  292.                     echo "\" title=\"\">";
  293.                     echo twig_escape_filter($this->envtwig_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.'102$this->source); })()), "request", [], "any"falsefalsefalse102), "getHost", [], "any"falsefalsefalse102), "html"nulltrue);
  294.                     echo "</a>
  295.                     ";
  296.                 } else {
  297.                     // line 103
  298.                     echo "&nbsp;";
  299.                 }
  300.                 // line 104
  301.                 echo "                    </li>
  302.                     <li class=\"grid-60 tel\"><i class=\"icon-menu-tel\"></i> ";
  303.                 // line 105
  304.                 $this->loadTemplate("/Frontend/pro/_tel_contact.html.twig""frontend/main_menu.html.twig"105)->display($context);
  305.                 echo "</li>
  306.                 ";
  307.             }
  308.             // line 107
  309.             echo "                ";
  310.             if ( !$this->extensions['App\Twig\Extension\WebsiteExtension']->isCurrentWebsite("showvroom")) {
  311.                 // line 108
  312.                 echo "                    <li class=\"mobile-langue\">
  313.                         <span class=\"tab-langue cursor txt-langue\">
  314.                             <i class=\"icon-flag-";
  315.                 // line 110
  316.                 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.'110$this->source); })()), "html"nulltrue);
  317.                 echo "\"></i>
  318.                             <span class=\"fleche\">
  319.                                 <span class=\"ligne1\"></span>
  320.                                 <span class=\"ligne2\"></span>
  321.                             </span>
  322.                         </span>
  323.                         ";
  324.                 // line 116
  325.                 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.'116$this->source); })()), "html"nulltrue);
  326.                 echo "
  327.                     </li>
  328.                 ";
  329.             }
  330.             // line 119
  331.             echo "            </ul>
  332.         </div>
  333.     ";
  334.         }
  335.         // line 122
  336.         echo "
  337.     ";
  338.         // line 123
  339.         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.'123$this->source); })()), "user", [], "any"falsefalsefalse123)) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED"))) {
  340.             // line 124
  341.             echo "        <div class=\"sidebar-menu border01 grid-hide tab-l-hide tab-p-visible m-visible\">
  342.             ";
  343.             // line 125
  344.             $this->loadTemplate("/Frontend/sidebar.html.twig""frontend/main_menu.html.twig"125)->display($context);
  345.             // line 126
  346.             echo "        </div>
  347.     ";
  348.         }
  349.         // line 128
  350.         echo "    ";
  351.         if (((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'128$this->source); })()) == "private")) {
  352.             // line 129
  353.             echo "        <div class=\"menu01 border01 marginT10\">
  354.             <ul>
  355.                 <li><a href=\"";
  356.             // line 131
  357.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("live_portal_next_sales");
  358.             echo "\" title=\"\"><i class=\"icon-menu-live\"></i><span>";
  359.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.navigation.live"), "html"nulltrue);
  360.             echo "</span></a></li>
  361.                 <li><a href=\"";
  362.             // line 132
  363.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_vehicle_alert_search");
  364.             echo "\" title=\"\"><i class=\"icon-alerte04\"></i><span>";
  365.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.search.alert.create"), "html"nulltrue);
  366.             echo "</span></a></li>
  367.                 <li><a href=\"";
  368.             // line 133
  369.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_client_opinion");
  370.             echo "\" title=\"\"><i class=\"icon-menu-avis\"></i><span>";
  371.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.navigation.reviews"), "html"nulltrue);
  372.             echo "</span></a></li>
  373.                 ";
  374.             // line 134
  375.             if ($this->extensions['App\Twig\Extension\CountryExtension']->isCurrentCountry(twig_constant("App\\Twig\\Extension\\CountryExtension::COUNTRY_FRANCE"))) {
  376.                 // line 135
  377.                 echo "                    <li><a href=\"";
  378.                 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.'135$this->source); })()), "html"nulltrue);
  379.                 echo "\" target=\"_blank\" title=\"\"><i class=\"icon-menu-vendre\"></i><span>";
  380.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.navigation.saleAuto"), "html"nulltrue);
  381.                 echo "</span></a></li>
  382.                 ";
  383.             }
  384.             // line 137
  385.             echo "            </ul>
  386.         </div>
  387.     ";
  388.         } elseif ((        // line 139
  389. (isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'139$this->source); })()) == "pro")) {
  390.             // line 140
  391.             echo "        <div class=\"menu02 border01 paddingB5\">
  392.             <ul>
  393.                 ";
  394.             // line 142
  395.             if ( !$this->extensions['App\Twig\Extension\CountryExtension']->isCurrentCountry(twig_constant("App\\Twig\\Extension\\CountryExtension::COUNTRY_PORTUGAL"))) {
  396.                 // line 143
  397.                 echo "                    <li><a href=\"";
  398.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_sale_auto_pro");
  399.                 echo "\">";
  400.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.header.link.sell"), "html"nulltrue);
  401.                 echo "</a></li>
  402.                 ";
  403.             }
  404.             // line 145
  405.             echo "                ";
  406.             $this->loadTemplate("/Frontend/pro/_help_manual.html.twig""frontend/main_menu.html.twig"145)->display($context);
  407.             // line 146
  408.             echo "            </ul>
  409.         </div>
  410.     ";
  411.         }
  412.         // line 149
  413.         echo "    <div class=\"menu02\">
  414.         ";
  415.         // line 150
  416.         if (((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'150$this->source); })()) == "private")) {
  417.             // line 151
  418.             echo "            ";
  419.             $this->loadTemplate("frontend/cms_menu.html.twig""frontend/main_menu.html.twig"151)->display(twig_array_merge($context, ["root" => "b2c"]));
  420.             // line 152
  421.             echo "        ";
  422.         } elseif (((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'152$this->source); })()) == "pro")) {
  423.             // line 153
  424.             echo "            ";
  425.             $this->loadTemplate("frontend/cms_menu.html.twig""frontend/main_menu.html.twig"153)->display(twig_array_merge($context, ["root" => "b2b"]));
  426.             // line 154
  427.             echo "        ";
  428.         }
  429.         // line 155
  430.         echo "    </div>
  431. </div>
  432. <!-- END Menu deroulant mobile -->
  433. ";
  434.         
  435.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  436.         
  437.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  438.         
  439.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  440.     }
  441.     public function getTemplateName()
  442.     {
  443.         return "frontend/main_menu.html.twig";
  444.     }
  445.     public function isTraitable()
  446.     {
  447.         return false;
  448.     }
  449.     public function getDebugInfo()
  450.     {
  451.         return array (  441 => 155,  438 => 154,  435 => 153,  432 => 152,  429 => 151,  427 => 150,  424 => 149,  419 => 146,  416 => 145,  408 => 143,  406 => 142,  402 => 140,  400 => 139,  396 => 137,  388 => 135,  386 => 134,  380 => 133,  374 => 132,  368 => 131,  364 => 129,  361 => 128,  357 => 126,  355 => 125,  352 => 124,  350 => 123,  347 => 122,  342 => 119,  336 => 116,  327 => 110,  323 => 108,  320 => 107,  315 => 105,  312 => 104,  309 => 103,  301 => 102,  299 => 101,  296 => 100,  293 => 99,  286 => 97,  279 => 96,  276 => 95,  268 => 93,  265 => 92,  263 => 91,  259 => 89,  257 => 88,  253 => 86,  247 => 83,  238 => 77,  234 => 75,  232 => 74,  227 => 72,  219 => 70,  212 => 68,  207 => 67,  200 => 65,  193 => 64,  191 => 63,  187 => 61,  185 => 60,  182 => 59,  179 => 58,  176 => 57,  174 => 56,  145 => 38,  138 => 36,  132 => 32,  128 => 30,  125 => 29,  122 => 28,  119 => 27,  116 => 26,  114 => 25,  111 => 24,  109 => 23,  101 => 20,  95 => 19,  85 => 14,  78 => 13,  70 => 11,  68 => 10,  62 => 9,  57 => 6,  55 => 5,  52 => 4,  50 => 3,  46 => 1,);
  452.     }
  453.     public function getSourceContext()
  454.     {
  455.         return new Source("<!-- Menu deroulant -->
  456. <div class=\"menu-deroulant grid-container tab-l-hide tab-p-hide m-hide\">
  457.     {% if type == 'private' %}
  458.         <div class=\"grid-50\">
  459.             {% include 'frontend/cms_menu.html.twig' with {'root': 'b2c'} %}
  460.         </div>
  461.         <div class=\"grid-30 tab-p-50\">
  462.             <ul class=\"clearfix\">
  463.                 <li><a href=\"{{ path('live_portal_next_sales') }}\" title=\"\"><i class=\"icon-menu-live\"></i><span>{{ 'frontend.header.navigation.live'|trans }}</span></a></li>
  464.                 {% if is_current_country(constant('App\\\\Twig\\\\Extension\\\\CountryExtension::COUNTRY_FRANCE')) %}
  465.                     <li><a href=\"{{ sell_my_auto_url }}\" target=\"_blank\" title=\"\"><i class=\"icon-menu-vendre\"></i><span>{{ 'frontend.header.navigation.saleAuto'|trans }}</span></a></li>
  466.                 {% endif %}
  467.                 <li><span class=\"obflink\" role=\"link\" data-o=\"{{ base64_encode(path('frontend_vehicle_list')) }}\" title=\"\"><i class=\"icon-menu-rechercher\"></i><span>{{ 'frontend.header.navigation.globalSearch'|trans }}</span></span></li>
  468.                 <li><a href=\"{{ path('frontend_client_opinion') }}\" title=\"\"><i class=\"icon-menu-avis\"></i><span>{{ 'frontend.header.navigation.reviews'|trans }}</span></a></li>
  469.             </ul>
  470.         </div>
  471.         <div class=\"grid-20 tab-p-50\">
  472.             <ul class=\"clearfix\">
  473.                 <li><a href=\"{{ path('frontend_contact') }}\" class=\"lien08\" title=\"\"><i class=\"icon-service-clt\"></i> {{ 'frontend.header.customer_service'|trans }}</a></li>
  474.                 <li><a href=\"{{ path('frontend_cgv_country', {'country': 'fr'}) }}\" class=\"header_link\" title=\"\">{{ 'frontend.header.navigation.ConditionsSale'|trans }}</a></li>
  475.             </ul>
  476.         </div>
  477.     {% elseif type == 'pro' %}
  478.         <div class=\"pro\">
  479.             {% if not(is_current_website('ecat'))%}
  480.                 {% include 'frontend/cms_menu.html.twig' with {'root': 'b2b'} %}
  481.             {% else %}
  482.                 {% include 'frontend/cms_menu.html.twig' with {'root': 'b2becat'} %}
  483.             {% endif %}
  484.         </div>
  485.     {% endif %}
  486. </div>
  487. <!-- END Menu deroulant -->
  488. <!-- Menu deroulant mobile -->
  489. <div class=\"tab-menu-deroulant {% if app.user is null %}user-logout{% endif %}\">
  490.     <div class=\"grid-container\">
  491.         <div class=\"grid-70\">{% if type == 'private' %}<a href=\"{{ path('frontend_vehicle_list') }}\" title=\"\" class=\"btn-rechercher\"><i class=\"icon-menu-rechercher\"></i><span>{{ 'frontend.header.navigation.globalSearch'|trans }}</span></a>{% else %}&nbsp;{% endif %}</div>
  492.         <div class=\"grid-30 txtright\">
  493.             <span class=\"bt-close tab-close-menu-deroulant tab-l-visible tab-p-visible m-hide\">
  494.                 <span class=\"lignes\">
  495.                     <span class=\"ligne1\"></span>
  496.                     <span class=\"ligne2\"></span>
  497.                     <span class=\"ligne3\"></span>
  498.                 </span>
  499.             </span>
  500.             <span class=\"bt-close m-close-menu-deroulant tab-l-hide tab-p-hide m-visible\">
  501.                 <span class=\"lignes\">
  502.                     <span class=\"ligne1\"></span>
  503.                     <span class=\"ligne2\"></span>
  504.                     <span class=\"ligne3\"></span>
  505.                 </span>
  506.             </span>
  507.         </div>
  508.     </div>
  509.     {% if not app.user or not is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  510.         {% include 'login.html.twig' %}
  511.     {% endif %}
  512.     {% if type == 'private' %}
  513.         <div class=\"menuhaut tab-menuhaut clearfix prelative border01\">
  514.             <ul>
  515.                 {% if app.user is not null and is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  516.                     <li class=\"grid-100\"><a href=\"{{ path('fos_user_profile_edit') }}\" title=\"\">{{ 'frontend.profile.edit'|trans }}</a></li>
  517.                     <li class=\"grid-100\"><a href=\"{{ path('fos_user_security_logout') }}\" title=\"\">{{ 'frontend.profile.logout'|trans }}</a></li>
  518.                 {% else %}
  519.                     <li class=\"grid-100 u-login u-modal\"><a href=\"#\" title=\"\">{{ 'frontend.profile.login'|trans }}</a></li>
  520.                     <li class=\"grid-100\"><a href=\"{{ path('registration_step') }}\">{{ 'frontend.profile.create'|trans }}</a></li>
  521.                 {% endif %}
  522.                 <li class=\"grid-40 btn-pro\"><a href=\"{{ path('homepage_pro') }}\" title=\"\">{{ \"frontend.header.button.pro\"|trans }}</a></li>
  523.                 <li class=\"grid-60\">
  524.                     <p><i class=\"icon-menu-tel\"></i> {% include 'Frontend/user/_tel_customer_service.html.twig' %}</p>
  525.                 </li>
  526.                 {% if not (is_current_website('showvroom')) %}
  527.                     <li class=\"mobile-langue\">
  528.                         <span class=\"tab-langue cursor txt-langue\">
  529.                             <i class=\"icon-flag-{{ current_country }}\"></i>
  530.                             <span class=\"fleche\">
  531.                                 <span class=\"ligne1\"></span>
  532.                                 <span class=\"ligne2\"></span>
  533.                             </span>
  534.                         </span>
  535.                         {{ country_switcher }}
  536.                     </li>
  537.                 {% endif %}
  538.             </ul>
  539.         </div>
  540.     {% elseif type == 'pro' %}
  541.         <div class=\"pro menuhaut tab-menuhaut clearfix prelative border01\">
  542.             <ul>
  543.                 {% if app.user is not null and is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  544.                     {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
  545.                         <li class=\"grid-100 inscription\"><a href=\"{{ path('backend_user_view', {'id': app.user.id, '_switch_user': '_exit'})}}\" title=\"\">{{ 'frontend.switch.user.exit'|trans }}</a></li>
  546.                     {% endif %}
  547.                 {% else %}
  548.                     <li class=\"grid-100 connexion\"><a href=\"{{ getADUrl() }}\" title=\"\" class=\"connexion\">{{ \"frontend.header.pro.link.sign_in\"|trans }}</a></li>
  549.                     <li class=\"grid-100 inscription\"><a href=\"{{ getADUrl() }}\" title=\"\" class=\"inscription\">{{ \"frontend.header.pro.link.register\"|trans }}</a></li>
  550.                 {% endif %}
  551.                 {% if app.user is null %}
  552.                     <li class=\"grid-40 btn-particulier\">
  553.                     {% if is_current_country(constant('App\\\\Twig\\\\Extension\\\\CountryExtension::COUNTRY_FRANCE')) %}
  554.                         <a href=\"{{ path('homepage', {'_locale': default_locale}) }}\" title=\"\">{{ app.request.getHost }}</a>
  555.                     {% else %}&nbsp;{% endif %}
  556.                     </li>
  557.                     <li class=\"grid-60 tel\"><i class=\"icon-menu-tel\"></i> {% include '/Frontend/pro/_tel_contact.html.twig' %}</li>
  558.                 {% endif %}
  559.                 {% if not (is_current_website('showvroom')) %}
  560.                     <li class=\"mobile-langue\">
  561.                         <span class=\"tab-langue cursor txt-langue\">
  562.                             <i class=\"icon-flag-{{ current_country }}\"></i>
  563.                             <span class=\"fleche\">
  564.                                 <span class=\"ligne1\"></span>
  565.                                 <span class=\"ligne2\"></span>
  566.                             </span>
  567.                         </span>
  568.                         {{ country_switcher }}
  569.                     </li>
  570.                 {% endif %}
  571.             </ul>
  572.         </div>
  573.     {% endif %}
  574.     {% if app.user is not null and is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  575.         <div class=\"sidebar-menu border01 grid-hide tab-l-hide tab-p-visible m-visible\">
  576.             {% include '/Frontend/sidebar.html.twig' %}
  577.         </div>
  578.     {% endif %}
  579.     {% if type == 'private' %}
  580.         <div class=\"menu01 border01 marginT10\">
  581.             <ul>
  582.                 <li><a href=\"{{ path('live_portal_next_sales') }}\" title=\"\"><i class=\"icon-menu-live\"></i><span>{{ 'frontend.navigation.live'|trans }}</span></a></li>
  583.                 <li><a href=\"{{ path('frontend_vehicle_alert_search') }}\" title=\"\"><i class=\"icon-alerte04\"></i><span>{{ 'frontend.search.alert.create'|trans }}</span></a></li>
  584.                 <li><a href=\"{{ path('frontend_client_opinion') }}\" title=\"\"><i class=\"icon-menu-avis\"></i><span>{{ 'frontend.navigation.reviews'|trans }}</span></a></li>
  585.                 {% if is_current_country(constant('App\\\\Twig\\\\Extension\\\\CountryExtension::COUNTRY_FRANCE')) %}
  586.                     <li><a href=\"{{ sell_my_auto_url }}\" target=\"_blank\" title=\"\"><i class=\"icon-menu-vendre\"></i><span>{{ 'frontend.navigation.saleAuto'|trans }}</span></a></li>
  587.                 {% endif %}
  588.             </ul>
  589.         </div>
  590.     {% elseif type == 'pro' %}
  591.         <div class=\"menu02 border01 paddingB5\">
  592.             <ul>
  593.                 {% if not is_current_country(constant('App\\\\Twig\\\\Extension\\\\CountryExtension::COUNTRY_PORTUGAL')) %}
  594.                     <li><a href=\"{{ path('frontend_sale_auto_pro') }}\">{{ 'frontend.header.link.sell'|trans }}</a></li>
  595.                 {% endif %}
  596.                 {% include '/Frontend/pro/_help_manual.html.twig' %}
  597.             </ul>
  598.         </div>
  599.     {% endif %}
  600.     <div class=\"menu02\">
  601.         {% if type == 'private' %}
  602.             {% include 'frontend/cms_menu.html.twig' with {'root': 'b2c'} %}
  603.         {% elseif type == 'pro' %}
  604.             {% include 'frontend/cms_menu.html.twig' with {'root': 'b2b'} %}
  605.         {% endif %}
  606.     </div>
  607. </div>
  608. <!-- END Menu deroulant mobile -->
  609. ""frontend/main_menu.html.twig""/srv/templates/frontend/main_menu.html.twig");
  610.     }
  611. }