From b2591bd1b609849d2ea8ba1a01da2deab7794fc2 Mon Sep 17 00:00:00 2001 From: Flummi Date: Tue, 20 Dec 2022 13:26:32 +0100 Subject: [PATCH] footer schmooter --- css/style.css | 8 ++++++++ index.php | 5 ++++- tpl/layout.html | 6 ++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/css/style.css b/css/style.css index 9f70db0..07b4eab 100644 --- a/css/style.css +++ b/css/style.css @@ -64,6 +64,14 @@ body { padding: .75rem 1rem; } +/* Footer */ +footer { + position: fixed; + bottom: 0; + width: 100%; + background-color: var(--bs-gray-100); +} + /* custom */ ul.list-top > li::before { counter-increment: toplist; diff --git a/index.php b/index.php index c195c8f..d942089 100644 --- a/index.php +++ b/index.php @@ -9,10 +9,13 @@ require_once('./inc/router.inc.php'); $tpl = (object)$tpl; +$generated = round(microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'], 5); + if(!@$tpl->debug) { tpl::view('tpl/' . $tpl->file, array_merge([ - 'page' => $_page + 'page' => $_page, + 'generated' => $generated ], gettype($tpl->data) !== 'string' ? $tpl->data : []) ); diff --git a/tpl/layout.html b/tpl/layout.html index 1b7399c..06b3c46 100644 --- a/tpl/layout.html +++ b/tpl/layout.html @@ -41,6 +41,12 @@ + +