You are here

panels-threecol-25-50-25.html.twig in Panels 8.3

Template for a 3 column panel layout.

This template provides a three column 25%-50%-25% panel display layout.

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.middle: Content in the middle column.
    • content.right: Content in the right column.

File

layouts/threecol_25_50_25/panels-threecol-25-50-25.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template for a 3 column panel layout.
  5. *
  6. * This template provides a three column 25%-50%-25% panel display layout.
  7. *
  8. * Variables:
  9. * - $id: An optional CSS id to use for the layout.
  10. * - $content: An array of content, each item in the array is keyed to one
  11. * panel of the layout. This layout supports the following sections:
  12. * - content.left: Content in the left column.
  13. * - content.middle: Content in the middle column.
  14. * - content.right: Content in the right column.
  15. */
  16. #}
  17. <div class="panel-3col" {% if css_id %}{{ css_id }}{% endif %}>
  18. <div class="panel-panel">
  19. {{ content.left }}
  20. </div>
  21. <div class="panel-panel panel-col-middle">
  22. {{ content.middle }}
  23. </div>
  24. <div class="panel-panel">
  25. {{ content.right }}
  26. </div>
  27. </div>