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 | |
parent | e50433eb0155b086fc625089b6758df1eb723cb5 (diff) |
New feature: 745: Separate CSS for slideshow
git-svn-id: http://piwigo.org/svn/trunk@2169 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | picture.php | 9 | ||||
-rw-r--r-- | template/yoga/header.tpl | 3 |
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}"> |