44 < meta charset ="utf-8 ">
55 < link rel ="icon " href ="/images/favicon.ico " type ="image/x-icon ">
66 < title > < ?php echo $_SERVER['HTTP_HOST']; ?> - < ?=_($TAB)?> - < ?=_('Hestia Control Panel');?> </ title >
7- <!-- Load base theme-->
7+ <!-- Load base system theme-->
88 < link type ="text/css " rel ="stylesheet " href ="/css/themes/default.min.css?<?=JS_LATEST_UPDATE?> " rel ="preload " />
9- < ? if ($_SESSION['THEME'] !== 'default') {?>
10- <!-- Load provided theme -->
11- < link type ="text/css " rel ="stylesheet " href ="/css/themes/<?php echo $_SESSION['THEME']; ?>.min.css?<?php echo rand(); ?> " rel ="preload " />
12- <!-- Load custom theme -->
13- < link type ="text/css " rel ="stylesheet " href ="/css/themes/custom/<?php echo $_SESSION['THEME']; ?>.css?<?php echo rand(); ?> " rel ="preload " />
9+ < ? if (!empty($_SESSION['userTheme'])) {
10+ $selected_theme = $_SESSION['userTheme'];
11+ } else {
12+ $selected_theme = $_SESSION['THEME'];
13+ }
14+ ?>
15+ <!-- Load custom theme -->
16+ < ? if ($selectedTheme !== 'default') {?>
17+ <!-- Load HestiaCP-shipped themes (minified, updated/overwritten with updates) - ($HESTIA/web/css/themes/*.min.css) -->
18+ < link type ="text/css " rel ="stylesheet " href ="/css/themes/<?php echo $selected_theme; ?>.min.css?<?php echo rand(); ?> " rel ="preload " />
19+ <!-- Load custom theme files ($HESTIA/web/css/themes/custom/*.css) -->
20+ < link type ="text/css " rel ="stylesheet " href ="/css/themes/custom/<?php echo $selected_theme; ?>.css?<?php echo rand(); ?> " rel ="preload " />
1421 < ? } ?>
1522 < link type ="text/css " href ="/css/dependencies/animate.min.css?<?=JS_LATEST_UPDATE?> " rel ="stylesheet " rel ="preload " />
1623 < link type ="text/css " href ="/css/dependencies/jquery-custom-dialogs.css?<?=JS_LATEST_UPDATE?> " rel ="stylesheet " rel ="preload " />
3037</ head >
3138< body class ="body-<?=strtolower($TAB)?> lang-<?=$_SESSION['language']?> ">
3239 < ?php if (($_SESSION['DEBUG_MODE']) == "true" ) {?>
33- < div style ="font-size:12px !important; padding:8px ; ">
40+ < div style ="font-size:12px !important; padding:12px;position:sticky;top:0;z-index:3000;background-color:#fff ; ">
3441 < ?php
3542 echo "< h3 > Server Variables</ h3 > ";
3643 foreach ($_SERVER as $key=> $val)
4249 echo "< b > ".$key."= </ b > ".$val." ";
4350 ?>
4451 </ div >
45- < ?php } ?>
52+ < ?php } ?>
53+
0 commit comments