feature 3133: add colorscheme parameter for themes. This way we can use the
appropriate CSS for selectize (and other things) git-svn-id: http://piwigo.org/svn/trunk@29389 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
9639897ae0
commit
ab00c52430
15 changed files with 20 additions and 18 deletions
|
|
@ -177,7 +177,7 @@ class Template
|
|||
* @param bool $load_css
|
||||
* @param bool $load_local_head
|
||||
*/
|
||||
function set_theme($root, $theme, $path, $load_css=true, $load_local_head=true)
|
||||
function set_theme($root, $theme, $path, $load_css=true, $load_local_head=true, $colorscheme='dark')
|
||||
{
|
||||
$this->set_template_dir($root.'/'.$theme.'/'.$path);
|
||||
|
||||
|
|
@ -203,6 +203,12 @@ class Template
|
|||
$tpl_var['local_head'] = realpath($root.'/'.$theme.'/'.$themeconf['local_head'] );
|
||||
}
|
||||
$themeconf['id'] = $theme;
|
||||
|
||||
if (!isset($themeconf['colorscheme']))
|
||||
{
|
||||
$themeconf['colorscheme'] = $colorscheme;
|
||||
}
|
||||
|
||||
$this->smarty->append('themes', $tpl_var);
|
||||
$this->smarty->append('themeconf', $themeconf, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue