From 550d46da666a1159eda58fba17b1f3d920682d0c Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 24 Feb 2009 19:19:58 +0000 Subject: Added a block to the siebar that lists the available feeds --- modules/rss/helpers/rss_theme.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'modules/rss/helpers') diff --git a/modules/rss/helpers/rss_theme.php b/modules/rss/helpers/rss_theme.php index 2880baa5..84276a8c 100644 --- a/modules/rss/helpers/rss_theme.php +++ b/modules/rss/helpers/rss_theme.php @@ -29,4 +29,18 @@ class rss_theme_Core { return ""; } } + + static function sidebar_blocks($theme) { + $block = new Block(); + $block->css_id = "gRss"; + $block->title = t("Available RSS Feeds"); + $block->content = new View("rss_block.html"); + $block->content->feeds = array( + t("New photos or movies") => url::abs_site("rss/updates"), + t("All new comments") => url::abs_site("rss/comments"), + sprintf(t("Comments on %s"), + $theme->item()->title) => url::abs_site("rss/comments/{$theme->item()->id}") + ); + return $block; + } } -- cgit v1.2.3