[BS5] add theme selector

This commit is contained in:
FreddleSpl0it
2022-06-14 16:31:21 +02:00
parent 7384aab2f4
commit 37b4ff811d
5 changed files with 42 additions and 1 deletions

View File

@@ -252,7 +252,7 @@ $css_minifier = new CSSminifierExtended();
$css_dir = array_diff(scandir('/web/css/build'), array('..', '.'));
// get customized ui data
$UI_TEXTS = customize('get', 'ui_texts');
$UI_THEME = "lumen"; // TODO: customize('get', 'ui_theme');
$UI_THEME = customize('get', 'ui_theme');
// minify bootstrap theme
if (file_exists('/web/css/themes/'.$UI_THEME.'-bootstrap.css'))
$css_minifier->add('/web/css/themes/'.$UI_THEME.'-bootstrap.css');