{% 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 article.excerpt.categories is defined and article.excerpt.categories is not empty %}
{% set categories = article.excerpt.categories %}
{% endif %}
{% if block.slider_mode is defined and block.slider_mode is not empty %}
<li class="splide__slide">
<div class="preview-container br8 dflex fdc">
{% else %}
<div class="preview-container {{ article.type }} br8 dflex fdc{% 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 %}
<p class="fs14 lh20 dflex aic">
{% if article.type == "fiches_territoires" %}
Territoire
{% elseif article.type == "experiences" %}
ExpƩriences
{% endif %}
</p>
</div>
<div class="preview-content{% if article.type != " articles" %} dflex fdc{% endif %}">
{% include "blocks/previews-from-controller/blocks/categories.html.twig" %}
<a href="{{ sulu_content_path(article.routePath) }}" class="cblue nodeco">
<div class="fw500 fs20 preview-h3 lh28 mt-8px">
{% if article.front_title is defined and article.front_title is not empty %}
{{ article.front_title }}
{% else %}
{% if article.title is defined and article.title is not empty %}
{{ article.title }}
{% endif %}
{% endif %}
</div>
</a>
{% if article.type == "fiches_territoires" %}
{% if articleContent.chapo is defined and articleContent.chapo is not empty %}
<div class="lh24 preview-chapo">
{{ articleContent.chapo|slice(0,190)|striptags|raw }}
{% if articleContent.chapo|length > 190 %}
...
<a href="{{ sulu_content_path(article.routePath) }}" class="cgrey">Lire la suite</a>
{% endif %}
</div>
{% endif %}
{% endif %}
{% if articleContent.departement is defined and articleContent.departement is not empty %}
<div class="departement cwhite fs10">
<span class="dpt">{{ articleContent.departement }}</span>
</div>
{% endif %}
</div>
{% if article.type == "experiences" %}
<div class="mta">
{% 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>
{% endif %}
{% if block.slider_mode is defined and block.slider_mode is not empty %}
</div>
</li>
{% else %}
</div>
{% endif %}