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