function phptemplate_body_class in Drupal 6
Same name and namespace in other branches
- 5 themes/garland/template.php \phptemplate_body_class()
Sets the body-tag class attribute.
Adds 'sidebar-left', 'sidebar-right' or 'sidebars' classes as needed.
2 calls to phptemplate_body_class()
- maintenance-page.tpl.php in themes/
garland/ maintenance-page.tpl.php - maintenance-page.tpl.php
- page.tpl.php in themes/
garland/ page.tpl.php
File
- themes/
garland/ template.php, line 8
Code
function phptemplate_body_class($left, $right) {
if ($left != '' && $right != '') {
$class = 'sidebars';
}
else {
if ($left != '') {
$class = 'sidebar-left';
}
if ($right != '') {
$class = 'sidebar-right';
}
}
if (isset($class)) {
print ' class="' . $class . '"';
}
}