{% extends "front/"~ app.request.server.get('APP_THEME') ~"/base.html.twig" %}
{% block stylesheets %}
{{parent()}}
{% endblock %}
{% block body %}
<div class="page_cms page_activite pt-5">
<div class="breadcrumb-style-default">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="inner text-center">
{% if breadcrumb is defined and breadcrumb is not empty %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/breadcrumb.html.twig')}}
<h1 class="page-title">{{titre_activite}}</h1>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid wrapper">
<div class="row">
<div class="col-sm-12">
<div class="text-center"><h2>{{titre}}</h2></div>
{% if texte is not empty and texte != " " %}
<div>{{texte|raw}}</div>
{% endif %}
</div>
</div>
</div>
{% if ref_pages is defined and ref_pages is not empty %}
<div class="container-fluid wrapper mt-3">
<div class="row gx-5 py-2">
<div class="col-sm-12 text-center">
<h2 class="sub-title wow">Nos autres prestations autour de {{titre}}</h2>
</div>
<div class="col-sm-12">
<div class="list_blocs pos1">
<div class="blocs">
<section id="results" class="results dynam-affichage affichage1 type_affiche3">
{% for item in ref_pages %}
{% set duree = 0.1 %}
{% set image_item = item.image != null? asset_image(item.image):'uploads/images/' ~ parametre.imagevide %}
<a class="article wow zoomIn animated" data-wow-delay="{{duree}}s" href="{{path('page',{slug:item.slug})}}" title="" style="visibility: visible; animation-delay: 0.1s; animation-name: zoomIn;">
<span class="article-image lazyloaded" style="background-image: url({{image_item}}); background-size: cover; background-position: center center; background-repeat: no-repeat;"> </span>
<span class="article-cnt">
<h3 class="article-titre">{{item.title}}</h3>
<span class="article-txt">
{% if item.summary is not empty %}
{{item.summary|raw}}
{% else %}
{{cutText(item.content)|raw}}
{% endif %}
</span>
<span class="article-bts">
<span class="article-plus btn-fade">En savoir plus</span>
</span>
</span>
</a>
{% set duree = duree + 0.2 %}
{% endfor %}
</section>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% if actualites is defined and actualites is not empty %}
<div class="container-fluid wrapper mt-3">
<div class="row gx-5 py-2">
<div class="col-sm-12 text-center">
<h2 class="sub-title wow">Nos offres / actualités liées</h2>
</div>
<div class="col-sm-12">
<div class="list_blocs pos1">
<div class="blocs">
<section id="results" class="results dynam-affichage affichage1 type_affiche3">
{% for item in actualites %}
{% set duree = 0.1 %}
{% set image_item = item.image != null? asset_image(item.image):'uploads/images/' ~ parametre.imagevide %}
<a class="article wow zoomIn animated" data-wow-delay="{{duree}}s" href="{{path('page',{slug:item.slug})}}" title="" style="visibility: visible; animation-delay: 0.1s; animation-name: zoomIn;">
<span class="article-image lazyloaded" style="background-image: url({{image_item}}); background-size: cover; background-position: center center; background-repeat: no-repeat;"> </span>
<span class="article-cnt">
<h3 class="article-titre">{{item.title}}</h3>
<span class="article-txt">
{% if item.summary is not empty %}
{{item.summary|raw}}
{% else %}
{{cutText(item.content)|raw}}
{% endif %}
</span>
<span class="article-bts">
<span class="article-plus btn-fade">En savoir plus</span>
</span>
</span>
</a>
{% set duree = duree + 0.2 %}
{% endfor %}
</section>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% if secteurs is defined and secteurs is not empty %}
<div class="container-fluid wrapper mt-3">
<div class="row gx-5 py-2">
<div class="col-sm-12 text-center">
<h2 class="sub-title wow">Localités</h2>
</div>
<div class="col-sm-12">
<div class="list_blocs pos1">
<div class="blocs">
<section id="results" class="results dynam-affichage affichage1 type_affiche3">
{% for item in secteurs %}
{% set duree = 0.1 %}
{% set image_item = 'uploads/images/place.jpg' %}
<a class="article wow zoomIn animated" data-wow-delay="{{duree}}s" href="{{path('page_details_localite',{slug:item.libelleurl})}}" title="{{item.titresecteur}}" style="visibility: visible; animation-delay: 0.1s; animation-name: zoomIn;">
<span class="article-image lazyloaded" style="background-image: url({{image_item}}); background-size: contain; background-position: center center; background-repeat: no-repeat;"> </span>
<span class="article-cnt">
<h3 class="article-titre">{{item.titresecteur}}</h3>
<span class="article-txt">
{% if item.textgenerersecteurfinal is not empty %}
{{cutText(item.textgenerersecteurfinal)|raw}}
{% endif %}
</span>
<span class="article-bts">
<span class="article-plus btn-fade">En savoir plus</span>
</span>
</span>
</a>
{% set duree = duree + 0.2 %}
{% endfor %}
</section>
</div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
{% endblock %}