layout--onecolthreerows.twig 924 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a one col three rows layout.
  5. *
  6. * Available variables:
  7. * - content: The content for this layout.
  8. * - attributes: HTML attributes for the layout <div>.
  9. *
  10. * @ingroup themeable
  11. */
  12. #}
  13. {%
  14. set classes = [
  15. 'layout',
  16. 'layout--onecolthreerows',
  17. ]
  18. %} content %}
  19. <div{{ attributes.addClass(classes) }}>
  20. {% if content.first %}
  21. <div{{ region_attributes.first.addClass('layout__region', 'layout__region--first') }}>
  22. {{ content.first }}
  23. </div>
  24. {% endif %}
  25. {% if content.second %}
  26. <div{{ region_attributes.second.addClass('layout__region', 'layout__region--second') }}>
  27. {{ content.second }}
  28. </div>
  29. {% endif %}
  30. {% if content.third %}
  31. <div{{ region_attributes.third.addClass('layout__region', 'layout__region--third') }}>
  32. {{ content.third }}
  33. </div>
  34. {% endif %}
  35. </div>
  36. {% endif %}