mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-31 06:02:00 +01:00
fixes #2486 add stdPgs config tab in admin
add skins and screenshots for skins add admin tpl and css update stdPgs tpl to have dynamic header section
This commit is contained in:
1 parent
0c92a8ba33
commit
27caef885e
49 files changed
+4335
-68
No files matched your search
@@ -197,6 +197,7 @@ class Template
|
||||
*/
|
||||
function set_theme($root, $theme, $path, $load_css=true, $load_local_head=true, $colorscheme='dark')
|
||||
{
|
||||
//we need themeconf before std_pgs to see what themes use_standard_pages
|
||||
$themeconf = $this->load_themeconf($root.'/'.$theme);
|
||||
|
||||
// We loop over the theme and the parent theme, so if we exclude default,
|
||||
@@ -208,6 +209,7 @@ class Template
|
||||
)
|
||||
{
|
||||
$theme = 'standard_pages';
|
||||
$themeconf = $this->load_themeconf($root.'/'.$theme);
|
||||
}
|
||||
|
||||
$this->set_template_dir($root.'/'.$theme.'/'.$path);
|
||||
@@ -237,7 +239,7 @@ class Template
|
||||
{
|
||||
$themeconf['colorscheme'] = $colorscheme;
|
||||
}
|
||||
|
||||
|
||||
$this->smarty->append('themes', $tpl_var);
|
||||
$this->smarty->append('themeconf', $themeconf, true);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user