diff --git a/lib/shimmie.js b/lib/shimmie.js index 8b14c4c9..2adf2c02 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]).hide(); + $("#"+sidebar_hidden[i]+" .blockbody").hide(); }; $(".shm-toggler").each(function(idx, elm) { var tid = $(elm).data("toggle-id"); - var tob = $("#"+tid); + 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 b95ca089..1b5832a7 100644 --- a/themes/danbooru/layout.class.php +++ b/themes/danbooru/layout.class.php @@ -238,19 +238,19 @@ EOD; $h = $block->header; $s = $block->section; $b = $block->body; - $html = ""; + $i = str_replace(' ', '_', $h.$s); + $html = "
"; if($hidable) { - $i = str_replace(' ', '_', $h.$s); if(!is_null($h)) $html .= "\n

$h

\n"; - if(!is_null($b)) $html .= "
$b
\n"; } else { - $i = str_replace(' ', '_', $h.$s); if(!is_null($h)) $html .= "\n

$h

\n"; - if(!is_null($b)) $html .= "
$b
\n"; } + if(!is_null($b)) $html .= "
$b
\n"; + $html .= "
"; return $html; } + private function navlinks($link, $desc, $pages_matched) { /** * Woo! We can actually SEE THE CURRENT PAGE!! (well... see it highlighted in the menu.) diff --git a/themes/default/layout.class.php b/themes/default/layout.class.php index aec83590..1ff6838c 100644 --- a/themes/default/layout.class.php +++ b/themes/default/layout.class.php @@ -92,21 +92,12 @@ EOD; private function block_to_html($block, $hidable=false, $salt="") { $h = $block->header; $b = $block->body; - $html = ""; $i = str_replace(' ', '_', $h) . $salt; + $html = "
"; $h_toggler = $hidable ? " shm-toggler" : ""; - if(!is_null($h)) $html .= " -

$h

- "; - if(!is_null($b)) { - if(strpos($b, "") === FALSE) { - $html .= "
$b
"; - } - else { - $html .= "
$b
"; - } - } - + if(!is_null($h)) $html .= "

$h

"; + if(!is_null($b)) $html .= "
$b
"; + $html .= "
"; return $html; } } diff --git a/themes/default/style.css b/themes/default/style.css index 242e4553..a3e79b73 100644 --- a/themes/default/style.css +++ b/themes/default/style.css @@ -21,15 +21,15 @@ H3 { text-align: center; margin: 0px; } -.hrr { +SECTION>H3 { background: #CCC; border: 1px solid #BBB; } -.brr, .thumb { +SECTION>.blockbody, .thumb { background: #DDD; border: 1px solid #CCC; } -.brr, .hrr, H1, FOOTER, .thumb { +SECTION>.blockbody, SECTION>H3, H1, FOOTER, .thumb { margin: 8px; padding: 8px; border-radius: 12px; /* standard, webkit, opera */ @@ -103,9 +103,6 @@ NAV .blockbody { NAV TABLE { width: 100%; } -NAV TD { - vertical-align: middle; -} NAV INPUT { width: 100%; padding: 0px; diff --git a/themes/futaba/layout.class.php b/themes/futaba/layout.class.php index 09751549..e9ec5fbd 100644 --- a/themes/futaba/layout.class.php +++ b/themes/futaba/layout.class.php @@ -97,10 +97,11 @@ EOD; function block_to_html($block, $hidable=false, $salt="") { $h = $block->header; $b = $block->body; - $html = ""; $i = str_replace(' ', '_', $h) . $salt; + $html = "
"; if(!is_null($h)) $html .= "\n

$h

\n"; - if(!is_null($b)) $html .= "
$b
\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 cf7a8d89..41286d81 100644 --- a/themes/lite/layout.class.php +++ b/themes/lite/layout.class.php @@ -200,8 +200,8 @@ EOD; private function block_to_html($block, $hidable=false, $salt="") { $h = $block->header; $b = $block->body; - $html = ""; $i = str_replace(' ', '_', $h) . $salt; + $html = "
"; if(!is_null($h)) { if($salt == "main") { $html .= ""; @@ -210,17 +210,16 @@ EOD; } } if(!is_null($b)) { - //if(strpos($b, "")) { if($salt =="main") { - $html .= "
$b
"; + $html .= "
$b
"; } else { $html .= " - + "; } } - + $html .= "
"; return $html; } diff --git a/themes/warm/layout.class.php b/themes/warm/layout.class.php index e3552489..44605d7f 100644 --- a/themes/warm/layout.class.php +++ b/themes/warm/layout.class.php @@ -106,30 +106,11 @@ EOD; private function block_to_html($block, $hidable=false, $salt="") { $h = $block->header; $b = $block->body; - $html = ""; $i = str_replace(' ', '_', $h) . $salt; - if(!is_null($h)) $html .= " -
-
-

$h

-
-
- "; - if(!is_null($b)) { - if(strpos($b, "")) { - $html .= "
$b
"; - } - else { - $html .= " -
-
-
$b
-
-
- "; - } - } - + $html = "
"; + if(!is_null($h)) $html .= "

$h

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