header.html choose also in config
This commit is contained in:
parent
46f8aa7472
commit
b969d84fcc
2 changed files with 2 additions and 1 deletions
1
config.ini
Normal file → Executable file
1
config.ini
Normal file → Executable file
|
@ -19,6 +19,7 @@ lang = en
|
|||
highlight = true
|
||||
|
||||
[custom]
|
||||
;header = data/header.html
|
||||
;styles[] = static/styles/custom1.css
|
||||
;styles[] = static/styles/custom2.css
|
||||
;scripts = static/styles/scripts.css
|
||||
|
|
2
index.php
Normal file → Executable file
2
index.php
Normal file → Executable file
|
@ -24,7 +24,7 @@ for($m=0;$m<60;$m+=10){
|
|||
$minutes .= sprintf('<option value="%d">%02d</option>', $m, $m);
|
||||
}
|
||||
|
||||
$header_path = PROJECT_PATH.'data/header.html';
|
||||
$header_path = PROJECT_PATH.Config::get_safe("header", 'data/header.html');
|
||||
if(file_exists($header_path)){
|
||||
$header = file_get_contents($header_path);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue