root / drupal7 / sites / all / themes / adaptivetheme / at_core / layouts / gpanels / four-4x25.php @ 74f6bef0
1 |
<?php
|
---|---|
2 |
|
3 |
/**
|
4 |
* @file
|
5 |
* Gpanel snippet for the four 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 |
; 4 col
|
20 |
regions[four_first] = AT Four column 4x25 - 1
|
21 |
regions[four_second] = AT Four column 4x25 - 2
|
22 |
regions[four_third] = AT Four column 4x25 - 3
|
23 |
regions[four_fourth] = AT Four column 4x25 - 4
|
24 |
|
25 |
*/
|
26 |
?>
|
27 |
|
28 |
<?php if ( |
29 |
$page['four_first'] || |
30 |
$page['four_second'] || |
31 |
$page['four_third'] || |
32 |
$page['four_fourth'] |
33 |
): ?>
|
34 |
<!-- Four column Gpanel -->
|
35 |
<div class="at-panel gpanel panel-display four-4x25 clearfix"> |
36 |
<div class="panel-row row-1 clearfix"> |
37 |
<?php print render($page['four_first']); ?> |
38 |
<?php print render($page['four_second']); ?> |
39 |
</div>
|
40 |
<div class="panel-row row-2 clearfix"> |
41 |
<?php print render($page['four_third']); ?> |
42 |
<?php print render($page['four_fourth']); ?> |
43 |
</div>
|
44 |
</div>
|
45 |
<?php endif; ?> |