diff options
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r-- | modules/gallery/helpers/gallery_menu.php | 3 | ||||
-rw-r--r-- | modules/gallery/helpers/gallery_theme.php | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_menu.php b/modules/gallery/helpers/gallery_menu.php index fd4ec241..4499e50a 100644 --- a/modules/gallery/helpers/gallery_menu.php +++ b/modules/gallery/helpers/gallery_menu.php @@ -91,6 +91,9 @@ class gallery_menu_Core { static function album($menu, $theme) { } + static function tag($menu, $theme) { + } + static function photo($menu, $theme) { if (access::can("view_full", $theme->item())) { $menu 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") . "\" />"; |