From 43dc8a671019f6a71ff0019e3523dc10d591ce33 Mon Sep 17 00:00:00 2001 From: shish Date: Sun, 30 Dec 2007 12:03:05 +0000 Subject: [PATCH] block name seeding git-svn-id: file:///home/shish/svn/shimmie2/trunk@673 7f39781d-f577-437e-ae19-be835c7a54ca --- themes/default/layout.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/default/layout.class.php b/themes/default/layout.class.php index 84744caa..a3aa4689 100644 --- a/themes/default/layout.class.php +++ b/themes/default/layout.class.php @@ -19,10 +19,10 @@ class Layout { foreach($page->blocks as $block) { switch($block->section) { case "left": - $left_block_html .= $this->block_to_html($block, true); + $left_block_html .= $this->block_to_html($block, true, "left"); break; case "main": - $main_block_html .= $this->block_to_html($block, false); + $main_block_html .= $this->block_to_html($block, false, "main"); break; default: print "

error: {$block->header} using an unknown section ({$block->section})"; @@ -73,11 +73,11 @@ $header_html EOD; } - function block_to_html($block, $hidable=false) { + function block_to_html($block, $hidable=false, $salt="") { $h = $block->header; $b = $block->body; $html = ""; - $i = str_replace(' ', '_', $h); + $i = str_replace(' ', '_', $h) . $salt; if($hidable) { $toggle = " onclick=\"toggle('$i')\""; }