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 @@ + +