[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/panels/plugins/layouts/twocol_bricks/ -> panels-twocol-bricks.tpl.php (source)

   1  <?php
   2  // $Id: panels-twocol-bricks.tpl.php,v 1.1.2.2 2010/07/20 19:06:04 merlinofchaos Exp $
   3  /**
   4   * @file
   5   * Template for a 2 column panel layout.
   6   *
   7   * This template provides a two column panel display layout, with
   8   * each column roughly equal in width. It is 5 rows high; the top
   9   * middle and bottom rows contain 1 column, while the second
  10   * and fourth rows contain 2 columns.
  11   *
  12   * Variables:
  13   * - $id: An optional CSS id to use for the layout.
  14   * - $content: An array of content, each item in the array is keyed to one
  15   *   panel of the layout. This layout supports the following sections:
  16   *   - $content['top']: Content in the top row.
  17   *   - $content['left_above']: Content in the left column in row 2.
  18   *   - $content['right_above']: Content in the right column in row 2.
  19   *   - $content['middle']: Content in the middle row.
  20   *   - $content['left_below']: Content in the left column in row 4.
  21   *   - $content['right_below']: Content in the right column in row 4.
  22   *   - $content['right']: Content in the right column.
  23   *   - $content['bottom']: Content in the bottom row.
  24   */
  25  ?>
  26  <div class="panel-display panel-2col-bricks clear-block" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
  27    <?php if ($content['top']): ?>
  28      <div class="panel-panel panel-col-top">
  29        <div class="inside"><?php print $content['top']; ?></div>
  30      </div>    
  31    <?php endif ?>
  32  
  33    <?php if ($content['left_above'] || $content['right_above']): ?>
  34      <div class="center-wrapper">
  35        <div class="panel-panel panel-col-first">
  36          <div class="inside"><?php print $content['left_above']; ?></div>
  37        </div>
  38  
  39        <div class="panel-panel panel-col-last">
  40          <div class="inside"><?php print $content['right_above']; ?></div>
  41        </div>
  42      </div>    
  43    <?php endif ?>
  44  
  45    <?php if ($content['middle']): ?>
  46      <div class="panel-panel panel-col-middle">
  47        <div class="inside"><?php print $content['middle']; ?></div>
  48      </div>    
  49    <?php endif ?>
  50  
  51    <?php if ($content['left_below'] || $content['right_below']): ?>
  52      <div class="center-wrapper">
  53        <div class="panel-panel panel-col-first">
  54          <div class="inside"><?php print $content['left_below']; ?></div>
  55        </div>
  56  
  57        <div class="panel-panel panel-col-last">
  58          <div class="inside"><?php print $content['right_below']; ?></div>
  59        </div>
  60      </div>    
  61    <?php endif ?>
  62  
  63    <?php if ($content['bottom']): ?>
  64      <div class="panel-panel panel-col-bottom">
  65        <div class="inside"><?php print $content['bottom']; ?></div>
  66      </div>    
  67    <?php endif ?>
  68  </div>


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7