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