diff options
author | vdigital <vdigital@piwigo.org> | 2007-11-22 23:49:36 +0000 |
---|---|---|
committer | vdigital <vdigital@piwigo.org> | 2007-11-22 23:49:36 +0000 |
commit | 5965bd749a85df6a10d2563ccada65bc1c9a700f (patch) | |
tree | 024109068e45daeafc490fffa7d3a23a066b9c77 /picture.php | |
parent | e50433eb0155b086fc625089b6758df1eb723cb5 (diff) |
New feature: 745: Separate CSS for slideshow
git-svn-id: http://piwigo.org/svn/trunk@2169 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | picture.php | 9 |
1 files changed, 8 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']) ) { |