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