| 1 |
<?php
|
| 2 |
function phptemplate_body_class($sidebar_left, $sidebar_right) {
|
| 3 |
if ($sidebar_left != '' && $sidebar_right != '') {
|
| 4 |
$class = 'sidebars';
|
| 5 |
}
|
| 6 |
else {
|
| 7 |
if ($sidebar_left != '') {
|
| 8 |
$class = 'sidebar-left';
|
| 9 |
}
|
| 10 |
if ($sidebar_right != '') {
|
| 11 |
$class = 'sidebar-right';
|
| 12 |
}
|
| 13 |
}
|
| 14 |
|
| 15 |
if (isset($class)) {
|
| 16 |
print ' class="'. $class .'"';
|
| 17 |
}
|
| 18 |
}
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
function admire_gray_regions() {
|
| 23 |
return array(
|
| 24 |
'header' => t('Header'),
|
| 25 |
'sidebar_left' => t('Sidebar left'),
|
| 26 |
'content_top' => t('Content top'),
|
| 27 |
'sidebar_right' => t('Sidebar right'),
|
| 28 |
'footer_block' => t('Footer block'),
|
| 29 |
);
|
| 30 |
}
|