{% extends 'front.html.twig' %}
{% block title %}Actualités | CIMEF-INTERNATIONAL{% endblock %}
{% block styleSheets %}
<style id='wp-emoji-styles-inline-css' type='text/css'>
.row {
display: flex; /* flexbox pour aligner les colonnes */
flex-wrap: wrap; /* les colonnes passent à la ligne si nécessaire */
margin-right: -0.75rem; /* -gutter/2 */
margin-left: -0.75rem; /* -gutter/2 */
}
.events_pagination ul.pagination {
display: flex;
flex-wrap: wrap;
justify-content: center;
list-style: none;
margin: 0;
padding: 0;
}
.page-item.active .page-link {
background-color: #ff6600;
color: #fff;
}
.page-link {
margin: 10px;
color: #051a53;
background-color: #ededed;
border-radius: 5px;
padding: 10px;
/* margin: 0 3px; */
}
.text-lien{
color: #ff6600;
/* font-size: 16px; */
}
/* Small devices ≥576px */
@media (min-width: 576px) {
.col-3 { flex: 0 0 100%; max-width: 100%; }
.col-sm-4 { flex: 0 0 100%; max-width: 100%; }
.col-sm-6 { flex: 0 0 100%; max-width: 100%; }
.col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}
/* Medium devices ≥768px */
@media (min-width: 768px) {
.col-md-3 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; }
}
/* Large devices ≥992px */
@media (min-width: 992px) {
.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}
.type1 .date-event {
transition: all 0.5s ease;
position: absolute;
bottom: 20px;
left: 30px;
z-index: 1;
font-size: 12px;
color: #fff;
font-weight: 700;
text-transform: uppercase;
text-align: center;
line-height: 1.3;
letter-spacing: 1px;
background-color: #ff6600 !important;
padding: 12px;
}
.icon_event{
color: #ff6600 !important;
}
.wrap_header_banner .overlay-slider {
position: absolute;
top: 0;
left: 0;
padding-top: 30px;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6392156863);
}
</style>
{% endblock %}
{% block body %}
{% include 'section/navbar.html.twig' %}
<div class="wrap_header_banner" style="height: 200px; background: url({{ asset('public/inter/wp-content/uploads/2023/06/header-banner.jpg')}});">
<div class="overlay-slider">
<div class="row_site">
<div class="container_site">
<div class="cover_color"></div>
<div class="header_banner_el">
<div class="header_breadcrumbs">
<div id="breadcrumbs">
<ul class="breadcrumb">
<li><a href="{{ path('front.inter.index') }}" style="color: #fff!important;" title="accueil">Accueil</a></li>
<li class="li_separator"><span class="separator"><i class="ovaicon-next" style="color: #fff!important;"></i></span></li>
<li style="color: #fff!important;">Actualités</li>
</ul>
</div>
</div>
<h1 class="header_title" style="color: #fff!important;">Actualités </h1>
</div>
</div>
</div>
</div>
</div>
<div class="container-event">
<div id="sidebar-active" class="content-event">
<!-- search form -->
<div class="archive_event col2">
{% if pagination != null %}
{% for actu in pagination %}
<div class="ovaev-content">
<div class="type6">
<div class="desc">
<div class="event-thumbnail" style="background-image:url(https://demo.ovathemewp.com/gimont/wp-content/uploads/2023/06/event-01.jpg);">
<a href="{{ path('front.detail.actu', {'slug': actu.slug}) }}" aria-label="Event Thumbnail">
<img loading="lazy" width="600" height="400" src="{{ asset('public/uploads/images/actualites/' ~ actu.image) }}"
class="attachment-ovaev_event_thumbnail size-ovaev_event_thumbnail wp-post-image" alt="{{ actu.titre }}" decoding="async"
srcset="{{ asset('public/uploads/images/actualites/' ~ actu.image) }}" sizes="(max-width: 600px) 100vw, 600px" />
</a>
</div>
<div class="event_post">
<div class="meta-event">
<div class="date-event date-event-2">
<i aria-hidden="true" class="fas fa-calendar-alt"></i>
<span class="date" style="font-weight: normal;">
{{ actu.createdat|format_datetime(locale='fr',pattern="EEEE dd MMMM YYYY") }}
</span>
</div>
</div>
<h2 class="second_font event_title">
<a href="{{ path('front.detail.actu', {'slug': actu.slug}) }}" title="{{ actu.titre }} }}">
{% if actu.titre|length > 65 %}
{{ actu.titre|striptags|slice(0, 61) ~ '...' }}
{% else %}
{{ actu.titre }}
{% endif %}
</a>
</h2>
<div class="meta-event meta-event-2">
<a href="{{ path('front.detail.actu', {'slug': actu.slug}) }}">
<div class="venue">
<span class="number">En savoir plus</span>
<i class="fa fa-long-arrow-right icon_event" aria-hidden="true"></i>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
{% endfor %}
{% else %}
{% endif %}
</div>
<div class="events_pagination justify-content-center mt-4">
{{ knp_pagination_render(pagination, '@KnpPaginator/Pagination/bootstrap_v5_pagination.html.twig') }}
</div>
</div>
{% include 'section/aside.html.twig' %}
</div>
{% include 'section/footer.html.twig' %}
{% endblock %}