templates/articles/newsletters.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {# extension.excerpt #}
  3. {% block content %}
  4.     {% set name = "" %}
  5.     {% if app.request.attributes.get('structure').structure.name is defined and app.request.attributes.get('structure').structure.name is not empty %}
  6.         {% set name = app.request.attributes.get('structure').structure.name %}
  7.     {% endif %}
  8.     {% set values = ['Actualités', 'Newsletters'] %}
  9.     {% include "articles-blocks/breadcrumb.html.twig" with {titles : values} %}
  10.     <section class="single-article-container">
  11.         <article>
  12.             <div class="mlr-1em">
  13.                 {% include "articles-blocks/header.html.twig" %}
  14.                 {# <div class="creator">{{ sulu_resolve_user(creator).fullName }}</div> #}
  15.                 {% include "articles/blocks/article-under-header.html.twig" %}
  16.                 {% if extension.excerpt.categories is defined and extension.excerpt.categories is not empty %}
  17.                     {% set categories = extension.excerpt.categories %}
  18.                     {% include "blocks/previews-from-controller/blocks/categories.html.twig" %}
  19.                 {% endif %}
  20.                 {% if content.chapo is defined and content.chapo is not empty %}
  21.                     <div class="fw500 lh28 fs20 text cgrey mt-40px">{{ content.chapo|raw }}</div>
  22.                 {% endif %}
  23.             </div>
  24.             {% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
  25.                 {% for data in content.main_content %}
  26.                     {% if data.type == "sub_content" %}
  27.                         {% include "articles-blocks/articles-content.html.twig" %}
  28.                     {% endif %}
  29.                     {% if data.type == "linked_with" %}
  30.                         {% include "articles-blocks/linked-with.html.twig" %}
  31.                     {% endif %}
  32.                     {% if data.type == "see_more" %}
  33.                         {% include "articles-blocks/see-more.html.twig" %}
  34.                     {% endif %}
  35.                 {% endfor %}
  36.             {% endif %}
  37.         </article>
  38.     </section>
  39. {% endblock %}