root / drupal7 / sites / all / modules / panels / plugins / layouts / twocol_stacked / panels-twocol-stacked.tpl.php @ 08475715
1 | 85ad3d82 | Assos Assos | <?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 | |||
26 | <div class="center-wrapper"> |
||
27 | <div class="panel-col-first panel-panel"> |
||
28 | <div class="inside"><?php print $content['left']; ?></div> |
||
29 | </div>
|
||
30 | <div class="panel-col-last panel-panel"> |
||
31 | <div class="inside"><?php print $content['right']; ?></div> |
||
32 | </div>
|
||
33 | </div>
|
||
34 | |||
35 | <?php if ($content['bottom']): ?> |
||
36 | <div class="panel-col-bottom panel-panel"> |
||
37 | <div class="inside"><?php print $content['bottom']; ?></div> |
||
38 | </div>
|
||
39 | <?php endif; ?> |
||
40 | </div> |