templates/front/actualites.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Actualités{% endblock %}
  3. {% block style %}
  4.     <style>
  5.     .pagination {
  6.         padding-top: 50px;
  7.         justify-content: center;
  8.     }
  9.     .pagination__item {
  10.         padding: 5px 15px;
  11.         background: #b4b4b4;
  12.         border-radius: 10px;
  13.         margin-right: 5px;
  14.         color: #fff;
  15.     }
  16.     </style>
  17. {% endblock %}
  18. {% block banniere %}
  19.     <section class="bannier-blog">
  20.         <img src="{{ asset('front/images/ban/header-blog-ecole-de-surf-cote-sauvage.jpg') }}" class="img" alt="blog ecole de surf cote sauvage">
  21.     </section>
  22. {% endblock %}
  23. {% block contenu %}
  24.     <section class="pt-75 pb-35">
  25.         <div class="container">
  26.             <div class="sect-title text-center">
  27.                 <div class="h1">
  28.                     Le Blog de l’ESCS
  29.                 </div>
  30.             </div>
  31.             <div class="text-1 text-center mb-45">
  32.                 Retrouvez toutes les infos sur l’Ecole de Surf de la Côte Sauvage, nos coups de coeur, nos bons
  33.                 plans et des rencontres avec nos partenaires locaux.
  34.             </div>
  35.             <div class="row">
  36.                 {% for actualite in pager %}
  37.                 {{ actualite.init() }}
  38.                 <div class="col-xl-4 col-md-6 col-12 mb-30">
  39.                     <div class="item-blog">
  40.                         <div class="img"><img src="{{ asset(actualite.imgSrc) }}" loading="lazy" alt=""></div>
  41.                         <div class="content">
  42.                             <div class="date">
  43.                                 <span>
  44.                                     {{ actualite.date|localizeddate('none', 'none', null, null, 'd') }}
  45.                                     {% set trans_day_hash = { 
  46.                                         "January": "Janvier", 
  47.                                         "February": "Février", 
  48.                                         "March": "Mars", 
  49.                                         "April": "Avril", 
  50.                                         "May": "Mai", 
  51.                                         "June": "Juin", 
  52.                                         "July": "Juillet",
  53.                                         "August": "Juillet",
  54.                                         "September": "Septembre",
  55.                                         "October": "Octobre",
  56.                                         "November": "Novembre",
  57.                                         "December": "Décembre"
  58.                                     } 
  59.                                 %}
  60.                                 </span> {{ trans_day_hash[actualite.date|localizeddate('none', 'none', null, null, 'MMMM')] | slice(0, 3) }} <br>{{ actualite.date|localizeddate('none', 'none', null, null, 'Y') }}
  61.                             </div>
  62.                             <div class="title">
  63.                                 {{ actualite.titre }}
  64.                             </div>
  65.                             <div class="link">
  66.                                 lire la suite
  67.                             </div>
  68.                             <div class="wave"></div>
  69.                         </div>
  70.                         <a href="{{ path('app_actualite_detail', { slug : actualite.slug }) }}" class="full-link"></a>
  71.                     </div>
  72.                 </div>
  73.                 {% endfor %}
  74.                 <div class="col-12 mb-30">
  75.                     {{ pagerfanta(pager) }}
  76.                 </div>
  77.             </div>
  78.         </div>
  79.     </section>
  80. {% endblock %}
  81. {% block formule %}
  82.     
  83.     {% include 'front/formule.html.twig' %}
  84.     
  85. {% endblock %}