summaryrefslogtreecommitdiff
path: root/modules/comment/helpers/comment_block.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/helpers/comment_block.php')
-rw-r--r--modules/comment/helpers/comment_block.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/modules/comment/helpers/comment_block.php b/modules/comment/helpers/comment_block.php
index 47025a6c..7d132646 100644
--- a/modules/comment/helpers/comment_block.php
+++ b/modules/comment/helpers/comment_block.php
@@ -25,7 +25,19 @@ class comment_block_Core {
}
public static function photo_bottom($theme) {
- return comment::block($theme, true);
+ $block = new Block;
+ $block->id = "gComments";
+ $block->title = _("Comments");
+
+ $view = new View("comments.html");
+ $view->comments = ORM::factory("comment")
+ ->where("item_id", $theme->item()->id)
+ ->orderby("created", "ASC")
+ ->find_all();
+
+ $block->content = $view;
+ $block->content .= comment::get_add_form($theme->item())->render("form.html");
+ return $block;
}
public static function admin_dashboard_blocks($theme) {