Horde::includeScriptFiles();
require KRONOLITH_TEMPLATES . '/javascript_defs.php';
-$bc = Horde_Util::nonInputVar('bodyClass');
-if (isset($view) && is_object($view) && $prefs->getValue('show_panel')) {
- if ($bc) {
- $bc .= ' ';
- }
- $bc .= 'rightPanel';
-}
+$bc = (isset($view) && is_object($view) && $prefs->getValue('show_panel'))
+ ? 'rightPanel'
+ : '';
$currentDate = Kronolith::currentDate();
Horde::includeScriptFiles();
-$bc = Horde_Util::nonInputVar('bodyClass');
-if ($prefs->getValue('show_panel')) {
- if ($bc) {
- $bc .= ' ';
- }
- $bc .= 'rightPanel';
-}
+$bc = $prefs->getValue('show_panel')
+ ? 'rightPanel'
+ : '';
?>
<title><?php echo htmlspecialchars($page_title) ?></title>
Horde::includeScriptFiles();
-$bc = Horde_Util::nonInputVar('bodyClass');
-if ($prefs->getValue('show_panel')) {
- if ($bc) {
- $bc .= ' ';
- }
- $bc .= 'rightPanel';
-}
+$bc = $prefs->getValue('show_panel')
+ ? 'rightPanel'
+ : '';
?>
<title><?php echo htmlspecialchars($page_title) ?></title>