Create a sidebar for tag pages

Move the <link> for the container feed (either gallery/album/<id> or
tag/tag/<id>) back into gallery_theme

Signed-off-by:  <unostar@danalan.info>
This commit is contained in:
Bharat Mediratta
2009-06-15 17:31:24 +08:00
committed by
parent 0051c2c89b
commit 2a5ffaae7e
7 changed files with 43 additions and 16 deletions
+1 -11
View File
@@ -20,17 +20,7 @@
class slideshow_theme_Core {
static function head($theme) {
$proto = (empty($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] === "off") ? "http" : "https";
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->id}");
}
}
$buf .= "<script src=\"$proto://lite.piclens.com/current/piclens_optimized.js\"" .
return "<script src=\"$proto://lite.piclens.com/current/piclens_optimized.js\"" .
"type=\"text/javascript\"></script>";
return $buf;
}
}