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:
HWFord
2025-12-19 16:05:24 +01:00
parent 0c92a8ba33
commit 27caef885e
49 changed files with 4335 additions and 68 deletions

View File

@@ -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);
}