| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
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 clear-block" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>> 26 <?php if ($content['top']): ?> 27 <div class="panel-panel panel-col-top"> 28 <div class="inside"><?php print $content['top']; ?></div> 29 </div> 30 <?php endif ?> 31 32 <?php if ($content['left_above'] || $content['right_above']): ?> 33 <div class="center-wrapper"> 34 <div class="panel-panel panel-col-first"> 35 <div class="inside"><?php print $content['left_above']; ?></div> 36 </div> 37 38 <div class="panel-panel panel-col-last"> 39 <div class="inside"><?php print $content['right_above']; ?></div> 40 </div> 41 </div> 42 <?php endif ?> 43 44 <?php if ($content['middle']): ?> 45 <div class="panel-panel panel-col-middle"> 46 <div class="inside"><?php print $content['middle']; ?></div> 47 </div> 48 <?php endif ?> 49 50 <?php if ($content['left_below'] || $content['right_below']): ?> 51 <div class="center-wrapper"> 52 <div class="panel-panel panel-col-first"> 53 <div class="inside"><?php print $content['left_below']; ?></div> 54 </div> 55 56 <div class="panel-panel panel-col-last"> 57 <div class="inside"><?php print $content['right_below']; ?></div> 58 </div> 59 </div> 60 <?php endif ?> 61 62 <?php if ($content['bottom']): ?> 63 <div class="panel-panel panel-col-bottom"> 64 <div class="inside"><?php print $content['bottom']; ?></div> 65 </div> 66 <?php endif ?> 67 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |