templates/articles/experiences.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {# extension.excerpt #}
  3. {% block style %}
  4.     {{ parent() }}
  5.     {% include "css/article-critical-css.html.twig" %}
  6.     {% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'articles_css'} %}
  7.     {% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'sns_icons_css'} %}
  8.     {% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'frame_css'} %}
  9.     {% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'freetext_css'} %}
  10.     {% if content.adresse is defined and content.adresse is not empty %}
  11.         {% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'map_css'} %}
  12.     {% endif %}
  13.     {% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
  14.         {% for data in content.main_content %}
  15.             {% set block = data %}
  16.             {% if data.type == "youtube" %}
  17.                 {% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'youtube_css'} %}
  18.             {% endif %}
  19.             {% if data.type == "linked_with" or data.type == "see_more" %}
  20.                 {% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'splide_css'} %}
  21.                 {% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'previews_css'} %}
  22.                 {% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'preview_thematique_css'} %}
  23.             {% endif %}
  24.             {% if data.type == "citation" %}
  25.                 {% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'citation_css'} %}
  26.             {% endif %}
  27.             {% if data.type == "iframe" %}
  28.                 {% include "blocks/iframe.html.twig" with {block: data} %}
  29.             {% endif %}
  30.         {% endfor %}
  31.     {% endif %}
  32. {% endblock %}
  33. {% block content %}
  34.     {% set values = "" %}
  35.     {% set values = ['Acteurs & territoires', 'Expériences'] %}
  36.     {% include "articles-blocks/breadcrumb.html.twig" with {titles : values} %}
  37.     <div class="main-container w100 plr-1em single-article-container">
  38.         <article>
  39.             {% if content.old_format %}
  40.                 <div class="{% if content.header_img is defined and content.header_img is not empty %}main-title{% else %}small-main-title{% endif %} br8 dflex aic jcc">
  41.                     {% if content.header_img is defined and content.header_img is not empty %}
  42.                         <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 }}">
  43.                     {% endif %}
  44.                     <div class="zi1 prelative team-project-head dflex jcc aic fdc">
  45.                         <div class="center">
  46.                             <h1 class="{% if content.header_img is defined and content.header_img is not empty %}cwhite{% else %}cblue{% endif %}">{{ content.title }}</h1>
  47.                         </div>
  48.                     </div>
  49.                     {% if content.header_img is defined and content.header_img is not empty %}
  50.                         <div class="background-color-blue"></div>
  51.                     {% endif %}
  52.                 </div>
  53.                 {% if content.header_img is defined and content.header_img is not empty %}
  54.                     {% if content.header_img.credits and content.header_img.credits is not empty %}
  55.                         <div class="cgrey fs12 lh16 credit mt-8px">&copy; Crédit Photo
  56.                             {{ content.header_img.credits }}</div>
  57.                     {% endif %}
  58.                 {% endif %}
  59.                 {% include "articles/blocks/article-under-header.html.twig" %}
  60.                 {% if content.departement is defined and content.departement is not empty %}
  61.                     <div class="dflex fwwrap">
  62.                         <div class="departement-tag cwhite fw600 departement-exp mb-2em mt-40px">{{ content.departement }}</div>
  63.                     </div>
  64.                 {% endif %}
  65.                 {% if content.desc is defined and content.desc is not empty %}
  66.                     <div class="actualites-PQNA mb-16px fs20 lh28 f500 cgrey">
  67.                         {{ content.desc|raw }}
  68.                     </div>
  69.                 {% endif %}
  70.                 <div class="mb-2em dflex w100">
  71.                     {% if extension.excerpt.categories is defined and extension.excerpt.categories is not empty %}
  72.                         <div class="small-thematique-container">
  73.                             {% set categories = extension.excerpt.categories %}
  74.                             {% include "blocks/previews-from-controller/blocks/categories.html.twig" %}
  75.                         </div>
  76.                     {% endif %}
  77.                 </div>
  78.                 <div class="structure-class">
  79.                     {% if content.societe_porteuse.name is defined and content.societe_porteuse.name  is not empty %}
  80.                         <h2 class="mb-20px structure-class-title">
  81.                             Structure Porteuse :
  82.                             {{ content.societe_porteuse.name }}
  83.                         </h2>
  84.                     {% endif %}
  85.                     {% if content.structure_img is defined and  content.structure_img is not empty %}
  86.                         <div class="br8 dflex aic jcc structure-class-image">
  87.                             <img loading="lazy" src="{{ content.structure_img.formats['1000x.webp'] }}" srcset="{{ content.structure_img.formats['300x.webp'] }} 300w, {{ content.structure_img.formats['600x.webp'] }} 600w, {{ content.structure_img.formats['1000x.webp'] }} 1000w" sizes="1000px" alt="{{ content.structure_img | copyright_or_description_or_title }}" width="{{ content.structure_img.fileVersion.properties.width }}" height="{{ content.structure_img.fileVersion.properties.height }}">
  88.                         </div>
  89.                     {% endif %}
  90.                 </div>
  91.             {% else %}
  92.                 <div class="{% if content.header_img is defined and content.header_img is not empty %}main-title{% else %}small-main-title{% endif %} br8 dflex aic jcc">
  93.                     {% if content.header_img is defined and content.header_img is not empty %}
  94.                         <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 }}">
  95.                     {% endif %}
  96.                     <div class="zi1 prelative team-project-head dflex jcc aic fdc">
  97.                         <div class="center">
  98.                             <h1 class="{% if content.header_img is defined and content.header_img is not empty %}cwhite{% else %}cblue{% endif %}">{{ content.title }}</h1>
  99.                         </div>
  100.                     </div>
  101.                     {% if content.header_img is defined and content.header_img is not empty %}
  102.                         <div class="background-color-blue"></div>
  103.                     {% endif %}
  104.                 </div>
  105.                 {% if content.header_img is defined and content.header_img is not empty %}
  106.                     {% if content.header_img.credits and content.header_img.credits is not empty %}
  107.                         <div class="cgrey fs12 lh16 credit mt-8px">&copy; Crédit Photo
  108.                             {{ content.header_img.credits }}</div>
  109.                     {% endif %}
  110.                 {% endif %}
  111.                 <div class="dflex jcsb lh28 fwwrap article-datas">
  112.                     <div>
  113.                         {% if content.author_name is defined and content.author_name is not empty %}
  114.                             {% include "articles/blocks/show-simple-text-field.html.twig" with {content: content.author_name} %}
  115.                         {% else %}
  116.                             {% include "articles-blocks/contributors.html.twig" %}
  117.                         {% endif %}
  118.                         {% include "articles-blocks/publish-date.html.twig" %}
  119.                     </div>
  120.                     <div class="taright">
  121.                         {% include "articles-blocks/readtime.html.twig" %}
  122.                         {% include "articles-blocks/share-buttons.html.twig" %}
  123.                     </div>
  124.                 </div>
  125.                 <div class="mb-2em dflex w100 fwwrap aic experience-pre-header">
  126.                     {% if content.departement is defined and content.departement is not empty %}
  127.                         <div class="departement-tag cwhite fw600 departement-exp mb-2em mt-1em">
  128.                             {{ content.departement }}
  129.                         </div>
  130.                     {% endif %}
  131.                     {% if extension.excerpt.categories is defined and extension.excerpt.categories is not empty %}
  132.                         {% set categories = extension.excerpt.categories %}
  133.                         {% include "blocks/previews-from-controller/blocks/categories.html.twig" %}
  134.                     {% endif %}
  135.                 </div>
  136.                 {# display des champ post modification des expériences (voir la différence en prod et dans les maquettes figma) #}
  137.                 <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-40pxaic frame-overflow mb-2em">
  138.                     <div class="jcc dflex frame-container-print">
  139.                         {% if content.header_img is defined and content.header_img is not empty %}
  140.                             <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" width="{{ content.header_img.fileVersion.properties.width }}" height="{{ content.header_img.fileVersion.properties.height }}" style="z-index: -1;">
  141.                         {% endif %}
  142.                         <div class="frame-wrap-container dflex jcse aic mt-2p5em mb-3p5em">
  143.                             <div class="first-frame p-244024  ml-2per fdc aic">
  144.                                 <h2 class="frame-title-territoire-custom corange wd100 lh28 fs20 fw500 dflex tac">Carte d'identité</h2>
  145.                                 <div class="text-flex fw400 fs16 lh24">
  146.                                     <div class="framed experience">
  147.                                         {% if content.sub_thematiques is defined and content.sub_thematiques is not empty %}
  148.                                             {% include "articles/blocks/show-simple-text-field.html.twig" with {title: "Sous-thématiques :", content: content.sub_thematiques} %}
  149.                                         {% endif %}
  150.                                         {% if content.structure is defined and content.structure is not empty %}
  151.                                             {% include "articles/blocks/show-simple-text-field.html.twig" with {title: "Structure porteuse :", content: content.structure} %}
  152.                                         {% endif %}
  153.                                         {% if content.status_juridique is defined and content.status_juridique is not empty %}
  154.                                             {% include "articles/blocks/show-simple-text-field.html.twig" with {title: "Statut juridique : ", content: content.status_juridique} %}
  155.                                         {% endif %}
  156.                                         {% if content.influence is defined and content.influence is not empty %}
  157.                                             {% include "articles/blocks/show-multiple-select-field.html.twig" with {title: "Aire d'influence :", content: content.influence} %}
  158.                                         {% endif %}
  159.                                         {% if content.date_start is defined and content.date_start is not empty %}
  160.                                             {% include "articles/blocks/show-date-field.html.twig" with {title: "Date de lancement :", content: content.date_start} %}
  161.                                         {% endif %}
  162.                                         {% if content.status is defined and content.status is not empty %}
  163.                                             {% include "articles/blocks/show-simple-text-field.html.twig" with {title: "État d'achèvement :", content: content.status} %}
  164.                                         {% endif %}
  165.                                         {% if content.cost is defined and content.cost is not empty %}
  166.                                             {% include "articles/blocks/show-cost-field.html.twig" with {title: "Coût du projet :", content: content.cost} %}
  167.                                         {% endif %}
  168.                                     </div>
  169.                                 </div>
  170.                             </div>
  171.                             <div class="middle-frame p-244024 fdc aic">
  172.                                 <h2 class="frame-title-territoire-custom corange wd100 lh28 fs20 fw500 dflex tac">La démarche en bref</h2>
  173.                                 <div class="text-flex fw400 fs16 lh24">
  174.                                     <div class="framed experience">
  175.                                         {% include "articles/blocks/show-simple-text-field.html.twig" with {classCSS: " mb-1em", content: content.desc} %}
  176.                                         {% include "articles/blocks/show-contact-info.html.twig" with {
  177.                             title: "Contact", 
  178.                             content_adresse: content.adresse, 
  179.                             content_phone: content.phone,
  180.                             content_email: content.email,
  181.                             content_link: content.link_to_resource,
  182.                             content_other_file: content.other_file,
  183.                             content_other_link: content.other_link
  184.                         } %}
  185.                                     </div>
  186.                                 </div>
  187.                             </div>
  188.                             <div class="last-frame p-244024  mr-2per fdc aic">
  189.                                 <h2 class="frame-title-territoire-custom corange wd100 lh28 fs20 fw500 dflex tac">Acteurs</h2>
  190.                                 <div class="text-flex fw400 fs16 lh24">
  191.                                     <div class="framed experience">
  192.                                         {% if content.cible is defined and content.cible is not empty %}
  193.                                             {% include "articles/blocks/show-public-cible.html.twig" with {title: "Public cible :", content: content.cible} %}
  194.                                         {% endif %}
  195.                                         {% if content.cible is defined and content.cible is not empty and content.cible|length > 0 and "Autre" in content.cible %}
  196.                                             {% include "articles/blocks/show-simple-text-field.html.twig" with {title: "Autre public cible :", content: content.cible_autre} %}
  197.                                         {% endif %}
  198.                                         {% if content.partenaires_techniques is defined and content.partenaires_techniques is not empty %}
  199.                                             {% include "articles/blocks/show-simple-text-field.html.twig" with {title: "Partenaires techniques :", content: content.partenaires_techniques} %}
  200.                                         {% endif %}
  201.                                         {% if content.partenaires_financiers is defined and content.partenaires_financiers is not empty %}
  202.                                             {% include "articles/blocks/show-simple-text-field.html.twig" with {title: "Partenaires financiers :", content: content.partenaires_financiers} %}
  203.                                         {% endif %}
  204.                                         {% if content.personne_rsc is defined and content.personne_rsc is not empty %}
  205.                                             {% include "articles/blocks/show-simple-text-field.html.twig" with {title: "Personne ressource :", content: content.personne_rsc} %}
  206.                                         {% endif %}
  207.                                         {% if content.compo_equipe is defined and content.compo_equipe is not empty %}
  208.                                             {% include "articles/blocks/show-simple-text-field.html.twig" with {title: "Composition de l'équipe rattachée au projet (élus, équipe technique, etc.) :", content: content.compo_equipe} %}
  209.                                         {% endif %}
  210.                                     </div>
  211.                                 </div>
  212.                             </div>
  213.                         </div>
  214.                     </div>
  215.                     <div class="background-color-orange"></div>
  216.                 </div>
  217.                 {% if (content.contexte is defined and content.contexte is not empty) or (content.objectif is defined and content.objectif is not empty) %}
  218.                     <div class="{% if content.header_img is defined and content.header_img is not empty %}main-title{% else %}small-main-title{% endif %} br8 mt-40px mb-40px aic frame-overflow">
  219.                         <div class="jcc dflex solution-container-print">
  220.                             <div class="frame-flex-container w100 dflex jcse mt-2p5em mb-3p5em p-1em">
  221.                                 {% if content.contexte is defined and content.contexte is not empty %}
  222.                                     <div class="frame-pics p-2440 fdc aic br6">
  223.                                         <h2 class="frame-title corange wd100 lh28 fs20 fw500 dflex tac">Contexte</h2>
  224.                                         <div class="text-flex fw400 fs16 lh24 framed">{{ content.contexte|raw }}</div>
  225.                                     </div>
  226.                                 {% endif %}
  227.                                 {% if content.objectif is defined and content.objectif %}
  228.                                     <div class="frame-pics p-2440 fdc aic br6">
  229.                                         <h2 class="frame-title corange wd100 lh28 fs20 fw500 dflex tac">Objectifs</h2>
  230.                                         <div class="text-flex fw400 fs16 lh24 framed">{{ content.objectif|raw }}</div>
  231.                                     </div>
  232.                                 {% endif %}
  233.                             </div>
  234.                         </div>
  235.                         <div class="background-color-orange"></div>
  236.                     </div>
  237.                 {% endif %}
  238.                 {% if content.mise_oeuvre is defined and content.mise_oeuvre is not empty %}
  239.                     <section class="mb-1em">
  240.                         <h3 class="fw600">Mise en œuvre des actions</h3>
  241.                         {% include "articles/blocks/show-simple-text-field.html.twig" with {content: content.mise_oeuvre} %}
  242.                     </section>
  243.                 {% endif %}
  244.                 {% if content.resultats is defined and content.resultats is not empty %}
  245.                     <section class="mb-1em">
  246.                         <h3 class="fw600">Résultats</h3>
  247.                         {% include "articles/blocks/show-simple-text-field.html.twig" with {content: content.resultats} %}
  248.                     </section>
  249.                 {% endif %}
  250.                 {% if (content.facteurs_reussite is defined and content.facteurs_reussite is not empty) or (content.freins is defined and content.freins is not empty) %}
  251.                     <div class="{% if content.header_img is defined and content.header_img is not empty %}main-title{% else %}small-main-title{% endif %} br8 mt-40px mb-40px aic frame-overflow">
  252.                         <div class="jcc dflex solution-container-print">
  253.                             <div class="frame-flex-container w100 dflex jcse mt-2p5em mb-3p5em p-1em">
  254.                                 {% if content.facteurs_reussite is defined and content.facteurs_reussite is not empty %}
  255.                                     <div class="frame-pics p-2440 fdc aic br6">
  256.                                         <h2 class="frame-title corange wd100 lh28 fs20 fw500 dflex tac">Facteurs de réussite</h2>
  257.                                         <div class="text-flex fw400 fs16 lh24 framed">{{ content.facteurs_reussite|raw }}</div>
  258.                                     </div>
  259.                                 {% endif %}
  260.                                 {% if content.freins is defined and content.freins %}
  261.                                     <div class="frame-pics p-2440 fdc aic br6">
  262.                                         <h2 class="frame-title corange wd100 lh28 fs20 fw500 dflex tac">Freins</h2>
  263.                                         <div class="text-flex fw400 fs16 lh24 framed">{{ content.freins|raw }}</div>
  264.                                     </div>
  265.                                 {% endif %}
  266.                             </div>
  267.                         </div>
  268.                         <div class="background-color-orange"></div>
  269.                     </div>
  270.                 {% endif %}
  271.                 {% if content.enseignements is defined and content.enseignements is not empty %}
  272.                     <section class="mb-1em">
  273.                         <h3 class="fw600 mb-0p5em">Enseignements</h3>
  274.                         {% include "articles/blocks/show-simple-text-field.html.twig" with {content: content.enseignements} %}
  275.                     </section>
  276.                 {% endif %}
  277.                 {% if content.perspectives is defined and content.perspectives is not empty %}
  278.                     <section class="mb-1em">
  279.                         <h3 class="fw600 mb-0p5em">Perspectives</h3>
  280.                         {% include "articles/blocks/show-simple-text-field.html.twig" with {content: content.perspectives} %}
  281.                     </section>
  282.                 {% endif %}
  283.                 {% if content.author_name is defined and content.author_name is not empty %}
  284.                     <div class="mt-20px mb-20px">
  285.                         <div class="blue-frame">
  286.                             <div class="diblock cwhite">
  287.                                 <div class="text fw400 fs16 lh24">
  288.                                     Contenu rédigé par :
  289.                                     {{ content.author_name -}}
  290.                                 </div>
  291.                             </div>
  292.                         </div>
  293.                     </div>
  294.                 {% endif %}
  295.             {% endif %}
  296.             {# fin de la nouvelle apparence des expériences #}
  297.             {% if content.adresse is defined and content.adresse is not empty %}
  298.                 {% set map = content.adresse %}
  299.                 {% set display_map = true %}
  300.             {% endif %}
  301.             {% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
  302.                 {% for data in content.main_content %}
  303.                     {% if data.type =="text" %}
  304.                         {% include "articles-blocks/freetext.html.twig" %}
  305.                     {% endif %}
  306.                     {% if data.type == "triple_frame" %}
  307.                         {% include "articles-blocks/triple-frame-block.html.twig" %}
  308.                     {% endif %}
  309.                     {% if data.type == "text_pic" %}
  310.                         {% include "blocks/text-pic.html.twig" with {block: data} %}
  311.                     {% endif %}
  312.                     {% if data.type == "citation" %}
  313.                         {% include "articles-blocks/citation.html.twig" %}
  314.                     {% endif %}
  315.                     {% if data.type == "solution_frame" %}
  316.                         {% include "blocks/block-picbkg-frame.html.twig" with {block: data} %}
  317.                     {% endif %}
  318.                     {% if data.type == "block_wrap" %}
  319.                         {% include "articles-blocks/block-wrap.html.twig" %}
  320.                     {% endif %}
  321.                     {% if data.type == "block_blue_back" %}
  322.                         {% include "articles-blocks/block-blue-background.html.twig" %}
  323.                     {% endif %}
  324.                     {% if data.type == "youtube" %}
  325.                         {% set embed_link = data.video_link|replace({'watch?v=' : 'embed/'}) %}
  326.                         {% set embed_link_splitted = embed_link|split('/') %}
  327.                         {% set videoID = embed_link_splitted|last %}
  328.                         {# <div class="youtube_player" videoid="{{ videoID }}" width="560" height="315" theme="theme light" rel="rel 1" controls="controls 1" showinfo="showinfo 1 " autoplay="autoplay 0" mute="mute 1" loop="loop 0" loading="loading 0"></div> TAC #}
  329.                         <div class="video-responsive mt-1em">
  330.                             <lite-youtube videoid="{{ videoID }}" class="br8" params="controls=1&start={{ data.timestamp }}&modestbranding=2&rel=0&enablejsapi=1"></lite-youtube>
  331.                         </div>
  332.                     {% endif %}
  333.                     {% if data.type == 'file' %}
  334.                         {% set block = data %}
  335.                         {% include "blocks/file.html.twig" %}
  336.                     {% endif %}
  337.                 {% endfor %}
  338.             {% endif %}
  339.             {% if display_map is defined and display_map is not empty %}
  340.                 <div class="map-cont">
  341.                     {% include "articles-blocks/simple-map.html.twig" %}
  342.                 </div>
  343.             {% endif %}
  344.             {% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
  345.                 {% for data in content.main_content %}
  346.                     {% if data.type == "linked_with" %}
  347.                         {% include "articles-blocks/linked-with.html.twig" %}
  348.                     {% endif %}
  349.                     {% if data.type == "see_more" %}
  350.                         {% include "articles-blocks/see-more.html.twig" %}
  351.                     {% endif %}
  352.                 {% endfor %}
  353.             {% endif %}
  354.         </article>
  355.     </div>
  356. {% endblock %}
  357. {% block javascripts %}
  358.     {% if content.adresse is defined and content.adresse is not empty %}
  359.         {{ encore_entry_script_tags('map') }}
  360.     {% endif %}
  361.     {% if content.main_content|length > 0 %}
  362.         {% for content in content.main_content %}
  363.             {% if content.type == "youtube" %}
  364.                 {{ encore_entry_script_tags('youtube_defer') }}
  365.                 {{ encore_entry_script_tags('lite-youtube') }}
  366.             {% endif %}
  367.         {% endfor %}
  368.     {% endif %}
  369.     {% include "articles/javascripts/base-article-js.html.twig" %}
  370.     {{ parent() }}
  371. {% endblock %}