summaryrefslogtreecommitdiff
path: root/modules/rss/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-24 19:19:58 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-24 19:19:58 +0000
commit550d46da666a1159eda58fba17b1f3d920682d0c (patch)
treed4458d17dacc4889afe0c5e11fe6c9f28012b176 /modules/rss/helpers
parent5b35490be1e58d32f2dcc5c3f948ce821051c596 (diff)
Added a block to the siebar that lists the available feeds
Diffstat (limited to 'modules/rss/helpers')
-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;
+ }
}