\n"; } 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; $block->content .= comment::get_add_form($theme->item())->render("form.html"); return $block; } }