subheading section in the default theme
This commit is contained in:
parent
6b60b6f58b
commit
cb4ce32a28
1 changed files with 6 additions and 1 deletions
|
@ -21,6 +21,7 @@ class Layout {
|
|||
|
||||
$left_block_html = "";
|
||||
$main_block_html = "";
|
||||
$sub_block_html = "";
|
||||
|
||||
foreach($page->blocks as $block) {
|
||||
switch($block->section) {
|
||||
|
@ -30,6 +31,9 @@ class Layout {
|
|||
case "main":
|
||||
$main_block_html .= $this->block_to_html($block, false, "main");
|
||||
break;
|
||||
case "subheading":
|
||||
$sub_block_html .= $this->block_to_html($block, false, "main");
|
||||
break;
|
||||
default:
|
||||
print "<p>error: {$block->header} using an unknown section ({$block->section})";
|
||||
break;
|
||||
|
@ -59,7 +63,8 @@ $header_html
|
|||
<body>
|
||||
<h1$wrapper>{$page->heading}</h1>
|
||||
$subheading
|
||||
|
||||
$sub_block_html
|
||||
|
||||
<div id="nav">$left_block_html</div>
|
||||
<div id="body">$main_block_html</div>
|
||||
|
||||
|
|
Reference in a new issue