{% extends 'Frontend/base.html.twig' %}
{% block seoheader %}
{% include 'Frontend/Render/head/_seopage.html.twig' with {'page_selected':page_selected} %}
{% endblock %}
{#% block switcher %}
{% include 'Frontend/Render/_switcher.html.twig'%}
{% endblock switcher %#}
{% block body %}
<div class="content_pages {{page_selected.slug}}">
{% 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>
{% include 'Frontend/Render/_pagination.html.twig' %}
</div>
</div>
{% else %}
<div class="container">
<p>nothing</p>
</div>
{% endif %}
</div>
{% endblock body %}