From 22d30ccf1e3524c8009c4bd79ff05c571245c377 Mon Sep 17 00:00:00 2001 From: aschwarz Date: Sat, 29 Apr 2023 11:34:53 +0200 Subject: [PATCH] Jahreszahl Footer dynamisch --- dashboard/footer.php | 3 ++- templates/modern/dashboard/footer.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dashboard/footer.php b/dashboard/footer.php index 9a2cffc..77f4155 100644 --- a/dashboard/footer.php +++ b/dashboard/footer.php @@ -13,7 +13,8 @@ $smarty = new SmartyAdmin(); $templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html"; require_once "../language/german.inc.php"; - +$jahr = date("Y"); +$smarty->assign('jahr', "$jahr"); $smarty->assign('action', "$action"); $smarty->display("modern/dashboard/$templatename"); diff --git a/templates/modern/dashboard/footer.html b/templates/modern/dashboard/footer.html index 4baa147..a32b3fc 100644 --- a/templates/modern/dashboard/footer.html +++ b/templates/modern/dashboard/footer.html @@ -1,7 +1,7 @@