function phptemplate_body_class

6.x template.php phptemplate_body_class($left, $right)

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 drupal-6.x/themes/garland/maintenance-page.tpl.php
maintenance-page.tpl.php
page.tpl.php in drupal-6.x/themes/garland/page.tpl.php

File

drupal-6.x/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 . '"';
  }
}