diff --git a/themes/default/layout.class.php b/themes/default/layout.class.php index 37294081..523c7cb7 100644 --- a/themes/default/layout.class.php +++ b/themes/default/layout.class.php @@ -78,15 +78,15 @@ EOD; $h = $block->header; $b = $block->body; $html = ""; + $i = str_replace(' ', '_', $h); if($hidable) { - $i = str_replace(' ', '_', $h); - if(!is_null($h)) $html .= "\n

$h

\n"; - if(!is_null($b)) $html .= "
$b
\n"; + $toggle = " onclick=\"toggle('$i')\""; } else { - if(!is_null($h)) $html .= "\n

$h

\n"; - if(!is_null($b)) $html .= "
$b
\n"; + $toggle = ""; } + if(!is_null($h)) $html .= "\n

$h

\n"; + if(!is_null($b)) $html .= "
$b
\n"; return $html; } }