set_title("Comments"); $page->set_heading("Comments"); $page->add_block(new Block("Navigation", $this->build_navigation($current_page, $total_pages), "left")); $page->add_block(new Paginator("comment/list", null, $current_page, $total_pages), 90); } private function build_navigation($page_number, $total_pages) { $prev = $page_number - 1; $next = $page_number + 1; $h_prev = ($page_number <= 1) ? "Prev" : "Prev"; $h_index = "Index"; $h_next = ($page_number >= $total_pages) ? "Next" : "Next"; return "$h_prev | $h_index | $h_next"; } // FIXME: privatise this public function build_postbox($image_id) { $i_image_id = int_escape($image_id); return "
"; } public function add_comment_list($page, $image, $comments, $position, $with_postbox) { $html = "You need to create an account before you can comment