{% extends 'base.html.twig' %}{% block title %}<meta name="description" content="Liste et détails des évènements du LIONS CLUB Laclaireau | comté de Chiny "><title>Calendrier des évènements du LIONS CLUB Laclaireau | comté de Chiny </title>{% endblock %}{% block body %}<div class="container"><div class="tr-content"><div class="row"><div class="col-md-8 col-lg-9 tr-sticky"><div class="theiaStickySidebar"><div class="breadcrumbs"><a href="{{path('app_default')}}">Accueil</a><span>/ </span>Calendrier<div class="post-counter"><span class="count-number">{{articles|length}}</span><span class="count-text">Produits</span></div></div>{% if app.user and is_granted('ROLE_ADMIN') %}<a href="{{path('app_evenements_index')}}"><button type="button" class="btn btn-warning">Gérer les produits</button></a><br><br>{% endif %}<div class="blog-list masonry clearfix"><div class="row">{% for res in evenements %}<div class="col-md-6 col-lg-4" style="margin-bottom:40px"><div class="masonry-item clearfix"><div class="blog-mask"><div class="blog-image">{% if res.image != 'ok' %}<a href="{{path('calendrierDetail',{'id':res.id})}}"><img src="{{asset('uploads/'~res.image)}}" alt="{{res.titre}}" class="img-thumbnail" style="height:240px"></a>{% else %}<a href="{{path('calendrierDetail',{'id':res.id})}}"><img src="{{asset('uploads/default.png')}}" alt="{{res.titre}}" class="img-thumbnail"style="height:240px"></a>{% endif %}</div></div><div class="blog-list-desc" style="height:250px"><h4><a href="{{path('calendrierDetail',{'id':res.id})}}">{{res.titre}}</a></h4><label><span>{{res.lieu}}‐</span> <br>le {{res.date|date('d')}} {% if res.date|date('m') == '01' %}Janvier{% endif %} {% if res.date|date('m') == '02' %}Février{% endif %} {% if res.date|date('m') == '03' %}Mars{% endif %} {% if res.date|date('m') == '04' %}Avril{% endif %} {% if res.date|date('m') == '05' %}Mai{% endif %} {% if res.date|date('m') == '06' %}Juin{% endif %} {% if res.date|date('m') == '07' %}Juillet{% endif %} {% if res.date|date('m') == '08' %}Août{% endif %} {% if res.date|date('m') == '09' %}Septembre{% endif %} {% if res.date|date('m') == '10' %}Octobre{% endif %} {% if res.date|date('m') == '11' %}Novembre{% endif %} {% if res.date|date('m') == '12' %}Décembre{% endif %} {{res.date|date('Y')}} {% if res.heure != '' %} à {{res.heure}} {% endif %}</label>{{res.resume|striptags|slice(0, 120)}} ...<br><br>{% if res.billeterie == 1 %}<span class="categories"><a href="{{path('calendrierDetail',{'id':res.id})}}">Acheter</a></span>{% endif %}</div></div></div>{% endfor %}</div></div><style>.pagination{ justify-content: center; margin-top:10px}.pagination span{ margin-right:10px}.pagination .current{ color: #fff; font-size: 14px; padding: 6px 9px; width: 40px; height:40px; display: block; background: #245097; position: relative; top: -2px; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%;}.pagination .page{ color: #fff; font-size: 14px; padding: 6px 9px; width: 40px; height:40px; display: block; background: #c3cad0; position: relative; top: -2px; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%;}.pagination a{ color: #fff !important;}.pagination .last a{ color: #245097 !important; font-size: 25px; padding: 6px 9px;}.next::before { content: "";}.pagination .next a{ color: #245097 !important; font-size: 25px; padding: 6px 9px;}.pagination .first a{ color: #245097 !important; font-size: 25px; padding: 6px 9px;}.pagination .previous a{ color: #245097 !important; font-size: 25px; padding: 6px 9px;}</style><div align="center"><div class="pagination" > {{ knp_pagination_render(evenements) }}</div></div></div></div><div class="col-md-4 col-lg-3 tr-sticky"><div class="sidebar theiaStickySidebar"><div class="widget widget_categories"><h5>Catégories</h5><ul> <li><a href="{{path('calendrier')}}" {% if cActive == '' %}style="color: #245097;font-size: 20px;font-weight: 700;"{% endif %}>Tout</a></li> {% for res in categories %} <li><a href="{{path('calendrier',{'categorie':res.id})}}" {% if cActive == res.id %}style="color: #245097;font-size: 20px;font-weight: 700;"{% endif %}>{{res.libelle}}</a></li> {% endfor %}</ul>{% if app.user and is_granted('ROLE_ADMIN') %}<a href="{{path('app_categories_evenements_index')}}"><button type="button" class="btn btn-warning">Gérer les catégories</button></a><br><br>{% endif %}</div></div></div></div></div></div>{% endblock %}