t("Recent comments")); } static function get($block_id) { $block = new Block(); switch ($block_id) { case "recent_comments": $block->css_id = "g-recent-comments"; $block->title = t("Recent comments"); $block->content = new View("admin_block_recent_comments.html"); $block->content->comments = ORM::factory("comment")->order_by("created", "DESC")->limit(5)->find_all(); break; } return $block; } }