From 406a8e28f124f6d85377023fbfabf1852acaa710 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 28 May 2023 18:34:43 +0000 Subject: [PATCH] Moved 2021.css to assets folder and fixed header-bgs.json. --- public/{css => assets}/2021.css | 0 public/index.php | 4 ++-- tpl/ascii.php | 2 +- tpl/errors/master.php | 2 +- tpl/home/index.php | 2 +- tpl/master.php | 14 +++++++------- tpl/whois.php | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) rename public/{css => assets}/2021.css (100%) diff --git a/public/css/2021.css b/public/assets/2021.css similarity index 100% rename from public/css/2021.css rename to public/assets/2021.css diff --git a/public/index.php b/public/index.php index d0dd437..f407db4 100644 --- a/public/index.php +++ b/public/index.php @@ -71,8 +71,8 @@ $router->use('/', function($response) { $response->setPoweredBy('Makai+Index'); }); -$router->get('/header-bgs.json', function() { - return json_encode(FM_BGS); +$router->get('/header-bgs.json', function() use ($ctx) { + return $ctx->getDefaultHeaders(); }); $router->get('/now-listening', function() use ($ctx) { diff --git a/tpl/ascii.php b/tpl/ascii.php index 86522d2..ee2ca0c 100644 --- a/tpl/ascii.php +++ b/tpl/ascii.php @@ -144,7 +144,7 @@ $self->block('container', function($self) {
diff --git a/tpl/master.php b/tpl/master.php index 4b91f1a..72c2768 100644 --- a/tpl/master.php +++ b/tpl/master.php @@ -1,17 +1,17 @@ - + <?=($self->header_title ?? 'flash.moe');?> - - - - + + + +
- +
header_offset) && $self->header_offset > 0) echo " style=\"padding-bottom: {$self->header_offset}px\""; ?>>
- +
diff --git a/tpl/whois.php b/tpl/whois.php index 66c09a4..ad39de9 100644 --- a/tpl/whois.php +++ b/tpl/whois.php @@ -11,8 +11,8 @@ $self->block('container', function($self) { ?>
- - + +