{# BASE LOAD #}
{% extends 'base.html.twig' %}
{# TITLE TOP PAGE #}
{% block title %}CPI | {% if app.request.locale == 'fr' %}{{actu.titreFr}}{% else %}{{actu.titreEn}}{% endif %}{% endblock %}
{# CSS #}
{% block stylesheet %}
<meta property="og:title" content="{{actu.titreFr}}">
<meta property="og:image" content="{{asset('uploads/actualites/'~actu.image)}}">
<meta property="og:image:secure_url" content="{{asset('uploads/actualites/'~actu.image)}}">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1440">
<meta property="og:image:height" content="1080">
<meta property="og:type" content="article">
<link rel="stylesheet" href="{{ asset('css/categorie_news.css')}}">
<link rel="stylesheet" href="{{ asset('css/cms.css')}}">
<link rel="stylesheet" href="{{asset('slick/slick.css')}}">
<link rel="stylesheet" href="{{asset('slick/slick-theme.css')}}">
{% endblock %}
{# BODY HOME PAGE #}
{% block body %}
{% if app.user %}
{% include 'cms.html.twig' %}
{% endif %}
<style>
@media screen and (max-width: 1200px){
.opensans_semibold{
font-size:18px!important;
}
}
</style>
<main>
<div class="accueil">
<div class="container">
<div class="row">
<div class="col-10 offset-1">
<div class="row" style="padding-top:120px">
<div class="menu py-5">
{% if actu.categoriesActualites != null %}
<p>{% if app.request.locale == 'fr' %}{{actu.categoriesActualites.titreFr}}{% else %}{{actu.categoriesActualites.titreEn}}{% endif %}</p>
{% else %}
<p>{% if app.request.locale == 'fr' %}Sans catégorie{% else %}No category{% endif %}</p>
{% endif %}
</div>
</div>
<div class="row">
<div class="col-lg-9" style="">
<h1 class="mb-4 opensans_bold_50" style="font-size:50px">{% if app.request.locale == 'fr' %}{{actu.titreFr}}{% else %}{{actu.titreEn}}{% endif %}</h1>
<hr>
<div class="my-3 opensans_semibold" style="color:#0000FF !important; font-size:26px ">{% if app.request.locale == 'fr' %}{{actu.introFr|raw}}{% else %}{{actu.introEn|raw}}{% endif %}</div>
<div class="row py-2 align-items-center">
<div class="col">
<div class="date">
<i class="fas fa-clock"></i>
<p>
{{actu.date|date('d')}}
{% if app.request.locale == 'fr' %}
{% if actu.date|date('m') == '01' %}JANVIER{% endif %}
{% if actu.date|date('m') == '02' %}FEVRIER{% endif %}
{% if actu.date|date('m') == '03' %}MARS{% endif %}
{% if actu.date|date('m') == '04' %}AVRIL{% endif %}
{% if actu.date|date('m') == '05' %}MAI{% endif %}
{% if actu.date|date('m') == '06' %}JUIN{% endif %}
{% if actu.date|date('m') == '07' %}JUILLET{% endif %}
{% if actu.date|date('m') == '08' %}AOUT{% endif %}
{% if actu.date|date('m') == '09' %}SEPTEMBRE{% endif %}
{% if actu.date|date('m') == '10' %}OCTOBRE{% endif %}
{% if actu.date|date('m') == '11' %}NOVEMBRE{% endif %}
{% if actu.date|date('m') == '12' %}DECEMBRE{% endif %}
{% else %}
{% if actu.date|date('m') == '01' %}JANUARY{% endif %}
{% if actu.date|date('m') == '02' %}FEBRUARY{% endif %}
{% if actu.date|date('m') == '03' %}MARCH{% endif %}
{% if actu.date|date('m') == '04' %}APRIL{% endif %}
{% if actu.date|date('m') == '05' %}MAY{% endif %}
{% if actu.date|date('m') == '06' %}JUNE{% endif %}
{% if actu.date|date('m') == '07' %}JULY{% endif %}
{% if actu.date|date('m') == '08' %}AUGUST{% endif %}
{% if actu.date|date('m') == '09' %}SEPTEMBER{% endif %}
{% if actu.date|date('m') == '10' %}OCTOBER{% endif %}
{% if actu.date|date('m') == '11' %}NOVEMBER{% endif %}
{% if actu.date|date('m') == '12' %}DECEMBER{% endif %}
{% endif %}
{{actu.date|date('Y')}}
</p>
</div>
</div>
<div class="col">
<div class="d-flex justify-content-end share-container">
<a href="https://www.linkedin.com/shareArticle?url={{ app.request.uri }}" target="_blank"><img src="{{ asset('img/categorie_news/linkedIn.png') }}" alt="LinkedIn"></a>
<a href="mailto:?subject=Votre Sujet&body={{ app.request.uri }}"><img src="{{asset('img/categorie_news/mail.png')}}" alt="insta" style="margin-left:5px"></a>
</div>
</div>
</div>
<div class="row">
<div class="col">
<img class="w-100" src="
{% if actu.image == 'ok' %}
{{asset('uploads/actualites/cpi-actu-defaut.jpg')}}
{% else %}
{{asset('uploads/actualites/'~actu.image)}}
{% endif %}
" style="border-radius:30px;margin-top:20px;" alt="">
</div>
<p class="my-4 opensans_light_18" >{% if app.request.locale == 'fr' %}{{actu.texteFr|raw}}{% else %}{{actu.texteEn|raw}}{% endif %}</p>
<div class="traitBleuNextActu col-12"></div>
<!-- AJOUT DU CMS -->
<main>
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ GESTION DES SECTION ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% set i = 0 %}
{% for section in sections %}
{% set i = i +1 %}
<section id="section" style="
{% if i > 1 %}
margin-top:-54px
{% endif %}
">
<style>
.accordion-body li{
color:white;
}
.accordion-body li p{
margin-bottom:0
}
</style>
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% set y = 0 %}
{% for res in section.lignes %}
{% set y = y+1 %}
<div id="{% if i == 1 %}sectionMain{% else %}sectionReste{% endif %}" data-aos="fade-up" data-aos-duration="1000" style="
{% if i > 1 %}
padding-top:112px; padding-bottom:112px;
{% else %}
{% if y > 1 %}
padding-top:0; padding-bottom:112px;
{% endif %}
{% endif %}">
<div class="container text-light pb-3">
<div class="row pt-5 justify-content-center justify-content-md-start">
{% for res2 in res.blocs %}
<div id="bloc{{res2.id}}" data-aos="fade-up" data-aos-duration="1000" class="col-lg-{{res2.type}}" {% if app.user %} style="border:dashed 1px grey; border-radius:10px; margin-bottom:10px"{% endif %}>
{% if app.user %}
<a href="{{path('app_deleteLigne',{'id':res.id,'pages':actu.id} )}}" onclick="return confirm('Êtes-vous sûr ?')">
<div class="d-flex justify-content-end">
<div class="d-flex justify-content-center align-items-center cubeIcon2">
<i class="fa-solid fa-trash"></i>
</div>
</div>
</a>
{% endif %}
{% if res2.contenuses is not empty %}
{% if res2.contenuses.0.typesContenus.id != 8 %}
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ AFFCHER CONTENUS ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ TEXTE ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 1 %}
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
{% if res2.contenuses.0.document is not empty %}
<a href="{{res2.contenuses.0.document}}" target="_blank" style="text-decoration:none;">
<button type="button btn-modal" class="justify-content-center align-items-center text-center"
style="
background-color:{{res2.contenuses.0.background}}!important;
border:solid 3px {{res2.contenuses.0.couleur1}}!important;
border-radius: 30px!important;
color: rgb(0, 206, 255);
font-weight: bold;
background-color: #0c24b3;
cursor: pointer;
padding-top: 12px;
padding-left: 50px;
padding-right: 50px;
margin-top:20px
">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</button>
</a>
{% endif %}
{% endif %}
{% if i == 1 %}
{% if loop.first %}
<div class="traitBlanc"></div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN TEXTE ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ IMAGE ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
{% if res2.contenuses.0.typesContenus.id == 2 %}
<div class="col-12 d-flex d-lg-block justify-content-center mt-5 mt-lg-0">
<img data-aos="fade-up" data-aos-duration="1000" class="img-fluid imgRadius" src="{{asset('uploads/contenus/'~res2.contenuses.0.image)}}" alt="{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}">
</div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN IMAGE ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ VIDEOS ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
{% if res2.contenuses.0.typesContenus.id == 3 %}
<div data-aos="fade-up" data-aos-duration="1000" class="col-12 justify-content-center">
<div class="image">
<iframe class="img-fluid" style="height: 165px !important; width: 100% !important; border-radius: 15px!important;" src="{{res2.contenuses.0.video}}" title="YouTube video {% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>
<div class="texte">
<p style="font-weight:bold">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}
</p>
</div>
</div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN VIDEO ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ BOX PICTO ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
{% if res2.contenuses.0.typesContenus.id == 4 %}
<div data-aos="fade-up" data-aos-duration="1000" class="carte">
<div class="image d-flex justify-content-center">
<img src="{{asset('uploads/contenus/'~res2.contenuses.0.image)}}" alt="{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}">
</div>
<div class="corps-carte">
<div class="tete-carte" style="background-color:{{res2.contenuses.0.background}}">
<p>{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</p>
</div>
<div class="texte-carte" style="min-height:204px; background-color:{{res2.contenuses.0.couleur1}}">
<div class="texte-1">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
</div>
</div>
</div>
</div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN BOX PICTO ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ AVANTAGES ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
{% if res2.contenuses.0.typesContenus.id == 7 %}
<div data-aos="fade-up" data-aos-duration="1000" class="avantages">
<div class="carteA bg-bleu" style="background-color:{{res2.contenuses.0.background}}">
<div class="tete-carte d-flex flex-column flex-md-row">
{% if res2.contenuses.0.image != '' %}
<img class="img-fluid" src="{{asset('uploads/contenus/'~res2.contenuses.0.image)}}" alt="">
{% endif %}
<span style="font-weight:bold">{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</span>
</div>
<div class="texte-carte">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
</div>
</div>
</div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN AVANTAGES ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ACCORDEON ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 8 %}
<div data-aos="fade-up" data-aos-duration="1000" class="texteDeroulant text-light">
<div class="accordion" id="accordionExample">
{% set ac = 0 %}
{% for res3 in res2.contenuses.0.accordeons %}
{% set ac = ac+1 %}
<div class="accordion-item" style="background-color:{{res3.background}}!important;">
<h2 class="accordion-header" id="heading{{res3.id}}">
<button class="button1-accordion accordion-button" style="background-color:{{res3.background}}!important;" type="button" data-bs-toggle="collapse" data-bs-target="#collapse{{res3.id}}" aria-expanded="true" aria-controls="collapse{{res3.id}}">
<i class="fa {{ ac == 1 ? 'fa-plus-circle' : 'fa-plus-circle' }}" style="margin-right:10px;font: normal!important;" aria-hidden="true"></i>{% if app.request.locale == 'en' %}{{res3.TitreEn|raw}}{% else %}{{res3.TitreFr|raw}}{% endif %}
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse {% if ac == 1 %}{% endif %}" aria-labelledby="heading{{res3.id}}" data-bs-parent="#accordionExample">
<div class="accordion-body">
<div class="accordion-hr"></div>
{% if app.request.locale == 'en' %}{{res3.TexteEn|raw}}{% else %}{{res3.TexteFr|raw}}{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
<script>
$(document).ready(function () {
$('.accordion-button').click(function () {
$(this).find('i').toggleClass('fa-plus-circle fa-minus-circle');
$('.accordion-button').not(this).find('i').removeClass('fa-minus-circle').addClass('fa-plus-circle');
});
});
</script>
{% if app.user %}
<br>
<div class="d-flex justify-content-center">
<a href="{{path('app_accordeons_index',{'contenu':res2.contenuses.0.id})}}"><button type="button" style="margin-bottom:5px" class="btn btn-info" >Gérer les accordéons</button></a>
</div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN ACCORDEON ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ BOX PICTO CAROUSEL ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 10 %}
<div data-aos="fade-up" data-aos-duration="1000" class="container d-flex paddingPerso2" >
<div class="slider-demo-valeur">
{% for carou in res2.contenuses.0.carousels %}
<div data-aos="fade-up" data-aos-duration="1000" class="carte ">
<div class="col-12">
<div class="image d-flex justify-content-center">
<img src="{{asset('uploads/carousels/'~carou.image)}}" alt="{% if app.request.locale == 'en' %}{{carou.titreEn}}{% else %}{{carou.titreFr}}{% endif %}">
</div>
<div class="corps-carte">
<div class="tete-carte">
<p>{% if app.request.locale == 'en' %}{{carou.titreEn|raw}}{% else %}{{carou.titreFr|raw}}{% endif %} </p>
</div>
<div class="texte-carte">
<div class="texte-1">
{% if app.request.locale == 'en' %}{{carou.texteEn|raw}}{% else %}{{carou.texteFr|raw}}{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% if app.user %}
{% if res2.contenuses.0.typesContenus.id == 10 %}
<br>
<div data-aos="fade-up" data-aos-duration="1000" class="d-flex justify-content-center">
<a href="{{path('app_carousels_index',{'contenu':res2.contenuses.0.id})}}"><button type="button" style="margin-bottom:5px" class="btn btn-info" >Gérer les carousels</button></a>
</div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN BOXPICTO CAROUSEL ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ BOX PICTO CAROUSEL ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 11 %}
<div class="row justify-content-center justify-content-md-start" >
<div class="col-12">
<div class="row pb-4">
<div class="titre ">
<p class="opensans_bold_red_15">TEMOIGNAGES</p>
</div>
</div>
</div>
</div>
{% set tem = -1 %}
<div class="row text-light" >
<div class="col-12">
<div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators">
{% for res in temoignages %}
{% set tem = tem + 1 %}
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="{{tem}}" {% if tem == 0 %}class="active" aria-current="true"{% endif %} aria-label="Slide {{tem}}"></button>
{% endfor %}
</div>
{% set tem2 = -1 %}
<div class="carousel-inner">
{% for res in temoignages %}
{% set tem2 = tem2 + 1 %}
<div class="carousel-item {% if tem2 == 0 %}active{% endif %}">
<div class="row text-light">
<h2 class="">{{res.titre}}</hé>
</div>
<br>
<p class="citation ">{{res.texte}}</p>
<br>
<p style="color:red; font-weight: bold; ">{{res.auteur}}</p>
</div>
{% endfor %}
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>
</div>
{% if app.user %}
{% if res2.contenuses.0.typesContenus.id == 11 %}
<br>
<div class="d-flex justify-content-center">
<a href="{{path('app_temoignages_index')}}"><button type="button" style="margin-bottom:5px" class="btn btn-info" >Gérer les témoignages</button></a>
</div>
{% endif %}
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN BOX PICTO CAROUSEL ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ CAROUSEL ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 9 %}
<div class="formation">
<div class="container-carousel-true">
<div class="slider-demo-galerie " style="padding-bottom:120px;">
{% for carou in res2.contenuses.0.carousels %}
<div class="carteFormation" style="">
<img src="{{asset('uploads/carousels/'~carou.image)}}" alt="{% if app.request.locale == 'en' %}{{carou.titreEn}}{% else %}{{carou.titreFr}}{% endif %}">
{% if carou.titreEn != '' or carou.titreFr != '' %}
<div class="image-overlay1">
<p class="sous-title-manufa">{% if app.request.locale == 'en' %}{{carou.titreEn|raw}}{% else %}{{carou.titreFr|raw}}{% endif %}</p>
</div>
{% endif %}
{% if carou.texteEn != '' or carou.texteFr != '' %}
{% if app.request.locale == 'en' %}{{carou.texteEn|raw}}{% else %}{{carou.texteFr|raw}}{% endif %}
{% endif %}
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
{% if app.user %}
{% if res2.contenuses.0.typesContenus.id == 9 %}
<br>
<div class="d-flex justify-content-center">
<a href="{{path('app_carousels_index',{'contenu':res2.contenuses.0.id})}}"><button type="button" style="margin-bottom:5px" class="btn btn-info" >Gérer les carousels</button></a>
</div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN CAROUSEL ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ CHIFFRES CLES ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 5 %}
<div class="cartes-3" style="background:{{res2.contenuses.0.background}}; border-radius: 30px;">
<div class="carte">
{% if res2.contenuses.0.image is not empty %}
<img src="{{asset('uploads/contenus/'~res2.contenuses.0.image)}}" alt="" style="width:100%;height:100%;border-radius:25px;">
{% else %}
<div class="titre">
<p>{% if app.request.locale == 'en' %}{{res2.contenuses.0.titreEn|raw}}{% else %}{{res2.contenuses.0.titreFr|raw}}{% endif %} </p>
</div>
<div class="texte">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.texteEn|raw}}{% else %}{{res2.contenuses.0.texteFr|raw}}{% endif %}
</div>
{% endif %}
</div>
</div>
{% endif %}
<!-- ///\\\ ///\\\ FIN CHIFFRES CLES ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ CHIFFRES CLES 2 ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 6 %}
<div class="accueil4">
<div {% if res2.contenuses.0.titreFr|length > 4 %}id="soixante-dix"{% endif %} class="carte">
<div class="tete-carte" style="background-color:{{res2.contenuses.0.background}}">
<div class="chiffre justify-content-center" style="background-color:{{res2.contenuses.0.background}}">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.titreEn|raw}}{% else %}{{res2.contenuses.0.titreFr|raw}}{% endif %}
</div>
</div>
<div class="texte">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.texteEn|raw}}{% else %}{{res2.contenuses.0.texteFr|raw}}{% endif %}
</div>
</div>
</div>
{% endif %}
<!-- ///\\\ ///\\\ FIN CHIFFRES CLES 2 ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ BOX PICTO + LIEN ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 13 %}
<div data-aos="fade-up" data-aos-duration="1000" class="carte">
<div class="image d-flex justify-content-center">
<img src="{{asset('uploads/contenus/'~res2.contenuses.0.image)}}" alt="{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}">
</div>
<div class="corps-carte">
<div class="tete-carte" style="background-color:{{res2.contenuses.0.background}}">
<p>{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</p>
</div>
<div class="texte-carte" style="min-height:204px; background-color:{{res2.contenuses.0.couleur1}}">
<div class="texte-1">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
</div>
</div>
/div>
</div>
{% endif %}
<!-- ///\\\ ///\\\ FIN BOX PICTO + LIEN ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ BOUTTON ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 12 %}
<a href="{{res2.contenuses.0.document}}" target="_blank" style="text-decoration:none;">
<button type="button btn-modal" class=""
style="
background-color:{{res2.contenuses.0.background}};
border:solid 3px {{res2.contenuses.0.couleur1}};
border-radius: 30px!important;
padding-right: 2%!important;
padding-left: 2%!important;
padding-top: 3%!important;
width: 400px;
float:right;
">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}</button>
</a>
{% endif %}
<!-- ///\\\ ///\\\ FIN BOUTTON ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ BOUTON MODIFIER CMS ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
{% if res2.contenuses.0.typesContenus.id != 8 and res2.contenuses.0.typesContenus.id != 10 and res2.contenuses.0.typesContenus.id != 9 %}
{% if app.user %}
<div class="d-flex justify-content-center mb-3">
<a href="{{path('app_editContent',{'id':res2.contenuses.0.id,'type':res2.contenuses.0.typesContenus.libelle})}}">
<div class="d-flex justify-content-center align-items-center cubeIcon">
<i class="fa-solid fa-pen"></i>
</div>
</a>
<a href="{{path('app_deleteContent',{'id':res2.contenuses.0.id})}}" onclick="return confirm('Êtes-vous sûr ?')">
<div class="d-flex justify-content-center align-items-center cubeIcon2">
<i class="fa-solid fa-trash"></i>
</div>
</a>
</div>
{% endif %}
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ MODAL CONTENUS ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if app.user %}
{% if res2.contenuses is empty %}
<button type="button" style="margin-bottom:5px" class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#addContenu{{res2.id}}" >Ajouter un contenu</button>
{% endif %}
<!-- ///\\\ ///\\\ MODAL CONTENUS ///\\\ ///\\\ -->
<div class="modal fade" id="addContenu{{res2.id}}" tabindex="-1" aria-labelledby="addContenu" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
<div class="container-modal d-flex flex-column">
<h2>Ajouter un contenu</h2>
<p>Les «blocs» peuvent contenir chacun un «Contenu» dédiés à du texte, une image, un lien youtube, …</p>
</div>
<div class="container-contenu d-flex flex-wrap justify-content-start">
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'texte'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-textes.svg')}}" alt="">
</div>
<p class="colonneText text-center">Texte</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'image'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-images.svg')}}" alt="">
</div>
<p class="colonneText text-center">Image</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'video'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-videos.svg')}}" alt="">
</div>
<p class="colonneText text-center">Vidéo</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'temoignage'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-temoignage.svg')}}" alt="">
</div>
<p class="colonneText text-center">Témoignage</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'button'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-btn.svg')}}" alt="" style="width:57px">
</div>
<p class="colonneText text-center">Bouton</p>
</div>
</a>
</div>
<div class="modal-submit d-flex justify-content-end align-items-end">
<button type="submit" class=" btnAdd btnAdd2">Ajouter</button>
</div>
</div>
</div>
</div>
</div>
<!-- ///\\\ ///\\\ FIN MODAL CONTENUS ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ MODAL CONTENUS 2 ///\\\ ///\\\ -->
<div class="modal fade" id="addContenu{{res2.id}}" tabindex="-1" aria-labelledby="addContenu" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
<div class="container-modal d-flex flex-column">
<h2>Ajouter un contenu</h2>
<p>Les «blocs» sont des éléments de « Section » répartis en colonnes contenant chacun un «Contenu» dédiés à du texte, une image ou un lien youtube.</p>
</div>
<div class="container-grid-choix d-flex flex-wrap justify-content-around ">
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'texte'})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-center align-items-center">
<div class="simu-col simu-col-12 d-flex justify-content-center align-items-center">
<p>12</p>
</div>
</div>
<p class="colonneText text-center">Texte</p>
</div>
</a>
<a href="{{path('app_addBloc',{'ligne':res.id,'type':66})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-around align-items-center">
<div class="simu-col simu-col-6 d-flex justify-content-center align-items-center">
<p>6</p>
</div>
<div class="simu-col simu-col-6 d-flex justify-content-center align-items-center">
<p>6</p>
</div>
</div>
<p class="colonneText text-center">3 colonne</p>
</div>
</a>
<a href="{{path('app_addBloc',{'ligne':res.id,'type':444})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-around align-items-center">
<div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
<p>4</p>
</div>
<div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
<p>4</p>
</div>
<div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
<p>4</p>
</div>
</div>
<p class="colonneText text-center">2 colonne</p>
</div>
</a>
<a href="{{path('app_addBloc',{'ligne':res.id,'type':84})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-around align-items-center">
<div class="simu-col simu-col-8 d-flex justify-content-center align-items-center">
<p>8</p>
</div>
<div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
<p>4</p>
</div>
</div>
<p class="colonneText text-center">2 colonne</p>
</div>
</a>
<a href="{{path('app_addBloc',{'ligne':res.id,'type':48})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-around align-items-center">
<div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
<p>4</p>
</div>
<div class="simu-col simu-col-8 d-flex justify-content-center align-items-center">
<p>8</p>
</div>
</div>
<p class="colonneText text-center">2 colonne</p>
</div>
</a>
</div>
<div class="modal-submit d-flex justify-content-end align-items-end">
<button type="submit" class=" btnAdd btnAdd2">Ajouter</button>
</div>
</div>
</div>
</div>
</div>
{% endif %}
<!-- ///\\\ ///\\\ FIN MODAL CONTENUS 2 ///\\\ ///\\\ -->
</div>
{% endfor %}
</div>
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ MODAL BLOCK ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if app.user %}
<div style="d-flex justify-content-center padding-top:20px">
<button type="button" class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#addBloc{{res.id}}" >Ajouter un bloc</button>
<div class="modal fade" id="addBloc{{res.id}}" tabindex="-1" aria-labelledby="addBloc" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
<div class="container-modal d-flex flex-column">
<h2>Ajouter un bloc</h2>
<p>Les «blocs» sont des éléments de « Section » répartis en colonnes contenant chacun un «Contenu» dédiés à du texte, une image ou un lien youtube.</p>
</div>
<div class="container-grid-choix d-flex flex-wrap justify-content-around ">
<a href="{{path('app_addBloc',{'ligne':res.id,'type':12})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-center align-items-center">
<div class="simu-col simu-col-12 d-flex justify-content-center align-items-center">
<p>12</p>
</div>
</div>
<p class="colonneText text-center">1 colonne</p>
</div>
</a>
<a href="{{path('app_addBloc',{'ligne':res.id,'type':66})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-around align-items-center">
<div class="simu-col simu-col-6 d-flex justify-content-center align-items-center">
<p>6</p>
</div>
<div class="simu-col simu-col-6 d-flex justify-content-center align-items-center">
<p>6</p>
</div>
</div>
<p class="colonneText text-center">2 colonnes</p>
</div>
</a>
</div>
<div class="modal-submit d-flex justify-content-end align-items-end">
<button type="submit" class=" btnAdd btnAdd2">Ajouter</button>
</div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endfor %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ MODAL SECTION ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ UPDATE SECTION ///\\\ ///\\\ -->
{% if app.user %}
<div class="d-flex justify-content-center mb-3">
<a href="{{path('app_updateSectionActu',{'id':section.id,'pages':actu.id})}}" style="color:white; text-decoration:none">
<div class="d-flex justify-content-center align-items-center cubeIcon" style="width:200px">
<i class="fa-solid fa-pen" style="padding-right:10px"></i> Modifier la section
</div>
</a>
<a href="{{path('app_deleteSection',{'id':section.id,'pages':actu.id})}}" onclick="return confirm('Êtes-vous sûr ?')" style="color:white; text-decoration:none">
<div class="d-flex justify-content-center align-items-center cubeIcon2" style="width:200px">
<i class="fa-solid fa-trash" style="padding-right:10px"></i> Supprimer la section
</div>
</a>
</div>
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ FIN SECTION + FORME BLEU SOUS SECTION DANS LE DOM ///\\\ ///\\\ -->
</section>
<div class="container">
<div class="formeBleu">
<div class="row justify-content-center d-flex">
{% if section.rond != '' %}
<img src="{{asset('uploads/sections/'~section.rond)}}" class="img-fluid d-none d-lg-block">
{% endif %}
</div>
</div>
</div>
{% endfor %}
<!-- ///\\\ ///\\\ AJOUT SECTION DANS LE DOM ///\\\ ///\\\ -->
{% if app.user %}
<div style="{% if sections|length > 0 %}padding-top:20px{% else %}padding-top:20px{% endif %}" align="center">
<!-- Button trigger modal -->
<hr style="border-top:dashed #000;">
<a data-bs-toggle="modal" data-bs-target="#addSection"
style="
font-size: 25px;
font-weight: bold;
color: #bfbfbf; cursor:pointer"
>
+ Ajouter une section</a>
<hr style="border-top:dashed #000;">
</div>
<script>
function saveColor(value) {
$('#couleurSection').val(value);
}
</script>
<!-- ///\\\ ///\\\ MODAL AJOUT SECTION ///\\\ ///\\\ -->
<div class="modal fade" id="addSection" tabindex="-1" aria-labelledby="addSection" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
<div class="container-modal d-flex flex-column">
<h2>Ajouter une section</h2>
<p>Les pages dont composées «Sections» contenant chacune des « Blocs » de « Contenus » répartis en colonnes</p>
</div>
<form action="{{path('app_addSection')}}" method="post" enctype="multipart/form-data">
<input type="hidden" name="actualite" value="{{actu.id}}">
<div class="container-contenus-modal">
<h3>Ordre affichage</h3>
<input type="number" name="ordreSection" id="ordreSection" value="{{ordreMax}}">
</div>
<div class="container-contenus-modal">
<input type="hidden" name="couleurSection" id="couleurSection" value="#fff">
</div>
<div class="modal-submit d-flex justify-content-center">
<button type="submit" class=" btnAdd">Ajouter</button>
</div>
</form>
</div>
</div>
</div>
</div>
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ SCRIPT PCONTENT ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ SCRIPT ACCORDEON ///\\\ ///\\\ -->
<script>
let accordionHeaders = document.querySelectorAll('.accordion-header');
accordionHeaders.forEach(header => {
let button = header.querySelector('.texteDeroulant button');
button.addEventListener('click', function () {
let parentAccordion = header.closest('.accordion');
let buttons = parentAccordion.querySelectorAll('.texteDeroulant button');
let content = header.nextElementSibling; // The content section to show/hide
// Check if the content section is already open
if (content.classList.contains('show')) {
// Close the content section
content.classList.remove('show');
content.classList.add('collapse');
} else {
// Close all other open sections (if any) and open this content section
buttons.forEach(btn => {
let contentToClose = btn.parentElement.nextElementSibling;
if (contentToClose.classList.contains('show')) {
contentToClose.classList.remove('show');
contentToClose.classList.add('collapse');
}
});
// Open the content section
content.classList.remove('collapse');
content.classList.add('show');
}
// Toggle the button color
if (button.style.color !== 'red') {
buttons.forEach(btn => {
btn.style.color = 'white';
});
button.style.color = 'red';
} else {
button.style.color = 'white';
}
});
});
let buttonsForIcon = document.querySelectorAll('.texteDeroulant button');
let icons = document.querySelectorAll('.jsIcon');
let previousIcon = null;
buttonsForIcon.forEach((button, index) => {
let icon = icons[index];
button.addEventListener('click', function () {
if (previousIcon !== null && previousIcon !== icon) {
// Restore the previous icon to fa-plus-circle
previousIcon.classList.remove('fa-minus-circle');
previousIcon.classList.add('fa-plus-circle');
}
if (icon.classList.contains('fa-plus-circle')) {
icon.classList.remove('fa-plus-circle');
icon.classList.add('fa-minus-circle');
} else {
icon.classList.remove('fa-minus-circle');
icon.classList.add('fa-plus-circle');
}
previousIcon = icon;
});
});
</script>
</section>
</main>
<script type="text/javascript">
$(document).ready(function(){
$('.slider-demo-valeur').slick({
arrows: true,
infinite:true,
prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
slidesToShow:4,
slidesToScroll:4,
responsive:[{
breakpoint:1400,
settings:{
slidesToShow:3,
slidesToScroll:3,
}
},{
breakpoint:1200,
settings:{
slidesToShow:2,
slidesToScroll:2,
}
},
{
breakpoint:769,
settings:{
slidesToShow:1,
slidesToScroll:1,
}
}],
});
});
</script>
<script>
function changeLanguage(selectedButton, modalId) {
let modal = document.getElementById(modalId);
let buttons = modal.querySelectorAll(".button-langue");
let inputField = modal.querySelector(".sectionTitle");
buttons.forEach((button) => {
if (button === selectedButton) {
button.classList.add("button-langue-active");
button.classList.remove("button-langue-noactive");
// Set the input field value based on the active language
switch (button.textContent) {
case "FR":
inputField.value = "Titre de la section FR";
break;
case "EN":
inputField.value = "Section Title EN";
break;
case "DE":
inputField.value = "Abschnittstitel DE";
break;
// Add cases for other languages if needed
default:
inputField.value = "";
}
} else {
button.classList.remove("button-langue-active");
button.classList.add("button-langue-noactive");
}
});
}
function changeColor(selectedColorButton, modalId) {
let modal = document.getElementById(modalId);
const colorButtons = modal.querySelectorAll(".button-couleur");
colorButtons.forEach((colorButton) => {
if (colorButton === selectedColorButton) {
colorButton.classList.add("button-color-active");
colorButton.classList.remove("button-color-noactive");
} else {
colorButton.classList.remove("button-color-active");
colorButton.classList.add("button-color-noactive");
}
});
}
function clearDefaultText(inputField) {
// Clear the default value if it matches the default text
if (inputField.value === inputField.defaultValue) {
inputField.value = '';
}
}
function restoreDefaultText(inputField) {
// Restore the default value if the input is empty
if (inputField.value === '') {
inputField.value = inputField.defaultValue;
}
}
</script>
<!-- ///\\\ ///\\\ IMPORT ///\\\ ///\\\ -->
<script src="https://code.jquery.com/jquery-3.7.0.js" integrity="sha256-JlqSTELeR4TLqP0OG9dxM7yDPqX1ox/HfgiSLBj8+kM=" crossorigin="anonymous"></script>
<script src="{{asset('js/jquery-latest.min.js')}}"></script>
<script src="{{asset('slick/slick.js')}}"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.slider-demo-galerie').slick({
arrows: true,
infinite:true,
autoplay: true, // Ajout de l'option autoplay
autoplaySpeed: 4000, // Durée de chaque diapositive en millisecondes
slidesToShow:4,
slidesToScroll:4,
prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
responsive:[{
breakpoint:1400,
settings: {
slidesToShow:3,
slidesToScroll:3,
}
},{
breakpoint:1200,
settings:{
slidesToShow:2,
slidesToScroll:2,
}
},
{
breakpoint:769,
settings:{
slidesToShow:1,
slidesToScroll:1,
}
}],
});
$('.slider-demo-actu').slick({
arrows: true,
infinite: true,
prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
slidesToShow: 4,
slidesToScroll: 4,
responsive:[{
breakpoint:1400,
settings:{
slidesToShow:3,
slidesToScroll:3,
}
},{
breakpoint:1200,
settings:{
slidesToShow:2,
slidesToScroll:2,
}
},
{
breakpoint:769,
settings:{
slidesToShow:1,
slidesToScroll:1,
}
}],
});
});
</script>
<!-- FIN CMS -->
</div>
<section class="nextandprevsection-responsive">
<div class="container" style="margin-bottom:40px">
<div class="row">
<div class="col-xl-1"></div>
<div class="col-xl-10 col-12">
<div class="col-12 container-next-prev d-flex justify-content-between">
<div class="col-6">
{% if previousActu %}
{% if app.request.locale == 'fr' %}
{% set titreNew = previousActu.titreFr|replace({' ':'_'}) %}
{% else %}
{% set titreNew = previousActu.titreEn|replace({' ':'_'}) %}
{% endif %}
<a class="d-flex" href="{{ path('actualitesD', { 'id': previousActu.id, 'titre':titreNew,'locale':app.request.locale }) }}">
<img class="img1" src="{{asset('uploads/actualites/'~previousActu.image)}}" alt="">
<div class="d-flex flex-column text-next-prev text-prev">
<p>{% if app.request.locale == 'fr' %}ARTICLE PRÉCÉDENT{% else %}PREVIOUS ARTICLE{% endif %}</p>
<p>{% if app.request.locale == 'fr' %}{{ previousActu.titreFr }}{% else %}{{ previousActu.titreEn }}{% endif %}</p>
</div>
</a>
{% endif %}
</div>
<div class="col-6">
{% if nextActu %}
{% if app.request.locale == 'fr' %}
{% set titreNew = nextActu.titreFr|replace({' ':'_'}) %}
{% else %}
{% set titreNew = nextActu.titreEn|replace({' ':'_'}) %}
{% endif %}
<a class="d-flex flex-row-reverse" href="{{ path('actualitesD', { 'id': nextActu.id, 'titre':titreNew,'locale':app.request.locale }) }}">
<img class="img2" src="{{asset('uploads/actualites/'~nextActu.image)}}" alt="">
<div class="d-flex flex-column text-next-prev text-next text-end">
<p>{% if app.request.locale == 'fr' %}ARTICLE SUIVANT{% else %}NEXT ARTICLE{% endif %}</p>
<p>{% if app.request.locale == 'fr' %}{{ nextActu.titreFr }}{% else %}{{ nextActu.titreEn }}{% endif %}</p>
</div>
</a>
{% endif %}
</div>
</div>
</div>
</div>
<div class="col-xl-1"></div>
</div>
</section>
<div class="row">
<div class="row d-flex justify-content-between mb-5" >
<div class="pages" style="display:none">
<div class="col-6">
<a href="#">
<div class="page gauche">
<img class="img-fluid" src="img/categorie_news/preced.png" alt="">
<div class="texte">
<div class="texte-1">
<p>{% if app.request.locale == 'fr' %}ARTICLE PRÉCÉDENT{% else %}PREVIOUS ARTICLE{% endif %}</p>
</div>
<div class="texte-2">
<p>Lorem ipsum dolor sit amet consectetur.</p>
</div>
</div>
</div>
</a>
</div>
<div class="col-6">
<a href="#">
<div class="page droite">
<div class="texte">
<div class="texte-1">
<p>{% if app.request.locale == 'fr' %}ARTICLE SUIVANT{% else %}NEXT ARTICLE{% endif %}</p>
</div>
<div class="texte-2">
<p>Lorem ipsum dolor sit amet consectetur.</p>
</div>
</div>
<img class="img-fluid" src="img/categorie_news/suivant.png" alt="">
</div>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-3" style="">
<div class="lesPlusLus" style="margin:0">
<div class="titre_traitBleu">
<div class="titre" style="margin-top: 15px;">
<p>{% if app.request.locale == 'fr' %}LES PLUS LUS{% else %}MOST READ{% endif %}</p>
</div>
<div class="trait-bleu">
<img class="img-fluid" src="/img/recrutement/Ligne 80.svg" alt="">
</div>
</div>
{% set i =0 %}
{% for res in vues %}
{% set i= i+1 %}
{% set titreNew = res.titreFr|replace({' ':'_'}) %}
<a href="{{path('actualitesD',{'id':res.id, 'titre':titreNew,'locale':app.request.locale})}}">
<div class="carte">
<div class="classement">
{{i}}
</div>
<div class="titre">
<p>{% if app.request.locale == 'fr' %}{{res.titreFr|slice(0, 75)}} ...{% else %}{{res.titreEn|slice(0, 40)}} ...{% endif %}</p>
</div>
</div>
</a>
<hr>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<section class="nextandprevsection">
<div class="container" style="margin-bottom:40px">
<div class="row">
<div class="col-xl-1"></div>
<div class="col-xl-10 col-12">
<div class="col-12 container-next-prev d-flex justify-content-between">
<div class="col-6">
{% if previousActu %}
{% if app.request.locale == 'fr' %}
{% set titreNew = previousActu.titreFr|replace({' ':'_'}) %}
{% else %}
{% set titreNew = previousActu.titreEn|replace({' ':'_'}) %}
{% endif %}
<a class="d-flex" href="{{ path('actualitesD', { 'id': previousActu.id, 'titre':titreNew,'locale':app.request.locale }) }}">
<img class="img1" src="{{asset('uploads/actualites/'~previousActu.image)}}" alt="">
<div class="d-flex flex-column text-next-prev text-prev">
<p>{% if app.request.locale == 'fr' %}ARTICLE PRÉCÉDENT{% else %}PREVIOUS ARTICLE{% endif %}</p>
<p>{% if app.request.locale == 'fr' %}{{ previousActu.titreFr }}{% else %}{{ previousActu.titreEn }}{% endif %}</p>
</div>
</a>
{% endif %}
</div>
<div class="col-6">
{% if nextActu %}
{% if app.request.locale == 'fr' %}
{% set titreNew = nextActu.titreFr|replace({' ':'_'}) %}
{% else %}
{% set titreNew = nextActu.titreEn|replace({' ':'_'}) %}
{% endif %}
<a class="d-flex flex-row-reverse" href="{{ path('actualitesD', { 'id': nextActu.id, 'titre':titreNew,'locale':app.request.locale }) }}">
<img class="img2" src="{{asset('uploads/actualites/'~nextActu.image)}}" alt="">
<div class="d-flex flex-column text-next-prev text-next text-end">
<p>{% if app.request.locale == 'fr' %}ARTICLE SUIVANT{% else %}NEXT ARTICLE{% endif %}</p>
<p>{% if app.request.locale == 'fr' %}{{ nextActu.titreFr }}T{% else %}{{ nextActu.titreEn }}{% endif %}</p>
</div>
</a>
{% endif %}
</div>
</div>
</div>
</div>
<div class="col-xl-1"></div>
</div>
</section>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
{% endblock %}