You are here

panels-twocol-stacked.html.twig in Panels 8.3

Template for a 2 column panel layout.

This template provides a two column panel display layout, with additional areas for the top and the bottom.

Variables:

  • $id: An optional CSS id to use for the layout.
  • $content: An array of content, each item in the array is keyed to one panel of the layout. This layout supports the following sections:

    • content.top: Content in the top row.
    • content.left: Content in the left column.
    • content.middle: Content in the middle column.
    • content.right: Content in the right column.
    • content.bottom: Content in the bottom row.

File

layouts/twocol_stacked/panels-twocol-stacked.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template for a 2 column panel layout.
  5. *
  6. * This template provides a two column panel display layout, with
  7. * additional areas for the top and the bottom.
  8. *
  9. * Variables:
  10. * - $id: An optional CSS id to use for the layout.
  11. * - $content: An array of content, each item in the array is keyed to one
  12. * panel of the layout. This layout supports the following sections:
  13. * - content.top: Content in the top row.
  14. * - content.left: Content in the left column.
  15. * - content.middle: Content in the middle column.
  16. * - content.right: Content in the right column.
  17. * - content.bottom: Content in the bottom row.
  18. */
  19. #}
  20. <div class="panel-2col-stacked" {% if css_id %}{{ css_id }}{% endif %}>
  21. <div class="panel-panel panel-full-width">
  22. {{ content.top }}
  23. </div>
  24. <div class="panel-panel">
  25. {{ content.left }}
  26. </div>
  27. <div class="panel-panel">
  28. {{ content.right }}
  29. </div>
  30. <div class="panel-panel panel-full-width">
  31. {{ content.bottom }}
  32. </div>
  33. </div>