Adds time and weather

This commit is contained in:
Dale Davies
2022-02-07 10:32:32 +00:00
parent 9d93705f03
commit ebd25a67f7
15 changed files with 384 additions and 30 deletions

View File

@@ -36,6 +36,8 @@ class Config {
'cachebypass',
'cachedir',
'noindex',
'latlong',
'owmapikey'
];
public function __construct() {

View File

@@ -14,7 +14,7 @@ class Greeting {
public function __construct() {
$this->greetings = [
03 => 'morning',
0 => 'morning',
12 => 'afternoon',
16 => 'evening',
19 => 'night'

View File

@@ -25,6 +25,8 @@ class Main {
return $template->render([
'noindex' => $this->config->parse_bool($this->config->get('noindex')),
'sitename' => $this->config->get('sitename'),
'latlong' => $this->config->get('latlong'),
'owmapikey' => $this->config->get('owmapikey')
]);
}