mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-26 09:43:54 -04:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user