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/tag/helpers/tag_block.php | 46 --------------------------------------- modules/tag/helpers/tag_theme.php | 46 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 46 deletions(-) delete mode 100644 modules/tag/helpers/tag_block.php create mode 100644 modules/tag/helpers/tag_theme.php (limited to 'modules/tag/helpers') diff --git a/modules/tag/helpers/tag_block.php b/modules/tag/helpers/tag_block.php deleted file mode 100644 index 8436dd08..00000000 --- a/modules/tag/helpers/tag_block.php +++ /dev/null @@ -1,46 +0,0 @@ -"; - } - - static function sidebar_blocks($theme) { - $block = new Block(); - $block->css_id = "gTag"; - $block->title = t("Popular Tags"); - $block->content = new View("tag_block.html"); - $block->content->cloud = tag::cloud(30); - - if ($theme->page_type() != "tag" && access::can("edit", $theme->item())) { - $controller = new Tags_Controller(); - $block->content->form = tag::get_add_form($theme->item()); - } else { - $block->content->form = ""; - } - - return $block; - } - - static function sort_by_name($tag1, $tag2) { - return strcasecmp($tag1->name, $tag2->name); - } -} \ No newline at end of file diff --git a/modules/tag/helpers/tag_theme.php b/modules/tag/helpers/tag_theme.php new file mode 100644 index 00000000..7a014d24 --- /dev/null +++ b/modules/tag/helpers/tag_theme.php @@ -0,0 +1,46 @@ +"; + } + + static function sidebar_blocks($theme) { + $block = new Block(); + $block->css_id = "gTag"; + $block->title = t("Popular Tags"); + $block->content = new View("tag_block.html"); + $block->content->cloud = tag::cloud(30); + + if ($theme->page_type() != "tag" && access::can("edit", $theme->item())) { + $controller = new Tags_Controller(); + $block->content->form = tag::get_add_form($theme->item()); + } else { + $block->content->form = ""; + } + + return $block; + } + + static function sort_by_name($tag1, $tag2) { + return strcasecmp($tag1->name, $tag2->name); + } +} \ No newline at end of file -- cgit v1.2.3