css("comment.css") . $theme->script("comment.js"); } static function admin_head($theme) { return $theme->css("comment.css"); } static function photo_bottom($theme) { $block = new Block; $block->css_id = "g-comments"; $block->title = t("Comments"); $block->anchor = "comments"; $view = new View("comments.html"); $view->comments = ORM::factory("comment") ->where("item_id", "=", $theme->item()->id) ->where("state", "=", "published") ->order_by("created", "ASC") ->find_all(); $block->content = $view; return $block; } }