templates/articles/javascripts/base-article-js.html.twig line 1

Open in your IDE?
  1. {% if content.main_content|length > 0 %}
  2.     {% for content in content.main_content %}
  3.         {% if content.type == "see_more" or content.type == "linked_with" %}
  4.             {{ encore_entry_script_tags('splide') }}
  5.         {% endif %}
  6.         {% if content.type == "sub_content" %}
  7.             {% if content.content|length > 0 %}
  8.                 {% for child_content in content.content %}
  9.                     {% if child_content.type == "media" %}
  10.                         {% if child_content.select == "youtube_link" %}
  11.                             {{ encore_entry_script_tags('lite-youtube') }}
  12.                             {{ encore_entry_script_tags('youtube_defer') }}
  13.                         {% endif %}
  14.                     {% endif %}
  15.                     {% if child_content.type == "photo_report" %}
  16.                         {{ encore_entry_script_tags('splide') }}
  17.                     {% endif %}
  18.                 {% endfor %}
  19.             {% endif %}
  20.         {% endif %}
  21.     {% endfor %}
  22. {% endif %}