templates/default/press.html.twig line 1

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