subheading section in the default theme

This commit is contained in:
Shish 2009-09-19 15:31:09 +01:00
parent 6b60b6f58b
commit cb4ce32a28

View file

@ -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>