{% extends "base.html.twig" %}
{# extension.excerpt #}
{% block style %}
{{ parent() }}
{% include "articles/styles/base-css-logic.html.twig" %}
{% include "css/un-territoire-critical-css.html.twig" %}
{% if (content.acteur_territoire is defined
and content.acteur_territoire is not empty
and content.acteur_territoire == true)
or (content.experience_territoire is defined
and content.experience_territoire is not empty
and content.experience_territoire == true) %}
{% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'splide_css'} %}
{% endif %}
{% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'frame_css'} %}
{% endblock %}
{% block content %}
{% set name = "" %}
{% if app.request.attributes.get('structure').structure.name is defined and app.request.attributes.get('structure').structure.name is not empty %}
{% set name = app.request.attributes.get('structure').structure.name %}
{% endif %}
{% set values = "" %}
{% set values = ['Acteurs & territoires', 'Territoires'] %}
{% include "articles-blocks/breadcrumb.html.twig" with {titles : values} %}
<div class="main-container w100 plr-1em content">
<article class="single-article-container">
<div class="{% if content.header_img is defined and content.header_img is not empty %}main-title{% else %}small-main-title{% endif %} mt-40px mb-40px aic frame-overflow">
<div class="jcc dflex">
{% if content.header_img is defined and content.header_img is not empty %}
<img loading="lazy" src="{{ content.header_img.formats['1000x.webp'] }}" srcset="{{ content.header_img.formats['300x.webp'] }} 300w, {{ content.header_img.formats['600x.webp'] }} 600w, {{ content.header_img.formats['1000x.webp'] }} 1000w" sizes="1000px" alt="{{ content.header_img | copyright_or_description_or_title }}" width="{{ content.header_img.fileVersion.properties.width }}" height="{{ content.header_img.fileVersion.properties.height }}" style="z-index: -1;">
{% endif %}
<div class="frame-header-container dflex jcc mt-2p5em mb-3p5em p-1em">
<div class="frame-pics-format fdc aic br6">
<p class="triple-frame-title wd100 lh24 fs16 fw400 dflex tac">Territoire</p>
<h1 class="corange tac mb-1em ofbw">
{% if content.front_title is defined and content.front_title is not empty %}
{{ content.front_title }}
{% else %}
{% if content.title is defined and content.title is not empty %}
{{ content.title }}
{% endif %}
{% endif %}
</h1>
<div class="thematique-container dflex fwwrap mt-8px jcc mb-1em">
<div class="thematiques-tag cwhite fw400 dflex aic" style="background:#354161; min-height:28px">{{ (content.type_territoire is defined and content.type_territoire is not empty and content.type_territoire == "contractualisation") ? 'Territoires de contractualisation' : 'Territoires Politique de la ville' }}</div>
</div>
{% if content.chapo is defined and content.chapo is not empty %}
<div class="text-flex tac text-pqa lh28 fs20 fw500">{{ content.chapo|raw }}</div>
{% else %}
<div class="text-flex tac text-pqa lh28 fs20 fw500">Pays et Quartiers de Nouvelle-Aquitaine, le centre de ressources sur le développement territorial.</div>
{% endif %}
</div>
</div>
</div>
<div class="background-color-blue" style="z-index:-1;"></div>
</div>
{% include "articles/blocks/article-under-header.html.twig" %}
<div class="content fdc">
{% for data in content.main_content %}
{% if data.type == "triple_frame" %}
{% include "articles-blocks/triple-frame-block.html.twig" %}
{% endif %}
{% if data.type == "block_wrap" %}
{% include "articles-blocks/block-wrap.html.twig" %}
{% endif %}
{% if data.type == "sub_content" %}
{% include "articles-blocks/articles-content.html.twig" %}
{% endif %}
{% if data.type == "linked_with" %}
{% include "articles-blocks/linked-with.html.twig" %}
{% endif %}
{% if data.type == "see_more" %}
{% include "articles-blocks/see-more.html.twig" %}
{% endif %}
{% endfor %}
</div>
<div class="territoire-linked-data">
{% set id_territory = "" %}
{% if content.territory_select is defined and content.territory_select is not empty %}
{% set id_territory = content.territory_select %}
{% endif %}
{% if id_territory is defined and id_territory is not empty %}
{% if content.experience_territoire is defined and content.experience_territoire is not empty and content.experience_territoire == true %}
<section class="linked-with mb-40px">
<div class="mlr-1em">
<h2 class="fs30 lh36 fw400 mt-40px">Découvrez les expériences de ce territoire</h2>
<div class="articles-container mt-40px">
{{ render(controller('App\\Controller\\Website\\ApiTerritoryExperienceController::getExperiencesTerritoire', {}, { 'id': id_territory })) }}
</div>
</div>
</section>
{% endif %}
{% endif %}
{% if id_territory is defined and id_territory is not empty %}
{% if content.acteur_territoire is defined and content.acteur_territoire is not empty and content.acteur_territoire == true %}
<section class="linked-with mb-40px">
<div class="mlr-1em">
<h2 class="fs30 lh36 fw400 mt-40px">Découvrez les acteurs de ce territoire</h2>
<div class="articles-container mt-40px">
{{ render(controller('App\\Controller\\Website\\ContactController::getActeurTerritoire', {}, { 'id': id_territory })) }}
</div>
</div>
</section>
{% endif %}
{% endif %}
</div>
</article>
</div>
{% endblock %}
{% block javascripts %}
{% if (content.acteur_territoire is defined
and content.acteur_territoire is not empty
and content.acteur_territoire == true)
or (content.experience_territoire is defined
and content.experience_territoire is not empty
and content.experience_territoire == true) %}
{{ encore_entry_script_tags("splide") }}
{% endif %}
{% include "articles/javascripts/base-article-js.html.twig" %}
{{ parent() }}
{% endblock %}