From d79fb0f0ce4744974d45d7d4e80c3af8c2cca717 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Sun, 21 Jul 2024 13:23:33 +0200 Subject: Switch to more flexible params system and add active navlink state --- src/template.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/template.php') diff --git a/src/template.php b/src/template.php index 6e2ad0c..ca781b9 100644 --- a/src/template.php +++ b/src/template.php @@ -1,9 +1,14 @@ - + (($params["active-link"] ?? null) === $ln) ? ' active' : ''; + +?> - <?= htmlentities($title) ?> + <?= htmlentities($params["title"] ?? "") ?> @@ -27,7 +32,7 @@ - -