Prev";
		$h_index = "Index";
		$h_next = ($page_number >= $total_pages) ? "Next" :
			"Next";
		$nav = "$h_prev | $h_index | $h_next";
		$page->set_title("Comments");
		$page->set_heading("Comments");
		$page->add_block(new Block("Navigation", $nav, "left"));
		$this->display_paginator($page, "comment/list", null, $page_number, $total_pages);
	}
	/*
	 * Add some comments to the page, probably in a sidebar
	 *
	 * $comments = an array of Comment objects to be shown
	 */
	public function display_recent_comments(Page $page, $comments) {
		$html = $this->comments_to_html($comments, true);
		$html .= "
Full List";
		$page->add_block(new Block("Comments", $html, "left"));
	}
	/*
	 * Show comments for an image
	 */
	public function display_comments(Page $page, $comments, $postbox, Image $image) {
		if($postbox) {
			$html = $this->comments_to_html($comments) . $this->build_postbox($image->id);
		}
		else {
			$html = $this->comments_to_html($comments);
		}
		$page->add_block(new Block("Comments", $html, "main", 30));
	}
	/*
	 * Add a block with thumbnail and comments, as part of the comment
	 * list page
	 */
	public function add_comment_list(Page $page, Image $image, $comments, $position, $with_postbox) {
		$html  = "
";
		$html .=   "
" . $this->build_thumb_html($image) . "
";
		$html .=   "
" . $this->comments_to_html($comments) . "
";
		$html .= "
".($this->build_postbox($image->id))."
";
		}
		else {
			// $html .= "You need to create an account before you can comment
($h_poster_ip, Del)" : "";
		$h_imagelink = $trim ? ">>>\n" : "";
		return "";
	}
	protected function build_postbox($image_id) {
		$i_image_id = int_escape($image_id);
		$hash = CommentList::get_hash();
		return "
			
			";
	}
}
?>