templates/articles/aapami.html.twig line 1

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. {% endblock %}
  7. {% block content %}
  8.     {% set name = "" %}
  9.     {% if app.request.attributes.get('structure').structure.name is defined and app.request.attributes.get('structure').structure.name is not empty %}
  10.         {% set name = app.request.attributes.get('structure').structure.name %}
  11.     {% endif %}
  12.     {% set values = ['Actualités', 'AAP / AMI'] %}
  13.     {% include "articles-blocks/breadcrumb.html.twig" with {titles : values} %}
  14.     <section class="single-article-container">
  15.         <article>
  16.             <div class="mlr-1em">
  17.                 {% include "articles-blocks/header.html.twig" %}
  18.                 {# <div class="creator">{{ sulu_resolve_user(creator).fullName }}</div> #}
  19.                 {% include "articles/blocks/article-under-header.html.twig" %}
  20.                 {% if extension.excerpt.categories is defined and extension.excerpt.categories is not empty %}
  21.                     {% set categories = extension.excerpt.categories %}
  22.                     {% include "blocks/previews-from-controller/blocks/categories.html.twig" %}
  23.                 {% endif %}
  24.                 {% if content.chapo is defined and content.chapo is not empty %}
  25.                     <div class="fw500 lh28 fs20 text cgrey mt-40px">{{ content.chapo|raw }}</div>
  26.                 {% endif %}
  27.             </div>
  28.             {% if content.title is defined and content.title is not empty %}
  29.                 <div class="mb-3em mt-40px">
  30.                     <div class="dflex fdc jcsa mlr-1em">
  31.                         <div class="pb1em">
  32.                             <h2>Informations pratiques</h2>
  33.                         </div>
  34.                         {% if content.structure is defined and content.structure is not empty %}
  35.                             <div class="pb1em dflex aic">
  36.                                 <div class="icon-ctnr">
  37.                                     <img src="/resources/img/breifcase-icon.svg" alt="Structure" width="16" height="16">
  38.                                 </div>
  39.                                 <span class="diflex">
  40.                                     {{ content.structure | raw }}
  41.                                 </span>
  42.                             </div>
  43.                         {% endif %}
  44.                         {% if content.type_appel is defined and content.type_appel is not empty %}
  45.                             <div class="pb1em dflex aic">
  46.                                 <div class="icon-ctnr">
  47.                                     <img src="/resources/img/aapami/aapami-icon.svg" alt="Profil" width="15" height="16">
  48.                                 </div>
  49.                                 <span class="diflex">
  50.                                     {% if content.type_appel|raw == "mission"%}
  51.                                         Appel à manifestation d'intérêt
  52.                                     {% elseif content.type_appel|raw == "projet" %}
  53.                                         Appel à projet
  54.                                     {% else %}
  55.                                         {{ content.type_appel | raw }}
  56.                                     {% endif %}
  57.                                 </span>
  58.                             </div>
  59.                         {% endif %}
  60.                         {% if content.limit_date is defined and content.limit_date is not empty %}
  61.                             <div class="pb1em dflex aic">
  62.                                 <div class="icon-ctnr">
  63.                                     <img src="/resources/img/calendar-icon.svg" alt="Calendrier" width="21" height="20">
  64.                                 </div>
  65.                                 Date limite :
  66.                                 {{ content.limit_date | date("d/m/Y") }}
  67.                             </div>
  68.                         {% endif %}
  69.                     </div>
  70.                 </div>
  71.             {% endif %}
  72.             <div class="mlr-1em">
  73.                 {% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
  74.                     {% for data in content.main_content %}
  75.                         {% if data.type == "sub_content" %}
  76.                             {% include "articles-blocks/articles-content.html.twig" %}
  77.                         {% endif %}
  78.                         {% if data.type == "linked_with" %}
  79.                             {% include "articles-blocks/linked-with.html.twig" %}
  80.                         {% endif %}
  81.                         {% if data.type == "see_more" %}
  82.                             {% include "articles-blocks/see-more.html.twig" %}
  83.                         {% endif %}
  84.                     {% endfor %}
  85.                 {% endif %}
  86.             </div>
  87.         </article>
  88.     </section>
  89. {% endblock %}
  90. {% block javascripts %}
  91.     {% include "articles/javascripts/base-article-js.html.twig" %}
  92.     {{ parent() }}
  93. {% endblock %}