{% 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.chapo is defined and articleContent.chapo is not empty %}
{% set chapo = articleContent.chapo %}
{% endif %}
{% if block.slider_mode is defined and block.slider_mode is not empty %}
<li class="splide__slide">
<div class="preview-container newsletters br8 dflex fdc">
{% else %}
<div class="preview-container newsletters 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 %}
<div class="background-color-blue"></div>
<a href="{{ sulu_content_path(article.routePath) }}" class="cblue nodeco dflex aic jcc">
<div class="fw400 fs36 lh40 cwhite">{{ article.title }}</div>
</a>
</div>
<div class="preview-content dflex fdc w100">
{% include "blocks/previews-from-controller/blocks/categories.html.twig" %}
{% if chapo is defined and chapo is not empty %}
<div class="lh24 preview-chapo fw500 lh28 fs20{% if categories is defined and categories is not empty and categories|length == 2 %} threelines{% endif %}{% if categories is defined and categories is not empty and categories|length == 3 %} twolines{% endif %}">
{{ chapo|striptags|raw }}
</div>
{% endif %}
</div>
<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>
{% if block.slider_mode is defined and block.slider_mode is not empty %}
</div>
</li>
{% else %}
</div>
{% endif %}