diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-14 11:39:53 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-14 11:39:53 -0700 |
commit | 484796e7cc54c3690462ee061850b563c4d5da16 (patch) | |
tree | 7de9ba729b48ac12b671f363a77a826f9a2b99a4 /modules/rss/helpers/rss.php | |
parent | b32670f0300b24ad8366d154c3b9a6853f9c710f (diff) |
Remove rss:item_feed, rss::tag_fead and rss_theme::head and move that
functionality in the <module_name>_theme::head function. Created rss::feed_link
to wrap the module supplied uri in the html link element.
Diffstat (limited to 'modules/rss/helpers/rss.php')
-rw-r--r-- | modules/rss/helpers/rss.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/rss/helpers/rss.php b/modules/rss/helpers/rss.php index cf42ec28..e4d6f5e9 100644 --- a/modules/rss/helpers/rss.php +++ b/modules/rss/helpers/rss.php @@ -19,13 +19,9 @@ */ class rss_Core { - static function item_feed($item) { - $id = $item->is_album() ? $item->id : $item->parent_id; - return url::site("rss/feed/albums/$id"); - } - - static function tag_feed($tag) { - return url::site("rss/feed/tags/$tag->id}"); + static function feed_link($uri) { + $url = url::site("rss/feed/$uri"); + return "<link rel=\"alternate\" type=\"" . rest::RSS . "\" href=\"$url\" />"; } /** |