get_string(SetupConfig::TITLE); $data_href = get_base_href(); $main_page = $config->get_string(SetupConfig::MAIN_PAGE); $left_block_html = ""; $main_block_html = ""; $head_block_html = ""; $sub_block_html = ""; foreach ($this->blocks as $block) { switch ($block->section) { case "left": $left_block_html .= $block->get_html(true); break; case "head": $head_block_html .= "".$block->get_html(false).""; break; case "main": $main_block_html .= $block->get_html(false); break; case "subheading": $sub_block_html .= $block->body; break; default: print "

error: {$block->header} using an unknown section ({$block->section})"; break; } } $flash_html = $this->flash_html(); $footer_html = $this->footer_html(); return << $head_block_html $sub_block_html

$flash_html $main_block_html
EOD; } }