diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-17 11:11:57 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-17 11:11:57 +0000 |
commit | e270cd093b993887142ad742a700dcc0b6b66ed6 (patch) | |
tree | f1373571b5d7da8bc28dc8fbdb784722c4f3650a /includes/theme.inc | |
parent | 44697397b718526e7d9c62e442d9cf7981e47e48 (diff) | |
download | brdo-e270cd093b993887142ad742a700dcc0b6b66ed6.tar.gz brdo-e270cd093b993887142ad742a700dcc0b6b66ed6.tar.bz2 |
#176084 by Stefan Nantegaal and dvessel: fix notices in theme.inc, when specific sidebars are not set
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 188e723cd..336b121da 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1748,17 +1748,14 @@ function template_preprocess_page(&$variables) { $body_classes[] = 'node-type-'. form_clean_id($variables['node']->type); } // Add information about the number of sidebars. - if ($variables['left'] && $variables['right']) { + if ($variables['layout'] == 'both') { $body_classes[] = 'two-sidebars'; } - elseif ($variables['left']) { - $body_classes[] = 'one-sidebar sidebar-left'; - } - elseif ($variables['right']) { - $body_classes[] = 'one-sidebar sidebar-right'; + elseif ($variables['layout'] == 'none') { + $body_classes[] = 'no-sidebars'; } else { - $body_classes[] = 'no-sidebars'; + $body_classes[] = 'one-sidebar sidebar-'. $variables['layout']; } // Implode with spaces. $variables['body_classes'] = implode(' ', $body_classes); |