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