mirror of
https://github.com/daledavies/jump.git
synced 2026-05-07 05:16:42 +02:00
Adds time and weather
This commit is contained in:
@@ -36,6 +36,8 @@ class Config {
|
||||
'cachebypass',
|
||||
'cachedir',
|
||||
'noindex',
|
||||
'latlong',
|
||||
'owmapikey'
|
||||
];
|
||||
|
||||
public function __construct() {
|
||||
|
||||
@@ -14,7 +14,7 @@ class Greeting {
|
||||
|
||||
public function __construct() {
|
||||
$this->greetings = [
|
||||
03 => 'morning',
|
||||
0 => 'morning',
|
||||
12 => 'afternoon',
|
||||
16 => 'evening',
|
||||
19 => 'night'
|
||||
|
||||
@@ -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')
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user