{% extends "base.html.twig" %}
{# extension.excerpt #}
{% block style %}
{{ parent() }}
{% include "articles/styles/base-css-logic.html.twig" %}
{% endblock %}
{% 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 = "" %}
{% if name == "guides_outils" %}
{% set values = ['Ressources', 'Guides et outils'] %}
{% elseif name == "analyses" %}
{% set values = ['Ressources', 'Analyses'] %}
{% else %}
{% set values = ['Actualités', 'Articles'] %}
{% endif %}
{% include "articles-blocks/breadcrumb.html.twig" with {titles : values} %}
<div class="main-container w100 plr-1em">
<section class="single-article-container">
<article>
{% 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 %}
{% 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>
</div>
{% endblock %}
{% block javascripts %}
{% include "articles/javascripts/base-article-js.html.twig" %}
{{ parent() }}
{% endblock %}