You are here

panels-twocol.html.twig in Panels 8.3

Template for a 2 column panel layout.

This template provides a two column panel display layout, with each column roughly equal in width.

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['left']: Content in the left column.
    • $content['right']: Content in the right column.

File

layouts/twocol/panels-twocol.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. * each column roughly equal in width.
  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['left']: Content in the left column.
  14. * - $content['right']: Content in the right column.
  15. */
  16. #}
  17. <div class="panel-2col" {% if css_id %}{{ css_id }}{% endif %}>
  18. <div class="panel-panel">
  19. {{ content.left }}
  20. </div>
  21. <div class="panel-panel">
  22. {{ content.right }}
  23. </div>
  24. </div>