templates/section/actualite-index.html.twig line 1

Open in your IDE?
  1. <style>
  2.     .back_actu{
  3.         background-image: url("{{ asset('public/inter/Formation.png') }}");
  4.         background-position: center center; 
  5.         background-repeat: no-repeat;
  6.         background-size: cover;
  7.         padding-bottom: 60px;
  8.         padding-top: 60px; 
  9.     }
  10.     .title{
  11.         color: #fff;
  12.     }
  13.     .elementor-button{
  14.         border: 1px solid #fff;
  15.     }
  16. </style>
  17. <section class="back_actu elementor-section elementor-top-section elementor-element elementor-element-f6d0dbf elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="f6d0dbf" data-element_type="section">
  18.    <div class="elementor-container elementor-column-gap-default">
  19.       <div class="elementor-column elementor-col-40 elementor-top-column elementor-element elementor-element-34b60b7" data-id="34b60b7" data-element_type="column">
  20.          <div class="elementor-widget-wrap elementor-element-populated">
  21.             <div class="elementor-element elementor-element-e697df8 elementor-widget elementor-widget-gimont_elementor_heading" data-id="e697df8" data-element_type="widget" data-widget_type="gimont_elementor_heading.default">
  22.                <div class="elementor-widget-container">
  23.                   <div class="ova-heading template_1">
  24.                      <span class="line"></span>
  25.                      <span class="subtitle">Actualités</span>
  26.                      <h2 class="title" style="font-family: arial !important;">Actualité des formations & des certifications
  27.                      </h2>
  28.                      <!--
  29.                      <p class="desc">There are many variations of passages but 
  30.                         the majority have suffered simply
  31.                      </p>
  32.                      -->
  33.                   </div>
  34.                </div>
  35.             </div>
  36.             <div class="elementor-element elementor-element-90d095b elementor-widget elementor-widget-button" data-id="90d095b" data-element_type="widget" data-widget_type="button.default">
  37.                <div class="elementor-widget-container">
  38.                   <div class="elementor-button-wrapper">
  39.                      <a class="elementor-button elementor-button-link elementor-size-sm" href="{{ path('front.actualite') }}">
  40.                      <span class="elementor-button-content-wrapper">
  41.                      <span class="elementor-button-text">Toutes l'actualités</span>
  42.                      </span>
  43.                      </a>
  44.                   </div>
  45.                </div>
  46.             </div>
  47.          </div>
  48.       </div>
  49.       <div class="elementor-column elementor-col-60 elementor-top-column elementor-element elementor-element-38fe79e" data-id="38fe79e" data-element_type="column">
  50.          <div class="elementor-widget-wrap elementor-element-populated">
  51.             <div class="elementor-element elementor-element-4227b2c elementor-widget elementor-widget-gimont_elementor_blog" data-id="4227b2c" data-element_type="widget" data-widget_type="gimont_elementor_blog.default">
  52.                <div class="elementor-widget-container">
  53.                   <ul class="ova-blog column_2 version_1 v1_template_2">
  54.                       {% if actualite != null %}
  55.                       {% for actu in actualite %}
  56.                      <li class="item">
  57.                         <div class="media">
  58.                            <div class="box-img">
  59.                               <a href="{{ path('front.detail.actu', {'slug': actu.slug}) }}" rel="{{ actu.titre }}" title="{{ actu.titre }}">
  60.                               <img decoding="async" style="border-top-left-radius: 10px; border-top-right-radius: 10px;" src="{{ asset('public/uploads/images/actualites/' ~ actu.image) }}" alt="{{ actu.titre }}">
  61.                               </a>
  62.                            </div>
  63.                         </div>
  64.                         <div class="content" style="border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;">
  65.                            <ul class="post-meta">
  66.                               <li class="item-meta post-date">
  67.                                  <span class="left date">
  68.                                  <i aria-hidden="true" class="fas fa-calendar-alt"></i>
  69.                                  </span>
  70.                                  <span class="right date">
  71.                                  <span class="date-jMY">{{ actu.createdat|format_datetime(locale='fr',pattern="EEEE dd MMMM YYYY") }}</span>
  72.                                  </span>            
  73.                               </li>
  74.                            </ul>
  75.                            <h2 class="post-title" style="height: 55px; font-size: 20px !important;">
  76.                               <a href="{{ path('front.detail.actu', {'slug': actu.slug}) }}" rel="{{ actu.titre }}" title="{{ actu.titre }}">
  77.                                 {% if actu.titre|length > 50 %}
  78.                                     {{ actu.titre|striptags|slice(0, 47) ~ '...' }}
  79.                                 {% else %}
  80.                                     {{ actu.titre }}
  81.                                 {% endif %}                                  
  82.                               </a>
  83.                            </h2>
  84.                            <div class="item-meta wp-author" style="height: 100px; !important;">
  85.                                <p>{{ actu.resume|striptags|slice(0, 120) }}</p>
  86.                            </div>
  87.                             <div class="meta-event meta-event-2">
  88.                                 <a href="{{ path('front.detail.actu', {'slug': actu.slug}) }}">
  89.                                     <div class="">
  90.                                         <span class="number">En savoir plus</span>
  91.                                         <i class="fa fa-long-arrow-right icon_event" aria-hidden="true"></i>
  92.                                     </div>
  93.                                 </a>
  94.                              </div>
  95.                         </div>
  96.                      </li>
  97.                      {% endfor %}
  98.                      {% endif %}
  99.                   </ul>
  100.                </div>
  101.             </div>
  102.          </div>
  103.       </div>
  104.    </div>
  105. </section>