script("comment.js"); return ""; } static function photo_bottom($theme) { $block = new Block; $block->css_id = "gComments"; $block->title = t("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; } }