diff options
Diffstat (limited to 'modules/gallery/helpers/gallery_theme.php')
-rw-r--r-- | modules/gallery/helpers/gallery_theme.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php index f955e8f7..c28c9040 100644 --- a/modules/gallery/helpers/gallery_theme.php +++ b/modules/gallery/helpers/gallery_theme.php @@ -42,6 +42,14 @@ class gallery_theme_Core { $buf .= html::script("modules/gallery/js/fullsize.js"); } + if (module::is_active("rss")) { + if ($item = $theme->item()) { + $buf = rss::feed_link("gallery/album/{$item->id}"); + } else if ($tag = $theme->tag()) { + $buf = rss::feed_link("tag/tag/{$tag->id}"); + } + } + if ($session->get("l10n_mode", false)) { $buf .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . url::file("modules/gallery/css/l10n_client.css") . "\" />"; |