summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_theme.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-06-14 11:39:53 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-06-14 11:39:53 -0700
commit484796e7cc54c3690462ee061850b563c4d5da16 (patch)
tree7de9ba729b48ac12b671f363a77a826f9a2b99a4 /modules/gallery/helpers/gallery_theme.php
parentb32670f0300b24ad8366d154c3b9a6853f9c710f (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/gallery/helpers/gallery_theme.php')
-rw-r--r--modules/gallery/helpers/gallery_theme.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php
index f955e8f7..290434ed 100644
--- a/modules/gallery/helpers/gallery_theme.php
+++ b/modules/gallery/helpers/gallery_theme.php
@@ -42,6 +42,10 @@ class gallery_theme_Core {
$buf .= html::script("modules/gallery/js/fullsize.js");
}
+ if ($theme->item()) {
+ $buf .= rss::feed_link("albums/{$theme->item()->id}");
+ }
+
if ($session->get("l10n_mode", false)) {
$buf .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"" .
url::file("modules/gallery/css/l10n_client.css") . "\" />";