* Link: http://seemslegit.com * License: GPLv2 * Description: A mashup of Default, Danbooru, the interface on qwebirc, and * some other sites, packaged in a light blue color. */ class Page extends BasePage { public function render() { global $config; list($nav_links, $sub_links) = $this->get_nav_links(); $theme_name = $config->get_string(SetupConfig::THEME, 'lite'); $site_name = $config->get_string(SetupConfig::TITLE); $data_href = get_base_href(); $menu = "
"; $left_block_html = ""; $main_block_html = ""; $sub_block_html = ""; $user_block_html = ""; foreach ($this->blocks as $block) { switch ($block->section) { case "left": $left_block_html .= $this->block_to_html($block, true); break; case "main": $main_block_html .= $this->block_to_html($block, false); break; case "user": $user_block_html .= $block->body; break; case "subheading": $sub_block_html .= $this->block_to_html($block, false); break; default: print "error: {$block->header} using an unknown section ({$block->section})"; break; } } $custom_sublinks = ""; if (!empty($sub_links)) { $custom_sublinks = "
"; } $flash_html = $this->flash ? "".nl2br(html_escape(implode("\n", $this->flash)))."" : ""; if (!$this->left_enabled) { $left_block_html = ""; $main_block_html = "