templates/layout/_cms_content.html.twig line 1

Open in your IDE?
  1. {% if child.haveContent %}
  2.   {% if child.headline %}
  3.     <h2 class="c-cms-headline">
  4.       {{ child.headline }}
  5.     </h2>
  6.   {% endif %}
  7.   {% if child.image %}
  8.     <figure class="c-cms-image{% if child.isImagePortrait %} c-cms-image--portrait{% endif %}">
  9.       <img src="{{ child.getImageUrl }}" alt="{{ child.headline }}">
  10.     </figure>
  11.   {% endif %}
  12.   {% if child.youtubeId %}
  13.     <div class="c_cms-youtube">
  14.       <iframe
  15.         width="560"
  16.         height="315"
  17.         src="https://www.youtube.com/embed/{{ child.youtubeId }}?controls=0"
  18.         allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
  19.         allowfullscreen
  20.         class="c_cms-youtube__iframe"
  21.       ></iframe>
  22.     </div>
  23.   {% endif %}
  24.   {% if child.content %}
  25.     <div class="c-cms-content">
  26.       {{ child.content|raw }}
  27.     </div>
  28.   {% endif %}
  29. {% endif %}