From 68172f94b6d767d5575385224e651077518b2dc7 Mon Sep 17 00:00:00 2001 From: shish Date: Mon, 16 Jul 2007 06:43:49 +0000 Subject: [PATCH] give all blocks an ID, not just those which toggle git-svn-id: file:///home/shish/svn/shimmie2/trunk@284 7f39781d-f577-437e-ae19-be835c7a54ca --- themes/default/layout.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } }