{% if article.excerpt.categories is defined and article.excerpt.categories is not empty %}
{% set categories = article.excerpt.categories %}
{% endif %}
{% if articleContentLinkedWith is defined and articleContentLinkedWith is not empty %}
{% set articleContent = articleContentLinkedWith %}
{% else %}
{% if article.content.content is defined and article.content.content is not empty %}
{% set articleContent = article.content.content %}
{% endif %}
{% endif %}
{% if articleContent.header_img is defined and articleContent.header_img is not empty %}
{% set img = articleContent.header_img %}
{% endif %}
{% if articleContent.structure is defined and articleContent.structure is not empty %}
{% set structure = articleContent.structure %}
{% endif %}
{% if articleContent.limit_date is defined and articleContent.limit_date is not empty %}
{% set limit_date = articleContent.limit_date %}
{% endif %}
{% if articleContent.type_appel is defined and articleContent.type_appel is not empty %}
{% set type_appel = articleContent.type_appel %}
{% endif %}
{% set appel = "manifestation d'intérêt" %}
{% if type_appel == "projet" %}
{% set appel = "projet" %}
{% endif %}
{% if block.slider_mode is defined and block.slider_mode is not empty %}
<li class="splide__slide">
<div class="preview-container aapami br8 dflex fdc">
{% else %}
<div class="preview-container aapami br8 dflex {% if i > 2 %} not-visible-mobile-article{% endif %}{% if i > 3 %} not-visible-tablette-article{% endif %}">
{% endif %}
<div class="preview-header">
{% if img is defined and img is not empty %}
{% include "blocks/previews/img/image.html.twig" %}
{% else %}
{% include "blocks/previews/img/default-image.html.twig" %}
{% endif %}
<div class="background-color-blue"></div>
</div>
<div class="preview-content dflex fdc w100">
{% if article.routePath is defined and article.routePath is not empty %}
<a href="{{ sulu_content_path(article.routePath) }}" class="cblue nodeco mb-4px">
{% endif %}
{% if article.title is defined and article.title is not empty %}
<div class="fw500 fs20 preview-h3 lh28">{{ article.title }}</div>
{% endif %}
</a>
{% include "blocks/previews-from-controller/blocks/categories.html.twig" %}
{% if structure is defined and structure is not empty %}
<div class="structure mb-4px"><img src="/resources/img/aapami/briefcase-icon.svg" alt="Structure" width="20" height="20">{{ structure }}</div>
{% endif %}
{% if type_appel is defined and type_appel is not empty %}
<div class="type-appel mb-4px"><img src="/resources/img/aapami/aapami-icon.svg" alt="Appel" width="15" height="16">Appel à
{{ appel }}</div>
{% endif %}
{% if limit_date is defined and limit_date is not empty %}
<div class="limit mb-4px"><img src="/resources/img/aapami/calendar-icon.svg" alt="Date" width="16" height="16">Date limite :
{{ limit_date|format_datetime('short', 'none', locale='fr') }}</div>
{% endif %}
<div class="mta taright">
{% if article.authored is defined and article.authored is not empty %}
<span class="cgrey fs14 lh20">Publié le
{{ article.authored|format_datetime('short', 'none', locale='fr') }}
</span>
{% endif %}
</div>
</div>
{% if block.slider_mode is defined and block.slider_mode is not empty %}
</div>
</li>
{% else %}
</div>
{% endif %}