{% extends "front/"~ app.request.server.get('APP_THEME') ~"/base.html.twig" %}
{% block stylesheets %}
{{parent()}}
{% endblock %}
{% block body %}
<div class="page_cms page_localite 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">{{title_page}}</h1>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div id="bloc-principal" class="container-fluid wrapper">
<div class="row">
<div class="col-sm-12 text-center">
{% if parametreRef is defined and parametreRef is not empty %}
<h2>{{parametreRef.soustitreparamref}}</h2>
{{parametreRef.description|raw}}
{% endif %}
</div>
</div>
</div>
<div class="container-fluid">
{% if secteurs is defined and secteurs is not empty %}
<div id="bloc-secteurs" class="row localites">
<div class="col-sm-12">
<div class="list_blocs pos1">
<div class="blocs">
<section class="results dynam-affichage affichage1 type_affiche3 custom_affichage4">
{% for item in secteurs %}
{% set duree = 0.1 %}
{% set image_item = 'uploads/images/place.png' %}
<div class="article wow zoomIn animated" data-wow-delay="{{duree}}s" 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">
<a class="article-titre" href="{{path('page_details_localite',{slug:item.libelleurl})}}" title="{{item.titresecteur}}">{{item.titresecteur}}</a>
{% if item.textgenerersecteurfinal is not empty %}
{{cutTextAffichage(item.textgenerersecteurfinal,'affichage1',false)|raw}}
{% endif %}
<span class="article-bts">
<button class="article-plus btn-fade" onclick="window.open('{{path('page_details_localite',{slug:item.libelleurl})}}', '_self');" title="{{item.titresecteur}}">En savoir plus</button>
</span>
</span>
</div>
{% set duree = duree + 0.2 %}
{% endfor %}
</section>
</div>
</div>
{# <a href="{{path('page_details_localite',{slug:item.libelleurl})}}">
<div class="d-flex localite_items">
<div><i class="fa fa-map-marker"></i></div>
<div>{{item.titresecteur}}</div>
</div>
</a> #}
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}