diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-15 02:39:53 +0800 |
|---|---|---|
| committer | <unostar@danalan.info> | 2009-06-15 04:26:01 +0800 |
| commit | fdbffc870d84ec035068420f5a8b4292d7aade13 (patch) | |
| tree | 8976399ba14ce71b80682390c8e3574e3167dca1 /modules/tag/helpers | |
| parent | 879e81f0a1fc4477a8e563d45348330706b6da8a (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.
Signed-off-by: <unostar@danalan.info>
Diffstat (limited to 'modules/tag/helpers')
| -rw-r--r-- | modules/tag/helpers/tag_theme.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/tag/helpers/tag_theme.php b/modules/tag/helpers/tag_theme.php index a32d71b6..45f55986 100644 --- a/modules/tag/helpers/tag_theme.php +++ b/modules/tag/helpers/tag_theme.php @@ -20,7 +20,11 @@ class tag_theme_Core { static function head($theme) { $url = url::file("modules/tag/js/tag.js"); - return "<script src=\"$url\" type=\"text/javascript\"></script>"; + $head[] = "<script src=\"$url\" type=\"text/javascript\"></script>"; + if ($theme->tag() && module::is_active("rss")) { + $head[] = rss::feed_link("tags/{$theme->tag()->id}"); + } + return implode("\n", $head); } static function sidebar_blocks($theme) { |
