panels-threecol-33-34-33-stacked.tpl.php 1.5 KB

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