You are here

ds-2col-stacked.html.twig in Display Suite 8.3

Display Suite 2 column stacked template.

Available variables:

  • outer_wrapper: outer wrapper element
  • header_wrapper: wrapper element around header region
  • left_wrapper: wrapper element around left region
  • right_wrapper: wrapper element around right region
  • footer_wrapper: wrapper element around footer region
  • attributes: layout attributes
  • header_attributes: attributes for header region
  • left_attributes: attributes for left region
  • right_attributes: attributes for right region
  • footer_attributes: attributes for footer region
  • header: content of header region
  • left: content of left region
  • right: content of right region
  • footer: content of footer region

File

templates/ds-2col-stacked.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Display Suite 2 column stacked template.
  5. *
  6. * Available variables:
  7. * - outer_wrapper: outer wrapper element
  8. * - header_wrapper: wrapper element around header region
  9. * - left_wrapper: wrapper element around left region
  10. * - right_wrapper: wrapper element around right region
  11. * - footer_wrapper: wrapper element around footer region
  12. * - attributes: layout attributes
  13. * - header_attributes: attributes for header region
  14. * - left_attributes: attributes for left region
  15. * - right_attributes: attributes for right region
  16. * - footer_attributes: attributes for footer region
  17. * - header: content of header region
  18. * - left: content of left region
  19. * - right: content of right region
  20. * - footer: content of footer region
  21. */
  22. #}
  23. <{{ outer_wrapper }}{{ attributes.addClass('ds-2col-stacked', 'clearfix') }}>
  24. {{ title_suffix.contextual_links }}
  25. <{{ header_wrapper }}{{ header_attributes.addClass('group-header') }}>
  26. {{ header }}
  27. </{{ header_wrapper }}>
  28. <{{ left_wrapper }}{{ left_attributes.addClass('group-left') }}>
  29. {{ left }}
  30. </{{ left_wrapper }}>
  31. <{{ right_wrapper }}{{ right_attributes.addClass('group-right') }}>
  32. {{ right }}
  33. </{{ right_wrapper }}>
  34. <{{ footer_wrapper }}{{ footer_attributes.addClass('group-footer') }}>
  35. {{ footer }}
  36. </{{ footer_wrapper }}>
  37. </{{ outer_wrapper }}>