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_theme.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_theme.php')
-rw-r--r-- | modules/rss/helpers/rss_theme.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/rss/helpers/rss_theme.php b/modules/rss/helpers/rss_theme.php index 0f12b475..52d988bf 100644 --- a/modules/rss/helpers/rss_theme.php +++ b/modules/rss/helpers/rss_theme.php @@ -18,18 +18,6 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class rss_theme_Core { - static function head($theme) { - if ($theme->item()) { - $url = rss::item_feed($theme->item()); - } else if ($theme->tag()) { - $url = rss::tag_feed($theme->tag()); - } - - if (!empty($url)) { - return "<link rel=\"alternate\" type=\"" . rest::RSS . "\" href=\"$url\" />"; - } - } - static function sidebar_blocks($theme) { // @todo this needs to be data driven if (!$theme->item()) { |