diff --git a/ext/setup/theme.php b/ext/setup/theme.php index 64b0903c..c416c5e0 100644 --- a/ext/setup/theme.php +++ b/ext/setup/theme.php @@ -92,7 +92,7 @@ class SetupTheme extends Themelet { $i = preg_replace('/[^a-zA-Z0-9]/', '_', $h) . "-setup"; $html = "
- $h + $h
$b
diff --git a/lib/shimmie.js b/lib/shimmie.js index 2adf2c02..a6336397 100644 --- a/lib/shimmie.js +++ b/lib/shimmie.js @@ -54,11 +54,11 @@ $(document).ready(function() { var sidebar_hidden = ($.cookie("sidebar-hidden") || "").split("|"); for(var i in sidebar_hidden) { - $("#"+sidebar_hidden[i]+" .blockbody").hide(); + $(sidebar_hidden[i]+" .blockbody").hide(); }; $(".shm-toggler").each(function(idx, elm) { - var tid = $(elm).data("toggle-id"); - var tob = $("#"+tid+" .blockbody"); + var tid = $(elm).data("toggle-sel"); + var tob = $(tid+" .blockbody"); $(elm).click(function(e) { tob.slideToggle("slow"); if(sidebar_hidden.indexOf(tid) == -1) { diff --git a/themes/danbooru/layout.class.php b/themes/danbooru/layout.class.php index 1b5832a7..cb782ff3 100644 --- a/themes/danbooru/layout.class.php +++ b/themes/danbooru/layout.class.php @@ -241,7 +241,7 @@ EOD; $i = str_replace(' ', '_', $h.$s); $html = "
"; if($hidable) { - if(!is_null($h)) $html .= "\n

$h

\n"; + if(!is_null($h)) $html .= "\n

$h

\n"; } else { if(!is_null($h)) $html .= "\n

$h

\n"; diff --git a/themes/default/layout.class.php b/themes/default/layout.class.php index 1ff6838c..c918a4c9 100644 --- a/themes/default/layout.class.php +++ b/themes/default/layout.class.php @@ -95,7 +95,7 @@ EOD; $i = str_replace(' ', '_', $h) . $salt; $html = "
"; $h_toggler = $hidable ? " shm-toggler" : ""; - if(!is_null($h)) $html .= "

$h

"; + if(!is_null($h)) $html .= "

$h

"; if(!is_null($b)) $html .= "
$b
"; $html .= "
"; return $html; diff --git a/themes/futaba/layout.class.php b/themes/futaba/layout.class.php index e9ec5fbd..c4136b5e 100644 --- a/themes/futaba/layout.class.php +++ b/themes/futaba/layout.class.php @@ -99,7 +99,7 @@ EOD; $b = $block->body; $i = str_replace(' ', '_', $h) . $salt; $html = "
"; - if(!is_null($h)) $html .= "\n

$h

\n"; + if(!is_null($h)) $html .= "\n

$h

\n"; if(!is_null($b)) $html .= "
$b
\n"; $html .= "
"; return $html; diff --git a/themes/lite/layout.class.php b/themes/lite/layout.class.php index 41286d81..14ea1e88 100644 --- a/themes/lite/layout.class.php +++ b/themes/lite/layout.class.php @@ -204,9 +204,9 @@ EOD; $html = "
"; if(!is_null($h)) { if($salt == "main") { - $html .= ""; + $html .= ""; } else { - $html .= ""; + $html .= ""; } } if(!is_null($b)) { diff --git a/themes/warm/layout.class.php b/themes/warm/layout.class.php index 44605d7f..3b9ea966 100644 --- a/themes/warm/layout.class.php +++ b/themes/warm/layout.class.php @@ -108,7 +108,7 @@ EOD; $b = $block->body; $i = str_replace(' ', '_', $h) . $salt; $html = "
"; - if(!is_null($h)) $html .= "

$h

"; + if(!is_null($h)) $html .= "

$h

"; if(!is_null($b)) $html .= "
$b
"; $html .= "
"; return $html;