forked from Cavemanon/cavepaintings
add subheading support to all themes
This commit is contained in:
@@ -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
|
||||
</ul>
|
||||
</div>
|
||||
$subheading
|
||||
$sub_block_html
|
||||
|
||||
$left
|
||||
<div id="body" class="$withleft">$main_block_html</div>
|
||||
|
Reference in New Issue
Block a user