templates/default/calendrier.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}
  3. <meta name="description" content="Liste et détails des évènements du LIONS CLUB Laclaireau | comté de Chiny ">
  4. <title>Calendrier des évènements du  LIONS CLUB Laclaireau | comté de Chiny </title>
  5. {% endblock %}
  6. {% block body %}
  7. <div class="container">
  8. <div class="tr-content">
  9. <div class="row">
  10. <div class="col-md-8 col-lg-9 tr-sticky">
  11. <div class="theiaStickySidebar">
  12. <div class="breadcrumbs">
  13. <a href="{{path('app_default')}}">Accueil</a>
  14. <span>/&nbsp;</span>Calendrier
  15. <div class="post-counter">
  16. <span class="count-number">{{articles|length}}</span>
  17. <span class="count-text">Produits</span>
  18. </div>
  19. </div>
  20. {% if app.user and is_granted('ROLE_ADMIN') %}
  21. <a href="{{path('app_evenements_index')}}"><button type="button" class="btn btn-warning">Gérer les produits</button></a>
  22. <br><br>
  23. {% endif %}
  24. <div class="blog-list masonry clearfix">
  25. <div class="row">
  26. {% for res in evenements %}
  27. <div class="col-md-6 col-lg-4" style="margin-bottom:40px">
  28. <div class="masonry-item clearfix">
  29. <div class="blog-mask">
  30. <div class="blog-image">
  31. {% if res.image != 'ok' %}
  32. <a href="{{path('calendrierDetail',{'id':res.id})}}"><img src="{{asset('uploads/'~res.image)}}" alt="{{res.titre}}" class="img-thumbnail" style="height:240px"></a>
  33. {% else %}
  34. <a href="{{path('calendrierDetail',{'id':res.id})}}"><img src="{{asset('uploads/default.png')}}" alt="{{res.titre}}" class="img-thumbnail"style="height:240px"></a>
  35. {% endif %}
  36. </div>
  37. </div>
  38. <div class="blog-list-desc" style="height:250px">
  39. <h4><a href="{{path('calendrierDetail',{'id':res.id})}}">{{res.titre}}</a></h4>
  40. <label>
  41. <span>{{res.lieu}}‐</span> <br>le {{res.date|date('d')}} 
  42.                 {% if res.date|date('m') == '01' %}Janvier{% endif %}
  43.                 {% if res.date|date('m') == '02' %}Février{% endif %}
  44.                 {% if res.date|date('m') == '03' %}Mars{% endif %}
  45.                 {% if res.date|date('m') == '04' %}Avril{% endif %}
  46.                 {% if res.date|date('m') == '05' %}Mai{% endif %}
  47.                 {% if res.date|date('m') == '06' %}Juin{% endif %}
  48.                 {% if res.date|date('m') == '07' %}Juillet{% endif %}
  49.                 {% if res.date|date('m') == '08' %}Août{% endif %}
  50.                 {% if res.date|date('m') == '09' %}Septembre{% endif %}
  51.                 {% if res.date|date('m') == '10' %}Octobre{% endif %}
  52.                 {% if res.date|date('m') == '11' %}Novembre{% endif %}
  53.                 {% if res.date|date('m') == '12' %}Décembre{% endif %}
  54.              {{res.date|date('Y')}}
  55.              {% if res.heure != '' %}
  56.                 à {{res.heure}}
  57.              {% endif %}
  58. </label>
  59. {{res.resume|striptags|slice(0, 120)}} ...
  60. <br><br>
  61. {% if res.billeterie == 1 %}
  62. <span class="categories">
  63. <a href="{{path('calendrierDetail',{'id':res.id})}}">Acheter</a>
  64. </span>
  65. {% endif %}
  66. </div>
  67. </div>
  68. </div>
  69. {% endfor %}
  70. </div>
  71. </div>
  72. <style>
  73. .pagination{
  74.     justify-content: center;
  75.     margin-top:10px
  76. }
  77. .pagination span
  78. {
  79.     margin-right:10px
  80. }
  81. .pagination .current
  82. {
  83.       color: #fff;
  84.   font-size: 14px;
  85.   padding: 6px 9px;
  86.    width: 40px;
  87.   height:40px;
  88.   display: block;
  89.   background: #245097;
  90.   position: relative;
  91.   top: -2px;
  92.   -webkit-border-radius: 50%;
  93.   -moz-border-radius: 50%;
  94.   border-radius: 50%;
  95. }
  96. .pagination .page
  97. {
  98.       color: #fff;
  99.   font-size: 14px;
  100.   padding: 6px 9px;
  101.   width: 40px;
  102.   height:40px;
  103.   display: block;
  104.   background: #c3cad0;
  105.   position: relative;
  106.   top: -2px;
  107.   -webkit-border-radius: 50%;
  108.   -moz-border-radius: 50%;
  109.   border-radius: 50%;
  110. }
  111. .pagination a
  112. {
  113.       color: #fff !important;
  114. }
  115. .pagination .last a
  116. {
  117.     color: #245097 !important;
  118.       font-size: 25px;
  119.       padding: 6px 9px;
  120. }
  121. .next::before {
  122.   content: "";
  123. }
  124. .pagination .next a
  125. {
  126.     color: #245097 !important;
  127.       font-size: 25px;
  128.       padding: 6px 9px;
  129. }
  130. .pagination .first a
  131. {
  132.     color: #245097 !important;
  133.       font-size: 25px;
  134.       padding: 6px 9px;
  135. }
  136. .pagination .previous a
  137. {
  138.     color: #245097 !important;
  139.       font-size: 25px;
  140.       padding: 6px 9px;
  141. }
  142. </style>
  143. <div align="center">
  144. <div class="pagination" > 
  145. {{ knp_pagination_render(evenements) }}
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. <div class="col-md-4 col-lg-3 tr-sticky">
  151. <div class="sidebar theiaStickySidebar">
  152. <div class="widget widget_categories">
  153. <h5>Catégories</h5>
  154. <ul>
  155.     <li><a href="{{path('calendrier')}}" {% if cActive == '' %}style="color: #245097;
  156. font-size: 20px;
  157. font-weight: 700;"{% endif %}>Tout</a></li>
  158.     {% for res in categories %}
  159.         <li><a href="{{path('calendrier',{'categorie':res.id})}}" {% if cActive == res.id %}style="color: #245097;
  160. font-size: 20px;
  161. font-weight: 700;"{% endif %}>{{res.libelle}}</a></li>
  162.     {% endfor %}
  163. </ul>
  164. {% if app.user and is_granted('ROLE_ADMIN') %}
  165. <a href="{{path('app_categories_evenements_index')}}"><button type="button" class="btn btn-warning">Gérer les catégories</button></a>
  166. <br><br>
  167. {% endif %}
  168. </div>
  169. </div>
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. {% endblock %}