summaryrefslogtreecommitdiff
path: root/modules/rss/helpers/rss_theme.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/rss/helpers/rss_theme.php')
-rw-r--r--modules/rss/helpers/rss_theme.php14
1 files changed, 14 insertions, 0 deletions
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 "<link rel=\"alternate\" type=\"" . rest::RSS . "\" href=\"$url\" />";
}
}
+
+ 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;
+ }
}