templates/articles/fiches_territoires.html.twig line 101

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {# extension.excerpt #}
  3. {% block style %}
  4.     {{ parent() }}
  5.     {% include "articles/styles/base-css-logic.html.twig" %}
  6.     {% include "css/un-territoire-critical-css.html.twig" %}
  7.     {% if (content.acteur_territoire is defined 
  8.         and content.acteur_territoire is not empty 
  9.         and content.acteur_territoire == true)
  10.         or (content.experience_territoire is defined
  11.         and content.experience_territoire is not empty
  12.         and content.experience_territoire == true) %}
  13.         {% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'splide_css'} %}
  14.     {% endif %}
  15.     {% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'frame_css'} %}
  16. {% endblock %}
  17. {% block content %}
  18.     {% set name = "" %}
  19.     {% if app.request.attributes.get('structure').structure.name is defined and app.request.attributes.get('structure').structure.name is not empty %}
  20.         {% set name = app.request.attributes.get('structure').structure.name %}
  21.     {% endif %}
  22.     {% set values = "" %}
  23.     {% set values = ['Acteurs & territoires', 'Territoires'] %}
  24.     {% include "articles-blocks/breadcrumb.html.twig" with {titles : values} %}
  25.     <div class="main-container w100 plr-1em content">
  26.         <article class="single-article-container">
  27.             <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">
  28.                 <div class="jcc dflex">
  29.                     {% if content.header_img is defined and content.header_img is not empty %}
  30.                         <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;">
  31.                     {% endif %}
  32.                     <div class="frame-header-container dflex jcc mt-2p5em mb-3p5em p-1em">
  33.                         <div class="frame-pics-format fdc aic br6">
  34.                             <p class="triple-frame-title wd100 lh24 fs16 fw400 dflex tac">Territoire</p>
  35.                             <h1 class="corange tac mb-1em ofbw">
  36.                                 {% if content.front_title is defined and content.front_title is not empty %}
  37.                                     {{ content.front_title }}
  38.                                 {% else %}
  39.                                     {% if content.title is defined and content.title is not empty %}
  40.                                         {{ content.title }}
  41.                                     {% endif %}
  42.                                 {% endif %}
  43.                             </h1>
  44.                             <div class="thematique-container dflex fwwrap mt-8px jcc mb-1em">
  45.                                 <div class="thematiques-tag cwhite fw500 dflex aic" style="background:#354161; min-height:28px">
  46.                                     {{ 
  47.                     (content.type_territoire == "contractualisation") 
  48.                       ? 'Territoires de contractualisation' 
  49.                       : (content.type_territoire == "demarches") 
  50.                       ? 'Territoires de Démarches Alimentaires'
  51.                       : 'Territoires Politique de la ville' 
  52.                   }}
  53.                                 </div>
  54.                             </div>
  55.                             {% if content.chapo is defined and content.chapo is not empty %}
  56.                                 <div class="text-flex tac text-pqa lh28 fs20 fw500">{{ content.chapo|raw }}</div>
  57.                             {% else %}
  58.                                 <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>
  59.                             {% endif %}
  60.                         </div>
  61.                     </div>
  62.                 </div>
  63.                 <div class="background-color-blue" style="z-index:-1;"></div>
  64.             </div>
  65.             {% include "articles/blocks/article-under-header.html.twig" %}
  66.             <div class="content fdc">
  67.                 {% for data in content.main_content %}
  68.                     {% if data.type == "triple_frame" %}
  69.                         {% include "articles-blocks/triple-frame-block.html.twig" %}
  70.                     {% endif %}
  71.                     {% if data.type == "block_wrap" %}
  72.                         {% include "articles-blocks/block-wrap.html.twig" %}
  73.                     {% endif %}
  74.                     {% if data.type == "sub_content" %}
  75.                         {% include "articles-blocks/articles-content.html.twig" %}
  76.                     {% endif %}
  77.                     {% if data.type == "linked_with" %}
  78.                         {% include "articles-blocks/linked-with.html.twig" %}
  79.                     {% endif %}
  80.                     {% if data.type == "iframe" %}
  81.                         {% include "blocks/iframe.html.twig" with {block: data} %}
  82.                     {% endif %}
  83.                     {% if data.type == "see_more" %}
  84.                         {% include "articles-blocks/see-more.html.twig" %}
  85.                     {% endif %}
  86.                 {% endfor %}
  87.             </div>
  88.             <div class="territoire-linked-data">
  89.                 {% set id_territory = "" %}
  90.                 {% if content.territory_select is defined and content.territory_select is not empty %}
  91.                     {% set id_territory = content.territory_select %}
  92.                 {% endif %}
  93.                 {% if id_territory is defined and id_territory is not empty %}
  94.                     {% if content.experience_territoire is defined and content.experience_territoire is not empty and content.experience_territoire == true %}
  95.                         <section class="linked-with mb-40px">
  96.                             <div class="mlr-1em">
  97.                                 <h2 class="fs30 lh36 fw400 mt-40px">Découvrez les expériences de ce territoire</h2>
  98.                                 <div class="articles-container mt-40px">
  99.                                     {{ render(controller('App\\Controller\\Website\\ApiTerritoryExperienceController::getExperiencesTerritoire', {}, { 'id': id_territory })) }}
  100.                                 </div>
  101.                             </div>
  102.                         </section>
  103.                     {% endif %}
  104.                 {% endif %}
  105.                 {% if id_territory is defined and id_territory is not empty %}
  106.                     {% if content.acteur_territoire is defined and content.acteur_territoire is not empty and content.acteur_territoire == true %}
  107.                         <section class="linked-with mb-40px">
  108.                             <div class="mlr-1em">
  109.                                 <h2 class="fs30 lh36 fw400 mt-40px">Découvrez les acteurs de ce territoire</h2>
  110.                                 <div class="articles-container mt-40px">
  111.                                     {{ render(controller('App\\Controller\\Website\\ContactController::getActeurTerritoire', {}, { 'id': id_territory })) }}
  112.                                 </div>
  113.                             </div>
  114.                         </section>
  115.                     {% endif %}
  116.                 {% endif %}
  117.             </div>
  118.         </article>
  119.     </div>
  120. {% endblock %}
  121. {% block javascripts %}
  122.     {% if (content.acteur_territoire is defined 
  123.         and content.acteur_territoire is not empty 
  124.         and content.acteur_territoire == true)
  125.         or (content.experience_territoire is defined
  126.         and content.experience_territoire is not empty
  127.         and content.experience_territoire == true) %}
  128.         {{ encore_entry_script_tags("splide") }}
  129.     {% endif %}
  130.     {% include "articles/javascripts/base-article-js.html.twig" %}
  131.     {{ parent() }}
  132. {% endblock %}