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; }
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') ); }