panels-twocol-bricks.tpl.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. It is 5 rows high; the top
  8. * middle and bottom rows contain 1 column, while the second
  9. * and fourth rows contain 2 columns.
  10. *
  11. * Variables:
  12. * - $id: An optional CSS id to use for the layout.
  13. * - $content: An array of content, each item in the array is keyed to one
  14. * panel of the layout. This layout supports the following sections:
  15. * - $content['top']: Content in the top row.
  16. * - $content['left_above']: Content in the left column in row 2.
  17. * - $content['right_above']: Content in the right column in row 2.
  18. * - $content['middle']: Content in the middle row.
  19. * - $content['left_below']: Content in the left column in row 4.
  20. * - $content['right_below']: Content in the right column in row 4.
  21. * - $content['right']: Content in the right column.
  22. * - $content['bottom']: Content in the bottom row.
  23. */
  24. ?>
  25. <div class="panel-display panel-2col-bricks clearfix" <?php if (!empty($css_id)) {print "id=\"$css_id\"";} ?>>
  26. <div class="panel-panel panel-col-top">
  27. <div class="inside"><?php print $content['top']; ?></div>
  28. </div>
  29. <div class="center-wrapper">
  30. <div class="panel-panel panel-col-first">
  31. <div class="inside"><?php print $content['left_above']; ?></div>
  32. </div>
  33. <div class="panel-panel panel-col-last">
  34. <div class="inside"><?php print $content['right_above']; ?></div>
  35. </div>
  36. </div>
  37. <div class="panel-panel panel-col-middle">
  38. <div class="inside"><?php print $content['middle']; ?></div>
  39. </div>
  40. <div class="center-wrapper">
  41. <div class="panel-panel panel-col-first">
  42. <div class="inside"><?php print $content['left_below']; ?></div>
  43. </div>
  44. <div class="panel-panel panel-col-last">
  45. <div class="inside"><?php print $content['right_below']; ?></div>
  46. </div>
  47. </div>
  48. <div class="panel-panel panel-col-bottom">
  49. <div class="inside"><?php print $content['bottom']; ?></div>
  50. </div>
  51. </div>