forked from Cavemanon/cavepaintings
add subheading support to all themes
This commit is contained in:
@@ -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 "<p>error: {$block->header} using an unknown section ({$block->section})";
|
||||
break;
|
||||
@@ -70,6 +74,8 @@ $header_html
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
$sub_block_html
|
||||
|
||||
|
||||
<div id="nav">$left_block_html</div>
|
||||
<div id="body">$main_block_html</div>
|
||||
|
Reference in New Issue
Block a user