{% extends "base.html.twig" %}
{# extension.excerpt #}
{% block content %}
{% set name = "" %}
{% if app.request.attributes.get('structure').structure.name is defined and app.request.attributes.get('structure').structure.name is not empty %}
{% set name = app.request.attributes.get('structure').structure.name %}
{% endif %}
{% set values = ['Actualités', 'Newsletters'] %}
{% include "articles-blocks/breadcrumb.html.twig" with {titles : values} %}
<section class="single-article-container">
<article>
<div class="mlr-1em">
{% include "articles-blocks/header.html.twig" %}
{# <div class="creator">{{ sulu_resolve_user(creator).fullName }}</div> #}
{% include "articles/blocks/article-under-header.html.twig" %}
{% if extension.excerpt.categories is defined and extension.excerpt.categories is not empty %}
{% set categories = extension.excerpt.categories %}
{% include "blocks/previews-from-controller/blocks/categories.html.twig" %}
{% endif %}
{% if content.chapo is defined and content.chapo is not empty %}
<div class="fw500 lh28 fs20 text cgrey mt-40px">{{ content.chapo|raw }}</div>
{% endif %}
</div>
{% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
{% for data in content.main_content %}
{% if data.type == "sub_content" %}
{% include "articles-blocks/articles-content.html.twig" %}
{% endif %}
{% if data.type == "linked_with" %}
{% include "articles-blocks/linked-with.html.twig" %}
{% endif %}
{% if data.type == "see_more" %}
{% include "articles-blocks/see-more.html.twig" %}
{% endif %}
{% endfor %}
{% endif %}
</article>
</section>
{% endblock %}