panels-twocol.tpl.php 842 B

12345678910111213141516171819202122232425
  1. <?php
  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-display panel-2col clearfix" <?php if (!empty($css_id)) {print "id=\"$css_id\"";} ?>>
  18. <div class="panel-panel panel-col-first">
  19. <div class="inside"><?php print $content['left']; ?></div>
  20. </div>
  21. <div class="panel-panel panel-col-last">
  22. <div class="inside"><?php print $content['right']; ?></div>
  23. </div>
  24. </div>