switch themes in config

This commit is contained in:
Miroslav Šedivý 2020-01-24 19:14:51 +01:00
parent 425bba5628
commit 764b459ffd
2 changed files with 2 additions and 1 deletions

View file

@ -20,6 +20,7 @@ lang = en
highlight = true
[custom]
theme = theme01
;header = data/header.html
;styles[] = static/styles/custom1.css
;styles[] = static/styles/custom2.css

View file

@ -67,7 +67,7 @@ if(!empty($scripts)){
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link href="static/styles/main.css?v=<?php echo Config::get("version"); ?>" rel="stylesheet" type="text/css" />
<link href="static/styles/theme01.css?v=<?php echo Config::get("version"); ?>" rel="stylesheet" type="text/css" />
<link href="static/styles/<?php echo Config::get_safe("theme", "theme01"); ?>.css?v=<?php echo Config::get("version"); ?>" rel="stylesheet" type="text/css" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans&amp;subset=all" rel="stylesheet">