You are here

panels-onecol.html.twig in Panels 8.3

Template for a one column panel layout.

This template provides a very simple "one column" 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.middle: The only panel in the layout.

File

layouts/onecol/panels-onecol.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template for a one column panel layout.
  5. *
  6. * This template provides a very simple "one column" 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.middle: The only panel in the layout.
  13. */
  14. #}
  15. <div class="panel-1col" {% if css_id %}{{ css_id }}{% endif %}>
  16. <div class="panel-panel">
  17. {{ content.middle }}
  18. </div>
  19. </div>