{% extends 'layouts/layouts_front/base_front.html.twig' %}{% set cmptBack = 0 %}{% block stylesheets %} <link rel="stylesheet preload" as="style" media="screen" href="{{ asset('css/actualite.css') }}">{% endblock %}{% set titleAff = page.seoTitle|default(page.ptitreonglet)|default(page.ptitre) %}{% if catEnCours is defined %} {% for cat in categories %} {% if cat.id == catEnCours %} {% set titleAff = titleAff~" - "~cat.actCatIntitule %} {% endif %} {% endfor %}{% endif %}{% set titleAff = titleAff|slice(0,34)~" | "~nomDuSite %}{% if app.request.locale == 'fr' %} {% set metaDescr = page.seoDescription|default( "Retrouvez toutes les actualités sur le site de "~nomDuSite) %}{% else %} {% set metaDescr = page.seoDescription|default("Find all the news on the "~nomDuSite~" website") %}{% endif %}{% if catEnCours is defined %} {% for cat in categories %} {% if cat.id == catEnCours %} {% if app.request.locale == 'fr' %} {% set metaDescr = "Retrouvez toutes les actualités de la catégorie "~cat.actCatIntitule~" sur le site de "~nomDuSite %} {% else %} {% set metaDescr = "Find all the news of the "~cat.actCatIntitule~" category on the "~nomDuSite~" website" %} {% endif %} {% endif %} {% endfor %}{% endif %}{% block metaDescription %}{{ metaDescr }}{% endblock %}{% block metaDescriptionOg %}{{ metaDescr }}{% endblock %}{% block keywords %}{{ page.seoKeywords }}{% endblock %}{% block title %}{{ titleAff }}{% endblock %}{% block titleOg %}{{ titleAff }}{% endblock %}{% block content %} {% if page is not null %} {{ include('front/front_news/header.html.twig') }} {{ include('front/front_news/nav_ariane.html.twig') }} {% endif %} <div id="page_module"> <div class="container"> <div class="row justify-content-center"> <div class="col-md-12 respfrontcata"> <div class="noFadeInUp d-flex justify-content-center flex-column align-items-center navproduct mt-5"> <div class="respmobile"> <a class="noFadeInUp btn btn-primary touteActus{% if actEnCours is defined and actEnCours == 0 %} active{% endif %}" href="{{ websiteroot }}/actualite"> <span>Toutes les actualites</span> </a> {% for categ in categories %} {% if categ.nbActus > 0 %} {% set numCouleur = 1 %} {% set isSelected = 0 %} {% if categ.id == actEnCours %} {% set isSelected = 1 %} {% endif %} <a class="noFadeInUp btn btn-primary touteActus{% if isSelected == 1 %} active{% elseif actEnCours != null %} noSelected{% endif %}" href="/actualite/{{ categ.actCatIntitule }}/{{ categ.id }}" data-type="{{ categ.id }}" value="{{ categ.actCatIntitule }}"> <span>{{ categ.actCatIntitule }}</span> </a> {% endif %} {% endfor %} </select> </div> </div> </div> </div> </div> {% if actualites|length >0 %} <section data-bs-version="5.1" class="mbr-embla cid-sZogb0MkOH"> <div class="position-relative"> {# <div class="mbr-section-head"> #} {# <h4 class="mbr-section-title mbr-fonts-style align-center mb-0 display-2"> #} {# <strong>Actualité</strong></h4> #} {# <h5 class="mbr-section-subtitle mbr-fonts-style align-center mb-0 mt-2 display-5"> #} {# Sous titre actualité #} {# </h5> #} {# </div> #} <div class="d-flex flex-column"> <div class="d-flex flex-row flex-md-wrap blockActusTotal"> {% for event in actualites %} {% set mediaTmp = event.media_fichier %} {% set mediaDefault = "default.jpg" %} {% set mediaTmp = webp(webpSupported, mediaTmp) %} {% set mediaDefault = webp(webpSupported, mediaDefault) %} <div class="item blockActusIndex"> <div class="item-wrapper imageRondIndexActus"> <div class="h-100"> <a href="{{ path('front_news_card', {id:event.id}) }}"> <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="{{ event.act_titre|default(nomDuSite) }}" title="{{ event.act_titre|default(nomDuSite) }}" loading="lazy" class="lazyload imgHeight" data-src="{{ asset('/medias_front/actualite/'~mediaTmp|default(mediaDefault)) }}" itemprop="image"> </a> </div> </div> <div class="item-content"> <a href="{{ path('front_news_card', {id:event.id}) }}"> <h6 class="item-subtitle mbr-fonts-style mt-1 display-7"> <strong>{{ event.act_titre }}</strong> </h6> <h5 class="item-title mbr-fonts-style display-4 dateActus"> <time itemprop="startDate" datetime="{{ event.act_date_publication|date('Y-m-d') }}"> {{ event.act_date_publication|date("d/m/Y") }} </time> </h5> </a> </div> </div> {% endfor %} </div> {{ knp_pagination_render(actualites, 'layouts/layouts_front/pagination/paginate.html.twig') }} </div> </div> </section> {% endif %} </div>{% endblock %}{% block javascripts %}{% endblock %}