<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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/Events/list_events.html.twig */
class __TwigTemplate_037cb203bfd633c720c56b11fe2f6711 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'seoheader' => [$this, 'block_seoheader'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Frontend/base.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/Events/list_events.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/Events/list_events.html.twig"));
$this->parent = $this->loadTemplate("Frontend/base.html.twig", "Frontend/Events/list_events.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_seoheader($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", "seoheader"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seoheader"));
// line 4
yield " ";
yield from $this->loadTemplate("Frontend/Render/head/_seopage.html.twig", "Frontend/Events/list_events.html.twig", 4)->unwrap()->yield(CoreExtension::merge($context, ["page_selected" => (isset($context["page_selected"]) || array_key_exists("page_selected", $context) ? $context["page_selected"] : (function () { throw new RuntimeError('Variable "page_selected" does not exist.', 4, $this->source); })())]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 11
public function block_body($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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 12
yield "
\t<div class=\"content_pages ";
// line 13
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page_selected"]) || array_key_exists("page_selected", $context) ? $context["page_selected"] : (function () { throw new RuntimeError('Variable "page_selected" does not exist.', 13, $this->source); })()), "slug", [], "any", false, false, false, 13), "html", null, true);
yield "\">
\t\t";
// line 16
yield from $this->loadTemplate("Frontend/Render/_menu_pages.html.twig", "Frontend/Events/list_events.html.twig", 16)->unwrap()->yield(CoreExtension::merge($context, ["page_selected" => (isset($context["page_selected"]) || array_key_exists("page_selected", $context) ? $context["page_selected"] : (function () { throw new RuntimeError('Variable "page_selected" does not exist.', 16, $this->source); })())]));
// line 17
yield "
";
// line 18
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["list_events"]) || array_key_exists("list_events", $context) ? $context["list_events"] : (function () { throw new RuntimeError('Variable "list_events" does not exist.', 18, $this->source); })()))) {
// line 19
yield "
<div class=\"events_home\">
<div class=\"container\">
<div class=\"row\">
";
// line 24
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["list_events"]) || array_key_exists("list_events", $context) ? $context["list_events"] : (function () { throw new RuntimeError('Variable "list_events" does not exist.', 24, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["event"]) {
// line 25
yield " <div class=\"col-lg-6 col-md-6\">
<div class=\"item_events_home\">
<a href=\"";
// line 27
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("event_selected", ["slug" => CoreExtension::getAttribute($this->env, $this->source, $context["event"], "slug", [], "any", false, false, false, 27)]), "html", null, true);
yield "\" class=\"img_item_events_home\">
<img class=\"img-fluid\" src=\"";
// line 28
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset($context["event"], "imageFile")), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["event"], "html", null, true);
yield "\">
</a>
<div class=\"text_item_events_home\">
<label>
";
// line 32
if (( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["event"], "datePublier", [], "any", false, false, false, 32)) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["event"], "dateFinal", [], "any", false, false, false, 32)))) {
// line 33
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["event"], "datePublier", [], "any", false, false, false, 33), "d"), "html", null, true);
yield " - ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["event"], "dateFormat", [(isset($context["selected_lang"]) || array_key_exists("selected_lang", $context) ? $context["selected_lang"] : (function () { throw new RuntimeError('Variable "selected_lang" does not exist.', 33, $this->source); })())], "method", false, false, false, 33), "html", null, true);
yield "
";
}
// line 35
yield " </label>
<h3><a href=\"";
// line 36
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("event_selected", ["slug" => CoreExtension::getAttribute($this->env, $this->source, $context["event"], "slug", [], "any", false, false, false, 36)]), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["event"], "html", null, true);
yield "</a></h3>
<span><img class=\"img-fluid\" src=\"/assets/img/location.png\" alt=\"\">";
// line 37
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["event"], "location", [], "any", false, false, false, 37), "html", null, true);
yield "</span>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['event'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 42
yield "
</div>
\t\t ";
// line 45
yield from $this->loadTemplate("Frontend/Render/_pagination.html.twig", "Frontend/Events/list_events.html.twig", 45)->unwrap()->yield($context);
// line 46
yield "
</div>
</div>
";
} else {
// line 51
yield " <div class=\"container\">
<p>nothing</p>
</div>
";
}
// line 55
yield "
\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Frontend/Events/list_events.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 186 => 55, 180 => 51, 173 => 46, 171 => 45, 166 => 42, 155 => 37, 149 => 36, 146 => 35, 138 => 33, 136 => 32, 127 => 28, 123 => 27, 119 => 25, 115 => 24, 108 => 19, 106 => 18, 103 => 17, 101 => 16, 95 => 13, 92 => 12, 82 => 11, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'Frontend/base.html.twig' %}
{% block seoheader %}
{% include 'Frontend/Render/head/_seopage.html.twig' with {'page_selected':page_selected} %}
{% endblock %}
{#% block switcher %}
\t{% include 'Frontend/Render/_switcher.html.twig'%}
{% endblock switcher %#}
{% block body %}
\t<div class=\"content_pages {{page_selected.slug}}\">
\t\t{% include 'Frontend/Render/_menu_pages.html.twig' with {'page_selected':page_selected} %}
{% if list_events is not empty %}
<div class=\"events_home\">
<div class=\"container\">
<div class=\"row\">
{% for event in list_events %}
<div class=\"col-lg-6 col-md-6\">
<div class=\"item_events_home\">
<a href=\"{{ path('event_selected',{'slug':event.slug}) }}\" class=\"img_item_events_home\">
<img class=\"img-fluid\" src=\"{{ asset (vich_uploader_asset(event,'imageFile')) }}\" alt=\"{{event}}\">
</a>
<div class=\"text_item_events_home\">
<label>
{% if event.datePublier is not empty and event.dateFinal is not empty %}
{{event.datePublier|date('d')}} - {{event.dateFormat(selected_lang)}}
{% endif %}
</label>
<h3><a href=\"{{ path('event_selected',{'slug':event.slug}) }}\">{{event}}</a></h3>
<span><img class=\"img-fluid\" src=\"/assets/img/location.png\" alt=\"\">{{event.location}}</span>
</div>
</div>
</div>
{% endfor %}
</div>
\t\t {% include 'Frontend/Render/_pagination.html.twig' %}
</div>
</div>
{% else %}
<div class=\"container\">
<p>nothing</p>
</div>
{% endif %}
\t</div>
{% endblock body %}", "Frontend/Events/list_events.html.twig", "/home/site/wwwroot/templates/Frontend/Events/list_events.html.twig");
}
}