From 2a924a18404e7446aca1bee267e74853b97c225c Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 3 Jan 2010 09:56:07 +0000 Subject: [PATCH] add subheading support to all themes --- themes/danbooru/layout.class.php | 5 +++++ themes/futaba/layout.class.php | 5 +++++ themes/old_default/layout.class.php | 5 +++++ themes/warm/layout.class.php | 6 ++++++ 4 files changed, 21 insertions(+) diff --git a/themes/danbooru/layout.class.php b/themes/danbooru/layout.class.php index 066ff34a..d8624cb6 100644 --- a/themes/danbooru/layout.class.php +++ b/themes/danbooru/layout.class.php @@ -60,6 +60,7 @@ class Layout { $left_block_html = ""; $user_block_html = ""; $main_block_html = ""; + $sub_block_html = ""; foreach($page->blocks as $block) { switch($block->section) { @@ -69,6 +70,9 @@ class Layout { case "user": $user_block_html .= $block->body; // $this->block_to_html($block, true); break; + case "subheading": + $sub_block_html .= $block->body; // $this->block_to_html($block, true); + break; case "main": if($block->header == "Images") { $block->header = " "; @@ -195,6 +199,7 @@ $header_html $subheading + $sub_block_html $left
$main_block_html
diff --git a/themes/futaba/layout.class.php b/themes/futaba/layout.class.php index e5c03eb3..89d57486 100644 --- a/themes/futaba/layout.class.php +++ b/themes/futaba/layout.class.php @@ -15,6 +15,7 @@ class Layout { $left_block_html = ""; $main_block_html = ""; + $sub_block_html = ""; foreach($page->blocks as $block) { switch($block->section) { @@ -24,6 +25,9 @@ class Layout { case "main": $main_block_html .= $this->block_to_html($block, false, "main"); break; + case "subheading": + $sub_block_html .= $block->body; // $this->block_to_html($block, true); + break; default: print "

error: {$block->header} using an unknown section ({$block->section})"; break; @@ -65,6 +69,7 @@ $header_html

{$page->heading}

$subheading + $sub_block_html $left
$main_block_html
diff --git a/themes/old_default/layout.class.php b/themes/old_default/layout.class.php index e4145270..dc1b398a 100644 --- a/themes/old_default/layout.class.php +++ b/themes/old_default/layout.class.php @@ -15,6 +15,7 @@ class Layout { $left_block_html = ""; $main_block_html = ""; + $sub_block_html = ""; foreach($page->blocks as $block) { switch($block->section) { @@ -24,6 +25,9 @@ class Layout { case "main": $main_block_html .= $this->block_to_html($block, false, "main"); break; + case "subheading": + $sub_block_html .= $block->body; // $this->block_to_html($block, true); + break; default: print "

error: {$block->header} using an unknown section ({$block->section})"; break; @@ -55,6 +59,7 @@ $header_html {$page->heading} $subheading + $sub_block_html

$main_block_html
diff --git a/themes/warm/layout.class.php b/themes/warm/layout.class.php index 9bdd7a39..a2824d7c 100644 --- a/themes/warm/layout.class.php +++ b/themes/warm/layout.class.php @@ -21,6 +21,7 @@ class Layout { $left_block_html = ""; $main_block_html = ""; $head_block_html = ""; + $sub_block_html = ""; foreach($page->blocks as $block) { switch($block->section) { @@ -33,6 +34,9 @@ class Layout { case "main": $main_block_html .= $this->block_to_html($block, false, "main"); break; + case "subheading": + $sub_block_html .= $block->body; // $this->block_to_html($block, true); + break; default: print "

error: {$block->header} using an unknown section ({$block->section})"; break; @@ -70,6 +74,8 @@ $header_html + $sub_block_html +

$main_block_html