templates/default/components/molecules/video-text/video-text.html.twig line 1

Open in your IDE?
  1. <div class="video-text">
  2. <div class="video-text__inner">
  3. {% if headline|length == 1 %}
  4. <div class="video-text__headline">
  5. {# atoms/headline #}
  6. {{ render_storyblok(headline) }}
  7. </div>
  8. {% endif %}
  9. <div class="video-text__content">
  10. {% if video|length == 1 %}
  11. {% set videoPositionModifier = (videoPosition is defined) ? ' video-text__video--' ~ videoPosition : '' %}
  12. {% set videoSizeModifier = (videoSize is defined) ? ' video-text__video--' ~ videoSize : '' %}
  13. <div class="video-text__video{{ videoPositionModifier }}{{ videoSizeModifier }}">
  14. <div class="video-text__video__inner">
  15. {# atoms/youtube #}
  16. {{ render_storyblok(video) }}
  17. </div>
  18. </div>
  19. {% endif %}
  20. <div class="video-text__description">
  21. {% if subheadline|length == 1 %}
  22. <div class="video-text__subheadline">
  23. {# atoms/headline #}
  24. {{ render_storyblok(subheadline, {
  25. 'class': 'headline--no-spacing',
  26. }) }}
  27. </div>
  28. {% endif %}
  29. {% if description|length == 1 %}
  30. <div class="video-text__text">
  31. {# atoms/paragraph #}
  32. {{ render_storyblok(description, {
  33. 'class': 'paragraph--no-margin',
  34. }) }}
  35. </div>
  36. {% endif %}
  37. {% if button|length == 1 %}
  38. <div class="video-text__action">
  39. {# atoms/button #}
  40. {{ render_storyblok(button) }}
  41. </div>
  42. {% endif %}
  43. </div>
  44. </div>
  45. </div>
  46. </div>