css("comment.css"); $theme->script("comment.js"); return ""; } static function admin_head($theme) { $theme->css("comment.css"); return ""; } 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") ->orderby("created", "ASC") ->find_all(); $block->content = $view; return $block; } }