templates/default/activites.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}
  3. <meta name="description" content="Retrouvez ici toutes les activités du LIONS CLUB Laclaireau | comté de Chiny">
  4. <title>Nos activités 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>Activités
  15. <div class="post-counter">
  16. <span class="count-number">{{articles2|length}}</span>
  17. <span class="count-text">Activités</span>
  18. </div>
  19. </div>
  20. {% if app.user and is_granted('ROLE_ADMIN') %}
  21. <a href="{{path('app_articles_index',{'page':6})}}"><button type="button" class="btn btn-warning">Gérer les articles</button></a>
  22. <br><br>
  23. {% endif %}
  24. <div class="blog-list masonry clearfix">
  25. <div class="row">
  26. {% for res in articles %}
  27. <div class="col-md-6 col-lg-4">
  28.     <div class="masonry-item clearfix">
  29.         <div class="blog-list-desc">
  30.             
  31.             <a href="{{path('activiteDetail',{'id':res.id})}}" alt="{{res.titre}}">
  32.             <label>
  33.             <div style="height:40px"><span>{{res.titre}}</span>&nbsp;‐</div><br> le {{res.date|date('d')}} 
  34.                 {% if res.date|date('m') == '01' %}Janvier{% endif %}
  35.                 {% if res.date|date('m') == '02' %}Février{% endif %}
  36.                 {% if res.date|date('m') == '03' %}Mars{% endif %}
  37.                 {% if res.date|date('m') == '04' %}Avril{% endif %}
  38.                 {% if res.date|date('m') == '05' %}Mai{% endif %}
  39.                 {% if res.date|date('m') == '06' %}Juin{% endif %}
  40.                 {% if res.date|date('m') == '07' %}Juillet{% endif %}
  41.                 {% if res.date|date('m') == '08' %}Août{% endif %}
  42.                 {% if res.date|date('m') == '09' %}Septembre{% endif %}
  43.                 {% if res.date|date('m') == '10' %}Octobre{% endif %}
  44.                 {% if res.date|date('m') == '11' %}Novembre{% endif %}
  45.                 {% if res.date|date('m') == '12' %}Décembre{% endif %}
  46.              {{res.date|date('Y')}}
  47.             </label>
  48.             </a>
  49.             <hr>
  50.         </div>
  51.     </div>
  52. </div>
  53. {% endfor %}
  54. </div>
  55. </div>
  56. <style>
  57. .pagination{
  58.     justify-content: center;
  59.     margin-top:10px
  60. }
  61. .pagination span
  62. {
  63.     margin-right:10px
  64. }
  65. .pagination .current
  66. {
  67.       color: #fff;
  68.   font-size: 14px;
  69.   padding: 6px 9px;
  70.    width: 40px;
  71.   height:40px;
  72.   display: block;
  73.   background: #245097;
  74.   position: relative;
  75.   top: -2px;
  76.   -webkit-border-radius: 50%;
  77.   -moz-border-radius: 50%;
  78.   border-radius: 50%;
  79. }
  80. .pagination .page
  81. {
  82.       color: #fff;
  83.   font-size: 14px;
  84.   padding: 6px 9px;
  85.   width: 40px;
  86.   height:40px;
  87.   display: block;
  88.   background: #c3cad0;
  89.   position: relative;
  90.   top: -2px;
  91.   -webkit-border-radius: 50%;
  92.   -moz-border-radius: 50%;
  93.   border-radius: 50%;
  94. }
  95. .pagination a
  96. {
  97.       color: #fff !important;
  98. }
  99. .pagination .last a
  100. {
  101.     color: #245097 !important;
  102.       font-size: 25px;
  103.       padding: 6px 9px;
  104. }
  105. .next::before {
  106.   content: "";
  107. }
  108. .pagination .next a
  109. {
  110.     color: #245097 !important;
  111.       font-size: 25px;
  112.       padding: 6px 9px;
  113. }
  114. .pagination .first a
  115. {
  116.     color: #245097 !important;
  117.       font-size: 25px;
  118.       padding: 6px 9px;
  119. }
  120. .pagination .previous a
  121. {
  122.     color: #245097 !important;
  123.       font-size: 25px;
  124.       padding: 6px 9px;
  125. }
  126. </style>
  127. <div align="center">
  128. <div class="pagination" > 
  129. {{ knp_pagination_render(articles) }}
  130. </div>
  131. </div>
  132.  
  133.  
  134. </div>
  135. </div>
  136. <div class="col-md-4 col-lg-3 tr-sticky">
  137. <div class="sidebar theiaStickySidebar">
  138. <div class="widget widget_categories">
  139. <h5>Filtres</h5>
  140. <ul>
  141. <li><a href="{{path('activites')}}" {% if yActive == '' %}style="color: #245097;
  142. font-size: 20px;
  143. font-weight: 700;"{% endif %}>Tout</a></li>
  144. {% for res in years %}
  145. <li><a href="{{path('activites',{'years':res})}}" {% if yActive == res %}style="color: #245097;
  146. font-size: 20px;
  147. font-weight: 700;"{% endif %}>{{res}}</a></li>
  148. {% endfor %}
  149. </ul>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. {% endblock %}