templates/articles-blocks/articles-content.html.twig line 1

Open in your IDE?
  1. <section class="article-content mt-40px plr-16px">
  2.     {% if main_h2_title is defined and main_h2_title is not empty %}
  3.         <h2 class="main-h2-title fs36 lh40 fw400 p-26-10px dflex jcsb aic {% if  mobile_gray_theme is defined and mobile_gray_theme is not empty %} {{ mobile_gray_theme }}{% endif %}">
  4.             {{ main_h2_title }}
  5.             {{ source('svg/arrow-icon.html.twig') }}
  6.         </h2>
  7.     {% endif %}
  8.     {% if h2_in_list is not defined %}
  9.         {% include "articles-blocks/title-h2.html.twig" %}
  10.     {% endif %}
  11.     <div>
  12.         {% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
  13.             {% for data in data.content %}
  14.                 {% if h2_in_list is defined and h2_in_list is not empty %}
  15.                     {% if data.type == "title_h2_with_chapo" %}
  16.                         {% include "articles-blocks/title-h2.html.twig" %}
  17.                     {% endif %}
  18.                 {% endif %}
  19.                 {% if data.type == "title_h3" %}
  20.                     {% include "articles-blocks/title-h3.html.twig" %}
  21.                 {% endif %}
  22.                 {% if data.type == "freetext" %}
  23.                     {% include "articles-blocks/freetext.html.twig" %}
  24.                 {% endif %}
  25.                 {% if data.type == "media" %}
  26.                     {% include "articles-blocks/media.html.twig" %}
  27.                 {% endif %}
  28.                 {% if data.type == "citation" %}
  29.                     {% include "articles-blocks/citation.html.twig" %}
  30.                 {% endif %}
  31.                 {% if data.type == "photo_report" %}
  32.                     {% include "articles-blocks/photo-report.html.twig" %}
  33.                 {% endif %}
  34.                 {% if data.type == "cta_block" %}
  35.                     {% include "articles-blocks/cta-block.html.twig" %}
  36.                 {% endif %}
  37.             {% endfor %}
  38.         {% endif %}
  39.     </div>
  40. </section>