root / drupal7 / sites / all / themes / adaptivetheme / at_core / layouts / gpanels / five-5x20.php @ 74f6bef0
1 |
<?php
|
---|---|
2 |
|
3 |
/**
|
4 |
* @file
|
5 |
* Gpanel snippet for the five column layout
|
6 |
*
|
7 |
* Gpanels are drop in multi-column snippets for displaying blocks.
|
8 |
* Most Gpanels are stacked, meaning they have top and bottom regions
|
9 |
* by default, however you do not need to use them. You should always
|
10 |
* use all the horizonal regions or you might experience layout issues.
|
11 |
*
|
12 |
* How to use:
|
13 |
* 1. Copy and paste the code snippet into your page.tpl.php file.
|
14 |
* 2. Copy and paste the region definitions to your themes .info file.
|
15 |
* 3. Clear the cache (in Performance settings) to refresh the theme registry.
|
16 |
|
17 |
Region Deinitions:
|
18 |
|
19 |
; 5 col
|
20 |
regions[five_first] = AT Five column 5x20 - 1
|
21 |
regions[five_second] = AT Five column 5x20 - 2
|
22 |
regions[five_third] = AT Five column 5x20 - 3
|
23 |
regions[five_fourth] = AT Five column 5x20 - 4
|
24 |
regions[five_fifth] = AT Five column 5x20 - 5
|
25 |
|
26 |
*/
|
27 |
?>
|
28 |
|
29 |
<?php if ( |
30 |
$page['five_first'] || |
31 |
$page['five_second'] || |
32 |
$page['five_third'] || |
33 |
$page['five_fourth'] || |
34 |
$page['five_fifth'] |
35 |
): ?>
|
36 |
<!-- Five column Gpanel -->
|
37 |
<div class="at-panel gpanel panel-display five-5x20 clearfix"> |
38 |
<div class="panel-row row-1 clearfix"> |
39 |
<?php print render($page['five_first']); ?> |
40 |
<?php print render($page['five_second']); ?> |
41 |
</div>
|
42 |
<div class="panel-row row-2 clearfix"> |
43 |
<?php print render($page['five_third']); ?> |
44 |
<?php print render($page['five_fourth']); ?> |
45 |
<?php print render($page['five_fifth']); ?> |
46 |
</div>
|
47 |
</div>
|
48 |
<?php endif; ?> |