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/polar_rose/helpers/polar_rose_block.php | 50 ------------------------- modules/polar_rose/helpers/polar_rose_theme.php | 50 +++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 50 deletions(-) delete mode 100644 modules/polar_rose/helpers/polar_rose_block.php create mode 100644 modules/polar_rose/helpers/polar_rose_theme.php (limited to 'modules/polar_rose/helpers') diff --git a/modules/polar_rose/helpers/polar_rose_block.php b/modules/polar_rose/helpers/polar_rose_block.php deleted file mode 100644 index 85486917..00000000 --- a/modules/polar_rose/helpers/polar_rose_block.php +++ /dev/null @@ -1,50 +0,0 @@ -item()) { - $url = media_rss::item_feed($theme->item()); - } else if ($theme->tag()) { - $url = media_rss::tag_feed($theme->tag()); - } - - // Polar Rose doesn't understand relative URLs. Hack around that until they fix it. - $url = url::abs_site(substr($url, strpos($url, "index.php") + 10)); - - return "" . - ""; - } - } - - static function page_bottom($theme) { - return "
"; - } -} diff --git a/modules/polar_rose/helpers/polar_rose_theme.php b/modules/polar_rose/helpers/polar_rose_theme.php new file mode 100644 index 00000000..aefc6713 --- /dev/null +++ b/modules/polar_rose/helpers/polar_rose_theme.php @@ -0,0 +1,50 @@ +item()) { + $url = media_rss::item_feed($theme->item()); + } else if ($theme->tag()) { + $url = media_rss::tag_feed($theme->tag()); + } + + // Polar Rose doesn't understand relative URLs. Hack around that until they fix it. + $url = url::abs_site(substr($url, strpos($url, "index.php") + 10)); + + return "" . + ""; + } + } + + static function page_bottom($theme) { + return "
"; + } +} -- cgit v1.2.3