panels-twocol-stacked.tpl.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. * 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['right']: Content in the right column.
  16. * - $content['bottom']: Content in the bottom row.
  17. */
  18. ?>
  19. <div class="panel-2col-stacked clearfix panel-display" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
  20. <?php if ($content['top']): ?>
  21. <div class="panel-col-top panel-panel">
  22. <div class="inside"><?php print $content['top']; ?></div>
  23. </div>
  24. <?php endif; ?>
  25. <div class="center-wrapper">
  26. <div class="panel-col-first panel-panel">
  27. <div class="inside"><?php print $content['left']; ?></div>
  28. </div>
  29. <div class="panel-col-last panel-panel">
  30. <div class="inside"><?php print $content['right']; ?></div>
  31. </div>
  32. </div>
  33. <?php if ($content['bottom']): ?>
  34. <div class="panel-col-bottom panel-panel">
  35. <div class="inside"><?php print $content['bottom']; ?></div>
  36. </div>
  37. <?php endif; ?>
  38. </div>