aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--picture.php9
-rw-r--r--template/yoga/header.tpl3
2 files changed, 11 insertions, 1 deletions
diff --git a/picture.php b/picture.php
index 89fbe04ab..7530b5f1b 100644
--- a/picture.php
+++ b/picture.php
@@ -436,8 +436,15 @@ if ( isset( $_GET['slideshow'] ) )
$page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
$page['slideshow'] = true;
if ( $conf['light_slideshow'] )
- {
+ { // Change template file
+ // Add local-slideshow.css file if exists
$template->set_filename('picture', 'slideshow.tpl');
+ $css = get_root_url() . get_themeconf('template_dir') . '/theme/'
+ . get_themeconf('theme') . '/local-slideshow.css';
+ if (file_exists($css))
+ {
+ $template->assign_block_vars('slideshow', array());
+ }
}
if ( isset($page['next_item']) )
{
diff --git a/template/yoga/header.tpl b/template/yoga/header.tpl
index fed04fb48..2dd439b24 100644
--- a/template/yoga/header.tpl
+++ b/template/yoga/header.tpl
@@ -43,6 +43,9 @@ the "text/nonsense" prevents gecko based browsers to load it -->
<link rel="stylesheet" type="text/css" media="print" href="{pwg_root}template/{themeconf:template}/print.css">
<link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/default-colors.css">
<link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/theme/{themeconf:theme}/theme.css">
+<!-- BEGIN slideshow -->
+<link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/theme/{themeconf:theme}/local-slideshow.css">
+<!-- END slideshow -->
{themeconf:local_head}
<!-- BEGIN prefetch -->
<link rel="prefetch" href="{prefetch.URL}">