Permalink
Browse files

note section name in block IDs

  • Loading branch information...
1 parent 6ccda9f commit d8ae474efc118b21adea0550571fab3a1c4d0dfe @shish committed Jan 14, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 themes/danbooru/layout.class.php
@@ -157,15 +157,16 @@ public function display_page($page) {
function block_to_html($block, $hidable=false) {
$h = $block->header;
+ $s = $block->section;
$b = $block->body;
$html = "";
if($hidable) {
- $i = str_replace(' ', '_', $h);
+ $i = str_replace(' ', '_', $h.$s);
if(!is_null($h)) $html .= "\n<h3 id='$i-toggle' onclick=\"toggle('$i')\">$h</h3>\n";
if(!is_null($b)) $html .= "<div id='$i'>$b</div>\n";
}
else {
- $i = str_replace(' ', '_', $h);
+ $i = str_replace(' ', '_', $h.$s);
if(!is_null($h)) $html .= "\n<h3>$h</h3>\n";
if(!is_null($b)) $html .= "<div id='$i'>$b</div>\n";
}

0 comments on commit d8ae474

Please sign in to comment.