var/cache/dev/fr/vpauto/twig/fb/fb1a9e5d3731ebcc8bd7494db8abe809.php line 79

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/home/home_top_pro.html.twig */
  14. class __TwigTemplate_4341a23305366a03b9fcc06906a0c9a5 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/home/home_top_pro.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/home/home_top_pro.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/home/home_top_pro.html.twig"));
  35.         // line 1
  36.         echo "<div class=\"home-top-pro\">
  37.     <!-- bandeau Live -->
  38.     ";
  39.         // line 3
  40.         if ((array_key_exists("nextLive"$context) &&  !(null === (isset($context["nextLive"]) || array_key_exists("nextLive"$context) ? $context["nextLive"] : (function () { throw new RuntimeError('Variable "nextLive" does not exist.'3$this->source); })())))) {
  41.             // line 4
  42.             echo "        ";
  43.             $this->loadTemplate("/Frontend/home/_live_banner_pro.html.twig""Frontend/home/home_top_pro.html.twig"4)->display(twig_array_merge($context, ["nextLiveFirst" => (isset($context["nextLive"]) || array_key_exists("nextLive"$context) ? $context["nextLive"] : (function () { throw new RuntimeError('Variable "nextLive" does not exist.'4$this->source); })()), "room" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["nextLive"]) || array_key_exists("nextLive"$context) ? $context["nextLive"] : (function () { throw new RuntimeError('Variable "nextLive" does not exist.'4$this->source); })()), "room", [], "any"falsefalsefalse4), "code", [], "any"falsefalsefalse4), "startDate" => $this->extensions['App\Twig\Extension\IntlExtension']->dateFilter($this->envtwig_get_attribute($this->env$this->source, (isset($context["nextLive"]) || array_key_exists("nextLive"$context) ? $context["nextLive"] : (function () { throw new RuntimeError('Variable "nextLive" does not exist.'4$this->source); })()), "startDate", [], "any"falsefalsefalse4), "d/m/y"), "startTime" => $this->extensions['App\Twig\Extension\IntlExtension']->dateFilter($this->envtwig_get_attribute($this->env$this->source, (isset($context["highlightEvent"]) || array_key_exists("highlightEvent"$context) ? $context["highlightEvent"] : (function () { throw new RuntimeError('Variable "highlightEvent" does not exist.'4$this->source); })()), "startTime", [], "any"falsefalsefalse4), "H:i"), "currentSaleId" => null]));
  44.             // line 5
  45.             echo "    ";
  46.         }
  47.         // line 6
  48.         echo "    <!-- FIN bandeau Live -->
  49.     <!-- Accroche -->
  50.     <div class=\"block01 txtcenter\">
  51.         <div class=\"home-accroche-pro\">
  52.             ";
  53.         // line 11
  54.         if ($this->extensions['App\Twig\Extension\WebsiteExtension']->isCurrentWebsite("ecat")) {
  55.             // line 12
  56.             echo "                <h1 class=\"bold ecat-title\">";
  57.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.home_top.pro.title.ecat"), "html"nulltrue);
  58.             echo "</h1>
  59.             ";
  60.         } else {
  61.             // line 14
  62.             echo "                <h1 class=\"bold\">";
  63.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.home_top.pro.title"), "html"nulltrue);
  64.             echo "</h1>
  65.                 <div class=\"m-hide\">
  66.                     ";
  67.             // line 16
  68.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Frontend\\VehicleController:salesCounterAction"));
  69.             echo "
  70.                 </div>
  71.             ";
  72.         }
  73.         // line 19
  74.         echo "        </div>
  75.         <div class=\"home-search pro\">
  76.             <form action=\"";
  77.         // line 21
  78.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_search_store");
  79.         echo "\" method=\"POST\" class=\"recherche-home\">
  80.                 <ul>
  81.                     <li id=\"placeholder-search\" data-lang=\"";
  82.         // line 23
  83.         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.'23$this->source); })()), "request", [], "any"falsefalsefalse23), "locale", [], "any"falsefalsefalse23), "html"nulltrue);
  84.         echo "\" class=\"";
  85.         if ($this->extensions['App\Twig\Extension\CountryExtension']->isCurrentCountry(twig_constant("App\\Twig\\Extension\\CountryExtension::COUNTRY_PORTUGAL"))) {
  86.             echo "placeholder-pt";
  87.         }
  88.         echo "\">";
  89.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'23$this->source); })()), "freeSearch", [], "any"falsefalsefalse23), 'widget');
  90.         echo "</li>
  91.                     <li class=\"bg-select\">
  92.                         <span></span>";
  93.         // line 25
  94.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'25$this->source); })()), "sale", [], "any"falsefalsefalse25), 'widget', ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.vehicleFreeSearch.sale.empty.pro")]);
  95.         echo "
  96.                     </li>
  97.                     <li>";
  98.         // line 27
  99.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'27$this->source); })()), "search", [], "any"falsefalsefalse27), 'widget');
  100.         echo "</li>
  101.                 </ul>
  102.             </form>
  103.             <p class=\"tab-l-hide tab-p-hide m-hide\"><a href=\"";
  104.         // line 30
  105.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_vehicle_list");
  106.         echo "\"
  107.                                                        title=\"\">";
  108.         // line 31
  109.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.home_top.pro.link1"), "html"nulltrue);
  110.         echo "</a></p>
  111.         </div>
  112.         <div class=\"home-liens-block m-hide\">
  113.             <ul>
  114.                 <li><a href=\"";
  115.         // line 35
  116.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_contact_pro");
  117.         echo "\"
  118.                        title=\"\">";
  119.         // line 36
  120.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.home_top.pro.link.contact_pro"), "html"nulltrue);
  121.         echo "</a></li>
  122.                 <li><a href=\"";
  123.         // line 37
  124.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_engagement_pro");
  125.         echo "\"
  126.                        title=\"\">";
  127.         // line 38
  128.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.home_top.pro.link.engagement_pro"), "html"nulltrue);
  129.         echo "</a></li>
  130.                 <li>
  131.                     <a href=\"";
  132.         // line 40
  133.         if ($this->extensions['App\Twig\Extension\CountryExtension']->isCurrentCountry(twig_constant("App\\Twig\\Extension\\CountryExtension::COUNTRY_PORTUGAL"))) {
  134.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_transport_pro");
  135.         } elseif ($this->extensions['App\Twig\Extension\CountryExtension']->isCurrentCountry(twig_constant("App\\Twig\\Extension\\CountryExtension::COUNTRY_BELGIUM"))) {
  136.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_company_pro");
  137.         } else {
  138.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_guarantee_pro");
  139.         }
  140.         echo "\"
  141.                        title=\"\">";
  142.         // line 41
  143.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.home_top.pro.link.guarantee_pro"), "html"nulltrue);
  144.         echo "</a></li>
  145.                 <li><a href=\"";
  146.         // line 42
  147.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_vehicle_inspection_pro");
  148.         echo "\"
  149.                        title=\"\">";
  150.         // line 43
  151.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.home_top.pro.link.inspection_pro"), "html"nulltrue);
  152.         echo "</a></li>
  153.             </ul>
  154.         </div>
  155.     </div>
  156.     <!-- FIN Accroche -->
  157. </div>
  158. ";
  159.         
  160.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  161.         
  162.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  163.         
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  165.     }
  166.     public function getTemplateName()
  167.     {
  168.         return "Frontend/home/home_top_pro.html.twig";
  169.     }
  170.     public function isTraitable()
  171.     {
  172.         return false;
  173.     }
  174.     public function getDebugInfo()
  175.     {
  176.         return array (  162 => 43,  158 => 42,  154 => 41,  144 => 40,  139 => 38,  135 => 37,  131 => 36,  127 => 35,  120 => 31,  116 => 30,  110 => 27,  105 => 25,  94 => 23,  89 => 21,  85 => 19,  79 => 16,  73 => 14,  67 => 12,  65 => 11,  58 => 6,  55 => 5,  52 => 4,  50 => 3,  46 => 1,);
  177.     }
  178.     public function getSourceContext()
  179.     {
  180.         return new Source("<div class=\"home-top-pro\">
  181.     <!-- bandeau Live -->
  182.     {% if nextLive is defined and nextLive is not null %}
  183.         {% include '/Frontend/home/_live_banner_pro.html.twig' with {'nextLiveFirst': nextLive, 'room': nextLive.room.code, 'startDate': nextLive.startDate|date('d/m/y'), 'startTime': highlightEvent.startTime|date('H:i'), 'currentSaleId': null } %}
  184.     {% endif %}
  185.     <!-- FIN bandeau Live -->
  186.     <!-- Accroche -->
  187.     <div class=\"block01 txtcenter\">
  188.         <div class=\"home-accroche-pro\">
  189.             {% if is_current_website('ecat') %}
  190.                 <h1 class=\"bold ecat-title\">{{ 'frontend.home_top.pro.title.ecat'|trans }}</h1>
  191.             {% else %}
  192.                 <h1 class=\"bold\">{{ 'frontend.home_top.pro.title'|trans }}</h1>
  193.                 <div class=\"m-hide\">
  194.                     {{ render(controller('App\\\\Controller\\\\Frontend\\\\VehicleController:salesCounterAction')) }}
  195.                 </div>
  196.             {% endif %}
  197.         </div>
  198.         <div class=\"home-search pro\">
  199.             <form action=\"{{ path('frontend_search_store') }}\" method=\"POST\" class=\"recherche-home\">
  200.                 <ul>
  201.                     <li id=\"placeholder-search\" data-lang=\"{{ app.request.locale }}\" class=\"{% if is_current_country(constant('App\\\\Twig\\\\Extension\\\\CountryExtension::COUNTRY_PORTUGAL')) %}placeholder-pt{% endif %}\">{{ form_widget(search_form.freeSearch) }}</li>
  202.                     <li class=\"bg-select\">
  203.                         <span></span>{{ form_widget(search_form.sale, {'placeholder': 'form.vehicleFreeSearch.sale.empty.pro'|trans }) }}
  204.                     </li>
  205.                     <li>{{ form_widget(search_form.search) }}</li>
  206.                 </ul>
  207.             </form>
  208.             <p class=\"tab-l-hide tab-p-hide m-hide\"><a href=\"{{ path('frontend_vehicle_list') }}\"
  209.                                                        title=\"\">{{ 'frontend.home_top.pro.link1'|trans }}</a></p>
  210.         </div>
  211.         <div class=\"home-liens-block m-hide\">
  212.             <ul>
  213.                 <li><a href=\"{{ path('frontend_contact_pro') }}\"
  214.                        title=\"\">{{ 'frontend.home_top.pro.link.contact_pro'|trans }}</a></li>
  215.                 <li><a href=\"{{ path('frontend_engagement_pro') }}\"
  216.                        title=\"\">{{ 'frontend.home_top.pro.link.engagement_pro'|trans }}</a></li>
  217.                 <li>
  218.                     <a href=\"{% if is_current_country(constant('App\\\\Twig\\\\Extension\\\\CountryExtension::COUNTRY_PORTUGAL')) %}{{ path('frontend_transport_pro') }}{% elseif is_current_country(constant('App\\\\Twig\\\\Extension\\\\CountryExtension::COUNTRY_BELGIUM')) %}{{ path('frontend_company_pro') }}{% else %}{{ path('frontend_guarantee_pro') }}{% endif %}\"
  219.                        title=\"\">{{ 'frontend.home_top.pro.link.guarantee_pro'|trans }}</a></li>
  220.                 <li><a href=\"{{ path('frontend_vehicle_inspection_pro') }}\"
  221.                        title=\"\">{{ 'frontend.home_top.pro.link.inspection_pro'|trans }}</a></li>
  222.             </ul>
  223.         </div>
  224.     </div>
  225.     <!-- FIN Accroche -->
  226. </div>
  227. ""Frontend/home/home_top_pro.html.twig""/srv/src/Resources/views/Frontend/home/home_top_pro.html.twig");
  228.     }
  229. }