<?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/vehicle/index.html.twig */
class __TwigTemplate_f4365fc72bfd44ab2401e72a6be26a97 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'meta_robot' => [$this, 'block_meta_robot'],
'meta_title' => [$this, 'block_meta_title'],
'meta_desc' => [$this, 'block_meta_desc'],
'tag_manager' => [$this, 'block_tag_manager'],
'additional_classes' => [$this, 'block_additional_classes'],
'body_content' => [$this, 'block_body_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "frontend/frontend.html.twig";
}
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/vehicle/index.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/vehicle/index.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/vehicle/index.html.twig"));
// line 3
$macros["macros"] = $this->macros["macros"] = $this->loadTemplate("/Frontend/macros.html.twig", "Frontend/vehicle/index.html.twig", 3)->unwrap();
// line 1
$this->parent = $this->loadTemplate("frontend/frontend.html.twig", "Frontend/vehicle/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
public function block_meta_robot($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(), "block", "meta_robot"));
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_robot"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_robot"));
// line 6
echo " ";
$this->displayParentBlock("meta_robot", $context, $blocks);
echo "
<link rel=\"canonical\" href=\"";
// line 7
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("frontend_vehicle_list");
echo "\"/>
";
// line 8
echo twig_source($this->env, "stubs/seo/robots_index_follow.html.twig");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 11
public function block_meta_title($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(), "block", "meta_title"));
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_title"));
// line 12
echo twig_escape_filter($this->env, ((array_key_exists("title", $context)) ? (_twig_default_filter((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 12, $this->source); })()), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.vehicle.list.title", [], "seo"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.vehicle.list.title", [], "seo"))), "html", null, true);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 15
public function block_meta_desc($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(), "block", "meta_desc"));
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_desc"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_desc"));
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.vehicle.list.desc", [], "seo"), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 17
public function block_tag_manager($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(), "block", "tag_manager"));
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tag_manager"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tag_manager"));
// line 18
echo " <script>
dataLayer = [{
'rubrique': '";
// line 20
(((null == (isset($context["currentSale"]) || array_key_exists("currentSale", $context) ? $context["currentSale"] : (function () { throw new RuntimeError('Variable "currentSale" does not exist.', 20, $this->source); })()))) ? (print ("Toutes les ventes")) : (print (twig_escape_filter($this->env, (($this->env->getTest('onlineCompliant')->getCallable()((isset($context["currentSale"]) || array_key_exists("currentSale", $context) ? $context["currentSale"] : (function () { throw new RuntimeError('Variable "currentSale" does not exist.', 20, $this->source); })()))) ? (twig_get_attribute($this->env, $this->source, (isset($context["currentSale"]) || array_key_exists("currentSale", $context) ? $context["currentSale"] : (function () { throw new RuntimeError('Variable "currentSale" does not exist.', 20, $this->source); })()), "title", [], "any", false, false, false, 20)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["currentSale"]) || array_key_exists("currentSale", $context) ? $context["currentSale"] : (function () { throw new RuntimeError('Variable "currentSale" does not exist.', 20, $this->source); })()), "room", [], "any", false, false, false, 20), "code", [], "any", false, false, false, 20))), "html", null, true))));
echo "'
}];
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 25
public function block_additional_classes($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(), "block", "additional_classes"));
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "additional_classes"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "additional_classes"));
// line 26
echo " ";
if ((array_key_exists("listType", $context) && ((isset($context["listType"]) || array_key_exists("listType", $context) ? $context["listType"] : (function () { throw new RuntimeError('Variable "listType" does not exist.', 26, $this->source); })()) == "Liste"))) {
// line 27
echo " vehicules-mode-liste
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 31
public function block_body_content($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(), "block", "body_content"));
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_content"));
// line 32
echo twig_include($this->env, $context, "Frontend/vehicle/header_sale.html.twig");
echo "
<div class=\"col9x list-vehicle\">
";
// line 35
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.', 35, $this->source); })()), "user", [], "any", false, false, false, 35)) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED"))) {
// line 36
echo " <div class=\"sidebar ";
if ($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.', 36, $this->source); })()), "user", [], "any", false, false, false, 36))) {
echo "pro";
}
echo " grid-visible tab-l-visible tab-p-hide m-hide\">
";
// line 37
$this->loadTemplate("/Frontend/sidebar.html.twig", "Frontend/vehicle/index.html.twig", 37)->display($context);
// line 38
echo " </div>
";
}
// line 40
echo "
<div class=\"content clearfix ";
// line 41
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.', 41, $this->source); })()), "user", [], "any", false, false, false, 41)) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED"))) {
echo "content_pro";
}
echo "\" role=\"main\">
<div id=\"content-top-right\">
<div class=\"overlay03 none overlay-list-vehicle\"></div>
<div>
<div class=\"big_box_cont\">
<div class=\"search-result\">
";
// line 47
$this->loadTemplate("Frontend/vehicle/list.html.twig", "Frontend/vehicle/index.html.twig", 47)->display(twig_array_merge($context, ["pager" => (isset($context["pager"]) || array_key_exists("pager", $context) ? $context["pager"] : (function () { throw new RuntimeError('Variable "pager" does not exist.', 47, $this->source); })()), "listtype" => true]));
// line 48
echo " </div>
<div class=\"clearfix\"></div>
</div>
</div>
<div style=\"display: none; \">
<div></div>
</div>
</div>
</div>
<a href=\"#\" id=\"scrollup\">Haut</a>
</div>
<div class=\"col3x list-vehicle\">
";
// line 61
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Frontend\\VehicleController:searchAction"));
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Frontend/vehicle/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 292 => 61, 277 => 48, 275 => 47, 264 => 41, 261 => 40, 257 => 38, 255 => 37, 248 => 36, 246 => 35, 240 => 32, 227 => 31, 212 => 27, 209 => 26, 196 => 25, 179 => 20, 175 => 18, 162 => 17, 137 => 15, 122 => 12, 109 => 11, 94 => 8, 90 => 7, 85 => 6, 72 => 5, 58 => 1, 56 => 3, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'frontend/frontend.html.twig' %}
{% import '/Frontend/macros.html.twig' as macros %}
{% block meta_robot %}
{{ parent() }}
<link rel=\"canonical\" href=\"{{ url('frontend_vehicle_list') }}\"/>
{{ source('stubs/seo/robots_index_follow.html.twig') }}
{% endblock %}
{% block meta_title %}
{{ title|default('seo.vehicle.list.title'|trans({}, 'seo')) }}
{% endblock meta_title %}
{% block meta_desc %}{{ 'seo.vehicle.list.desc'|trans({}, \"seo\") }}{% endblock %}
{% block tag_manager %}
<script>
dataLayer = [{
'rubrique': '{{ null == currentSale ? \"Toutes les ventes\" : (currentSale is onlineCompliant ? currentSale.title : currentSale.room.code) }}'
}];
</script>
{% endblock %}
{% block additional_classes %}
{% if listType is defined and listType == 'Liste' %}
vehicules-mode-liste
{% endif %}
{% endblock %}
{% block body_content %}
{{ include('Frontend/vehicle/header_sale.html.twig') }}
<div class=\"col9x list-vehicle\">
{% if app.user is not null and is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<div class=\"sidebar {% if app.user is pro %}pro{% endif %} grid-visible tab-l-visible tab-p-hide m-hide\">
{% include '/Frontend/sidebar.html.twig' %}
</div>
{% endif %}
<div class=\"content clearfix {% if app.user is not null and is_granted('IS_AUTHENTICATED_REMEMBERED') %}content_pro{% endif %}\" role=\"main\">
<div id=\"content-top-right\">
<div class=\"overlay03 none overlay-list-vehicle\"></div>
<div>
<div class=\"big_box_cont\">
<div class=\"search-result\">
{% include 'Frontend/vehicle/list.html.twig' with {'pager': pager, 'listtype': true} %}
</div>
<div class=\"clearfix\"></div>
</div>
</div>
<div style=\"display: none; \">
<div></div>
</div>
</div>
</div>
<a href=\"#\" id=\"scrollup\">Haut</a>
</div>
<div class=\"col3x list-vehicle\">
{{ render(controller( 'App\\\\Controller\\\\Frontend\\\\VehicleController:searchAction')) }}
</div>
{% endblock body_content %}
", "Frontend/vehicle/index.html.twig", "/srv/src/Resources/views/Frontend/vehicle/index.html.twig");
}
}