Jahreszahl Footer dynamisch

This commit is contained in:
aschwarz 2023-04-29 11:34:53 +02:00
parent be84b0749f
commit 22d30ccf1e
2 changed files with 3 additions and 2 deletions

View File

@ -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");

View File

@ -1,7 +1,7 @@
<footer class="py-4 bg-light mt-auto">
<div class="container-fluid px-4">
<div class="d-flex align-items-center justify-content-between small">
<div class="text-muted">Copyright &copy; JU & MI 2023</div>
<div class="text-muted">Copyright &copy; JU & MI {$jahr}</div>
</div>
</div>
</footer>