Theme: Misc improvements

This commit is contained in:
Nate
2019-03-27 16:38:23 -06:00
parent d8cde407e8
commit 49240ee31f
3 changed files with 22 additions and 6 deletions

View File

@@ -34,10 +34,16 @@ echo "<link rel='stylesheet' type='text/css' href='<!--{project_path}-->/resourc
echo "<link rel='stylesheet' type='text/css' href='<!--{project_path}-->/resources/bootstrap/css/bootstrap-colorpicker.min.css'>\n";
echo "<link rel='stylesheet' type='text/css' href='<!--{project_path}-->/themes/".escape($_SESSION['domain']['template']['name'])."/css.php".($default_login ? '?login=default' : null)."'>\n";
//load custom css
//link to custom css file
if ($_SESSION['theme']['custom_css']['text'] != '') {
echo "<link rel='stylesheet' type='text/css' href='".escape($_SESSION['theme']['custom_css']['text'])."'>\n\n";
}
//output custom css
if ($_SESSION['theme']['custom_css_code']['text'] != '') {
echo "<style>\n";
echo escape($_SESSION['theme']['custom_css_code']['text']);
echo "</style>\n\n";
}
//set fav icon
$favicon = (isset($_SESSION['theme']['favicon']['text'])) ? escape($_SESSION['theme']['favicon']['text']) : '<!--{project_path}-->/themes/default/favicon.ico';