示例#1
0
文件: output.php 项目: 4otaku/draw
	public static function latest ($count, $limit) {
		$worker = new Comments_Output ();		
		
		$query = array();
		$worker->main($query, $count, $limit);
		
		foreach ($worker->items as $id => $item) {
			if (!($item instanceOf Item_Comment_Block)) {
				unset($worker->items[$id]);
			} else {
				$item->postprocess();
				$item->set_small_thumbnail();
			}
		}
		
		return $worker->items;
	}
示例#2
0
文件: output.php 项目: 4otaku/draw
	public function main ($query) {
		
		parent::main($query);
		
		$this->get_latest_art();
		
		$this->items['comments'] = Comments_Output::latest(
			Config::settings('latest_comments', 'block_limit'), 
			Config::settings('latest_comments', 'comment_limit')
		);
	}