templates/composantsPages/homeComponents/notreActualite.html.twig line 1

Open in your IDE?
  1. <section class="pt-4 pb-4">
  2.     <div class="container" data-animate="fadeInUp">
  3.         <div class="col-lg-12">
  4.             <div class="heading-text  heading-section">
  5.                 <h2><span>{{ 'components.actualite.titre' | admintrans | raw }}</span></h2>
  6.                 <p>{{ 'components.actualite.description' | admintrans | raw }}</p>
  7.             </div>
  8.         </div>
  9.     </div>
  10.     <div class="container">
  11.         <div id="article" class="grid-layout post-3-columns m-b-30" data-item="post-item">
  12.             {% for article in articles | slice(0,3) %}
  13.                 <div class="post-item border" data-animate="fadeInUp" data-animate-delay="{{ 300 * loop.index0 }}">
  14.                     <div class="post-item-wrap">
  15.                         <div class="post-image"> <a href="{{ path('actualite',{'id' : article.id}) }}"> <img alt="{{ article.altDescription }}" {{ responsive_src(asset('images/upload/' ~ article.image)) | raw }}> </a></div>
  16.                         <div class="post-item-description"> <span class="post-meta-date"><i class="fa fa-calendar-o"></i>{{ article.date | date('d M Y') }}</span>
  17.                             <h2><a href="{{ path('actualite',{'id' : article.id}) }}">{{ article.titre }}</a></h2>
  18.                             <div> {{ article.displayContent | striptags('<strong><u><br><li><ul>') | u.truncate( 200, '...', false)  | raw}} </div>
  19.                             <a href="{{ path('actualite',{'id' : article.id}) }}" class="item-link">Lire plus <i class="icon-chevron-right"></i></a>
  20.                         </div>
  21.                     </div>
  22.                 </div>
  23.             {% endfor %}
  24.         </div>
  25.         <div class="text-center pt-5">
  26.             <a class="btn btn-light text-center" href="{{ path('actualites') }}" data-animate="fadeInUp">{{ 'components.actualite.tous' | admintrans | raw }}</a>
  27.         </div>
  28.     </div>
  29. </section>