templates/front/actu-detail.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ actualite.titre }}{% endblock %}
  3. {% block description %}{{ actualite.description | trim }}{% endblock %}
  4. {% block keywords %}{{ actualite.keywords | trim }}{% endblock %}
  5. {% block banniere %}
  6. <section class="ban-section">
  7.     <div class="ban">
  8.         <img src="{{ asset(actu_directory ~ actualite.banniere) }}" alt="">
  9.         <div class="container">
  10.             <div class="sect-title text-center mb-0">
  11.                 <div class="h1 text-white">
  12.                     {{ actualite.titre }}
  13.                 </div>
  14.             </div>
  15.         </div>
  16.     </div>
  17. </section>
  18. {% endblock %}
  19. {% block contenu %}
  20.     <section class=" pt-75 pb-0" style="margin:0 auto;text-align:center;justify-content:center !important;">
  21.         <div class="container" style="margin:0 auto;text-align:center;justify-content:center !important;">
  22.             <div class="d-flex justify-content-end" style="gap: 20px;margin:0 auto;text-align:center;justify-content:center !important;">
  23.                 <div class="btn-1 ">{{ actualite.date |date("m/d/Y") }}</div>
  24.                 <div class="btn-1 ">{{ actualite.categorie.nom }}</div>
  25.             </div>
  26.         </div>
  27.     </section>
  28.     <section class="pt-75 pb-35 ">
  29.         <div class="container clearfix">
  30.             <div class="bloc-text blog-detail mb-50">
  31.                 {{ actualite.contenu | raw }}
  32.             </div>
  33.         </div>
  34.     </section>
  35.     <section class="pt-75 pb-75">
  36.         <div class="container container-one">
  37.             <div class="sect-title ">
  38.                 <div class="h1 text-uppercase text-center">
  39.                     à lire dans la même catégorie
  40.                 </div>
  41.             </div>
  42.             <div class="row">
  43.                 {% for actualite in actualites %}
  44.                 {{ actualite.init() }}
  45.                 <div class="col-xl-4 col-md-6 col-12 mb-40">
  46.                     <div class="item-blog">
  47.                         <div class="img">
  48.                             <img src="{{ asset(actualite.imgSrc) }}" loading="lazy" alt="">
  49.                         </div>
  50.                         <div class="content">
  51.                             <div class="cat">
  52.                                 {{ actualite.categorie.nom }}
  53.                             </div>
  54.                             <div class="title">
  55.                                 {{ actualite.titre }}
  56.                             </div>
  57.                             <div class="desc">
  58.                                 {{ actualite.contenu | slice(0, 120) | striptags | raw }} [...]
  59.                             </div>
  60.                         </div>
  61.                         <a href="{{ path('app_actualite_detail', { slug : actualite.slug }) }}" class="full-link"></a>
  62.                     </div>
  63.                 </div>
  64.                 {% endfor %}
  65.             </div>
  66.         </div>
  67.     </section>
  68. {% endblock %}
  69. {% block formule %}
  70.     
  71.     {% include 'front/formule.html.twig' %}
  72.     
  73. {% endblock %}