get_string('theme', 'default'); $data_href = get_base_href(); $contact_link = contact_link(); $header_html = $this->get_all_html_headers(); $left_block_html = ""; $right_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 "right": $right_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; // $block->get_html(true); break; default: print "

error: {$block->header} using an unknown section ({$block->section})"; break; } } $debug = get_debug_info(); $contact = empty($contact_link) ? "" : "
Contact"; $subheading = empty($this->subheading) ? "" : "

{$this->subheading}
"; $wrapper = ""; if (strlen($this->heading) > 100) { $wrapper = ' style="height: 3em; overflow: auto;"'; } $flash_html = $this->flash ? "".nl2br(html_escape(implode("\n", $this->flash)))."" : ""; $generated = autodate(date('c')); $debug .= "; generated $generated"; $query = !empty($this->_search_query) ? html_escape(Tag::implode($this->_search_query)) : ""; $self = _get_query(); # $header_html_thing = file_get_contents("themes/rule34v2/header.inc"); print << {$this->title} $header_html $sub_block_html
$flash_html $main_block_html
EOD; } }