You are here

ds-4col.html.twig in Display Suite 8.2

Same filename and directory in other branches
  1. 8.4 templates/ds-4col.html.twig
  2. 8.3 templates/ds-4col.html.twig

Display Suite 4 column template.

Available variables:

  • outer_wrapper: outer wrapper element
  • first_wrapper: wrapper element around first region
  • second_wrapper: wrapper element around second region
  • third_wrapper: wrapper element around third region
  • fourth_wrapper: wrapper element around fourth region
  • attributes: layout attributes
  • first_attributes: attributes for first region
  • second_attributes: attributes for second region
  • third_attributes: attributes for third region
  • fourth_attributes: attributes for fourth region
  • first: content of first region
  • second: content of second region
  • third: content of third region
  • fourth: content of fourth region

File

templates/ds-4col.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Display Suite 4 column template.
  5. *
  6. * Available variables:
  7. * - outer_wrapper: outer wrapper element
  8. * - first_wrapper: wrapper element around first region
  9. * - second_wrapper: wrapper element around second region
  10. * - third_wrapper: wrapper element around third region
  11. * - fourth_wrapper: wrapper element around fourth region
  12. * - attributes: layout attributes
  13. * - first_attributes: attributes for first region
  14. * - second_attributes: attributes for second region
  15. * - third_attributes: attributes for third region
  16. * - fourth_attributes: attributes for fourth region
  17. * - first: content of first region
  18. * - second: content of second region
  19. * - third: content of third region
  20. * - fourth: content of fourth region
  21. */
  22. #}
  23. <{{ outer_wrapper }}{{ attributes.addClass('ds-4col', 'clearfix') }}>
  24. {{ title_suffix.contextual_links }}
  25. <{{ first_wrapper }}{{ first_attributes.addClass('group-first') }}>
  26. {{ first }}
  27. </{{ first_wrapper }}>
  28. <{{ second_wrapper }}{{ second_attributes.addClass('group-second') }}>
  29. {{ second }}
  30. </{{ second_wrapper }}>
  31. <{{ third_wrapper }}{{ third_attributes.addClass('group-third') }}>
  32. {{ third }}
  33. </{{ third_wrapper }}>
  34. <{{ fourth_wrapper }}{{ fourth_attributes.addClass('group-fourth') }}>
  35. {{ fourth }}
  36. </{{ fourth_wrapper }}>
  37. </{{ outer_wrapper }}>