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_theme.php | 50 +++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 modules/polar_rose/helpers/polar_rose_theme.php (limited to 'modules/polar_rose/helpers/polar_rose_theme.php') 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