templates/front/actualite.html.twig line 1

Open in your IDE?
  1. {% extends 'front.html.twig' %}
  2. {% block title %}Actualités | CIMEF-INTERNATIONAL{% endblock %}
  3. {% block styleSheets %}
  4. <script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-element-bundle.min.js"></script>
  5. <style id='wp-emoji-styles-inline-css' type='text/css'>
  6. .row {
  7.     display: flex;            /* flexbox pour aligner les colonnes */
  8.     flex-wrap: wrap;          /* les colonnes passent à la ligne si nécessaire */
  9.     margin-right: -0.75rem;   /* -gutter/2 */
  10.     margin-left: -0.75rem;    /* -gutter/2 */
  11. }
  12. .events_pagination ul.pagination {
  13.     display: flex;
  14.     flex-wrap: wrap;
  15.     justify-content: center;
  16.     list-style: none;
  17.     margin: 0;
  18.     padding: 0;
  19. }
  20. .page-item.active .page-link {
  21.     background-color: #ff6600;
  22.     color: #fff;
  23. }
  24. .page-link {
  25.     margin: 10px;
  26.     color: #051a53;
  27.     background-color: #ededed;
  28.     border-radius: 5px;
  29.     padding: 10px;
  30.     /* margin: 0 3px; */
  31. }
  32. .text-lien{
  33.    color: #ff6600;
  34.    /* font-size: 16px; */
  35. }
  36. /* Small devices ≥576px */
  37. @media (min-width: 576px) {
  38.   .col-3 { flex: 0 0 100%; max-width: 100%; }
  39.   .col-sm-4 { flex: 0 0 100%; max-width: 100%; }
  40.   .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
  41.   .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  42. }
  43. /* Medium devices ≥768px */
  44. @media (min-width: 768px) {
  45.   .col-md-3 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  46.   .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  47.   .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  48.   .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  49. }
  50. /* Large devices ≥992px */
  51. @media (min-width: 992px) {
  52.   .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  53.   .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  54.   .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  55.   .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
  56. }
  57. .type1 .date-event {
  58.     transition: all 0.5s ease;
  59.     position: absolute;
  60.     bottom: 20px;
  61.     left: 30px;
  62.     z-index: 1;
  63.     font-size: 12px;
  64.     color: #fff;
  65.     font-weight: 700;
  66.     text-transform: uppercase;
  67.     text-align: center;
  68.     line-height: 1.3;
  69.     letter-spacing: 1px;
  70.     background-color: #ff6600 !important;
  71.     padding: 12px;
  72. }
  73. .icon_event{
  74.     color: #ff6600 !important;
  75. }
  76. .wrap_header_banner .overlay-slider {
  77.     position: absolute;
  78.     top: 0;
  79.     left: 0;
  80.     padding-top: 30px; 
  81.     width: 100%;
  82.     height: 100%;
  83.     background-color: rgba(0, 0, 0, 0.6392156863);
  84. }
  85. </style>
  86. {% endblock %}
  87. {% block body %}
  88. {% include 'section/navbar.html.twig' %}
  89. <div class="wrap_header_banner" style="height: 200px; background: url({{ asset('public/inter/table.jpeg')}});        
  90.         background-size: cover;
  91.         background-position: center;
  92.         background-repeat: no-repeat;">
  93.     <div class="overlay-slider">
  94.         <div class="row_site">
  95.             <div class="container_site">
  96.                 <div class="cover_color"></div>
  97.                 <div class="header_banner_el">
  98.                     <div class="header_breadcrumbs">
  99.                         <div id="breadcrumbs">
  100.                         <ul class="breadcrumb">
  101.                             <li><a href="{{ path('front.inter.index') }}" style="color: #fff!important;" title="accueil">Accueil</a></li>
  102.                             <li class="li_separator"><span class="separator"><i class="ovaicon-next" style="color: #fff!important;"></i></span></li>
  103.                             <li style="color: #fff!important;">Actualités</li>
  104.                         </ul>
  105.                         </div>
  106.                     </div>
  107.                     <h1 class="header_title" style="color: #fff!important;">Actualités </h1>
  108.                 </div>
  109.             </div>
  110.         </div>
  111.     </div>
  112. </div>
  113. <div class="container-event">
  114.    <div id="sidebar-active" class="content-event">
  115.       <!-- search form -->
  116.       <div class="archive_event col2">
  117.         {% if pagination != null %}
  118.         {% for actu in pagination %}
  119.          <div class="ovaev-content">
  120.             <div class="type6">
  121.                <div class="desc">
  122.                   <div class="event-thumbnail" style="background-image:url(https://demo.ovathemewp.com/gimont/wp-content/uploads/2023/06/event-01.jpg);">
  123.                      <a href="{{ path('front.detail.actu', {'slug': actu.slug}) }}" aria-label="Event Thumbnail">
  124.                          <img loading="lazy" width="600" height="400" src="{{ asset('public/uploads/images/actualites/' ~ actu.image) }}" 
  125.                          class="attachment-ovaev_event_thumbnail size-ovaev_event_thumbnail wp-post-image" alt="{{ actu.titre }}" decoding="async" 
  126.                          srcset="{{ asset('public/uploads/images/actualites/' ~ actu.image) }}" sizes="(max-width: 600px) 100vw, 600px" />        
  127.                      </a>
  128.                   </div>
  129.                   <div class="event_post">
  130.                      <div class="meta-event">
  131.                         <div class="date-event date-event-2">
  132.                            <i aria-hidden="true" class="fas fa-calendar-alt"></i>
  133.                            <span class="date" style="font-weight: normal;">
  134.                            {{ actu.createdat|format_datetime(locale='fr',pattern="EEEE dd MMMM YYYY") }}    
  135.                            </span>
  136.                         </div>
  137.                      </div>
  138.                      <h2 class="second_font event_title">
  139.                         <a href="{{ path('front.detail.actu', {'slug': actu.slug}) }}" title="{{ actu.titre }} }}">
  140.                             {% if actu.titre|length > 65 %}
  141.                                 {{ actu.titre|striptags|slice(0, 61) ~ '...' }}
  142.                             {% else %}
  143.                                 {{ actu.titre }}
  144.                             {% endif %}
  145.                         </a>
  146.                      </h2>
  147.                      <div class="meta-event meta-event-2">
  148.                          <a href="{{ path('front.detail.actu', {'slug': actu.slug}) }}">
  149.                         <div class="venue">
  150.                             <span class="number">En savoir plus</span>
  151.                             <i class="fa fa-long-arrow-right icon_event" aria-hidden="true"></i>
  152.                         </div>
  153.                         </a>
  154.                      </div>
  155.                   </div>
  156.                </div>
  157.             </div>
  158.          </div>
  159.          {% endfor %} 
  160.          {% else %}
  161.          
  162.         {% endif %}    
  163.       </div>
  164.         <div class="events_pagination justify-content-center mt-4">
  165.             {{ knp_pagination_render(pagination, '@KnpPaginator/Pagination/bootstrap_v5_pagination.html.twig') }}
  166.         </div>
  167.    </div>
  168.    
  169.    {% include 'section/aside.html.twig' %}
  170. </div>
  171.    {% include 'section/footer.html.twig' %}
  172. {% endblock %}