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

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