<?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/home/home_top_pro.html.twig */
class __TwigTemplate_4341a23305366a03b9fcc06906a0c9a5 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/home/home_top_pro.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/home/home_top_pro.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/home/home_top_pro.html.twig"));
// line 1
echo "<div class=\"home-top-pro\">
<!-- bandeau Live -->
";
// line 3
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); })())))) {
// line 4
echo " ";
$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->source, twig_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", false, false, false, 4), "code", [], "any", false, false, false, 4), "startDate" => $this->extensions['App\Twig\Extension\IntlExtension']->dateFilter($this->env, twig_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", false, false, false, 4), "d/m/y"), "startTime" => $this->extensions['App\Twig\Extension\IntlExtension']->dateFilter($this->env, twig_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", false, false, false, 4), "H:i"), "currentSaleId" => null]));
// line 5
echo " ";
}
// line 6
echo " <!-- FIN bandeau Live -->
<!-- Accroche -->
<div class=\"block01 txtcenter\">
<div class=\"home-accroche-pro\">
";
// line 11
if ($this->extensions['App\Twig\Extension\WebsiteExtension']->isCurrentWebsite("ecat")) {
// line 12
echo " <h1 class=\"bold ecat-title\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.home_top.pro.title.ecat"), "html", null, true);
echo "</h1>
";
} else {
// line 14
echo " <h1 class=\"bold\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.home_top.pro.title"), "html", null, true);
echo "</h1>
<div class=\"m-hide\">
";
// line 16
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Frontend\\VehicleController:salesCounterAction"));
echo "
</div>
";
}
// line 19
echo " </div>
<div class=\"home-search pro\">
<form action=\"";
// line 21
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_search_store");
echo "\" method=\"POST\" class=\"recherche-home\">
<ul>
<li id=\"placeholder-search\" data-lang=\"";
// line 23
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.', 23, $this->source); })()), "request", [], "any", false, false, false, 23), "locale", [], "any", false, false, false, 23), "html", null, true);
echo "\" class=\"";
if ($this->extensions['App\Twig\Extension\CountryExtension']->isCurrentCountry(twig_constant("App\\Twig\\Extension\\CountryExtension::COUNTRY_PORTUGAL"))) {
echo "placeholder-pt";
}
echo "\">";
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", false, false, false, 23), 'widget');
echo "</li>
<li class=\"bg-select\">
<span></span>";
// line 25
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", false, false, false, 25), 'widget', ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.vehicleFreeSearch.sale.empty.pro")]);
echo "
</li>
<li>";
// line 27
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", false, false, false, 27), 'widget');
echo "</li>
</ul>
</form>
<p class=\"tab-l-hide tab-p-hide m-hide\"><a href=\"";
// line 30
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_vehicle_list");
echo "\"
title=\"\">";
// line 31
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.home_top.pro.link1"), "html", null, true);
echo "</a></p>
</div>
<div class=\"home-liens-block m-hide\">
<ul>
<li><a href=\"";
// line 35
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_contact_pro");
echo "\"
title=\"\">";
// line 36
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.home_top.pro.link.contact_pro"), "html", null, true);
echo "</a></li>
<li><a href=\"";
// line 37
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_engagement_pro");
echo "\"
title=\"\">";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.home_top.pro.link.engagement_pro"), "html", null, true);
echo "</a></li>
<li>
<a href=\"";
// line 40
if ($this->extensions['App\Twig\Extension\CountryExtension']->isCurrentCountry(twig_constant("App\\Twig\\Extension\\CountryExtension::COUNTRY_PORTUGAL"))) {
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_transport_pro");
} elseif ($this->extensions['App\Twig\Extension\CountryExtension']->isCurrentCountry(twig_constant("App\\Twig\\Extension\\CountryExtension::COUNTRY_BELGIUM"))) {
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_company_pro");
} else {
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_guarantee_pro");
}
echo "\"
title=\"\">";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.home_top.pro.link.guarantee_pro"), "html", null, true);
echo "</a></li>
<li><a href=\"";
// line 42
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_vehicle_inspection_pro");
echo "\"
title=\"\">";
// line 43
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.home_top.pro.link.inspection_pro"), "html", null, true);
echo "</a></li>
</ul>
</div>
</div>
<!-- FIN Accroche -->
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Frontend/home/home_top_pro.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<div class=\"home-top-pro\">
<!-- bandeau Live -->
{% if nextLive is defined and nextLive is not null %}
{% 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 } %}
{% endif %}
<!-- FIN bandeau Live -->
<!-- Accroche -->
<div class=\"block01 txtcenter\">
<div class=\"home-accroche-pro\">
{% if is_current_website('ecat') %}
<h1 class=\"bold ecat-title\">{{ 'frontend.home_top.pro.title.ecat'|trans }}</h1>
{% else %}
<h1 class=\"bold\">{{ 'frontend.home_top.pro.title'|trans }}</h1>
<div class=\"m-hide\">
{{ render(controller('App\\\\Controller\\\\Frontend\\\\VehicleController:salesCounterAction')) }}
</div>
{% endif %}
</div>
<div class=\"home-search pro\">
<form action=\"{{ path('frontend_search_store') }}\" method=\"POST\" class=\"recherche-home\">
<ul>
<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>
<li class=\"bg-select\">
<span></span>{{ form_widget(search_form.sale, {'placeholder': 'form.vehicleFreeSearch.sale.empty.pro'|trans }) }}
</li>
<li>{{ form_widget(search_form.search) }}</li>
</ul>
</form>
<p class=\"tab-l-hide tab-p-hide m-hide\"><a href=\"{{ path('frontend_vehicle_list') }}\"
title=\"\">{{ 'frontend.home_top.pro.link1'|trans }}</a></p>
</div>
<div class=\"home-liens-block m-hide\">
<ul>
<li><a href=\"{{ path('frontend_contact_pro') }}\"
title=\"\">{{ 'frontend.home_top.pro.link.contact_pro'|trans }}</a></li>
<li><a href=\"{{ path('frontend_engagement_pro') }}\"
title=\"\">{{ 'frontend.home_top.pro.link.engagement_pro'|trans }}</a></li>
<li>
<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 %}\"
title=\"\">{{ 'frontend.home_top.pro.link.guarantee_pro'|trans }}</a></li>
<li><a href=\"{{ path('frontend_vehicle_inspection_pro') }}\"
title=\"\">{{ 'frontend.home_top.pro.link.inspection_pro'|trans }}</a></li>
</ul>
</div>
</div>
<!-- FIN Accroche -->
</div>
", "Frontend/home/home_top_pro.html.twig", "/srv/src/Resources/views/Frontend/home/home_top_pro.html.twig");
}
}