From 3d1ea2904d982422ce24c43b25d0d4bca6f29aa3 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 18 Jan 2009 05:01:00 +0000 Subject: Rename theme callback helpers from xxx_block to xxx_theme to make room for us to rename the dashboard helper to be a block helper since sidebar blocks are not just in the dashboard. --- modules/comment/helpers/comment_block.php | 42 ------------------------------- modules/comment/helpers/comment_theme.php | 42 +++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 42 deletions(-) delete mode 100644 modules/comment/helpers/comment_block.php create mode 100644 modules/comment/helpers/comment_theme.php (limited to 'modules/comment/helpers') diff --git a/modules/comment/helpers/comment_block.php b/modules/comment/helpers/comment_block.php deleted file mode 100644 index d8f08feb..00000000 --- a/modules/comment/helpers/comment_block.php +++ /dev/null @@ -1,42 +0,0 @@ -\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; - } -} \ No newline at end of file diff --git a/modules/comment/helpers/comment_theme.php b/modules/comment/helpers/comment_theme.php new file mode 100644 index 00000000..3861bae0 --- /dev/null +++ b/modules/comment/helpers/comment_theme.php @@ -0,0 +1,42 @@ +\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; + } +} \ No newline at end of file -- cgit v1.2.3