aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/side_navigation.php
diff options
context:
space:
mode:
authorwinter2025-01-16 20:21:42 +0000
committerwinter2025-01-16 20:21:42 +0000
commitb1d6fbc4d740324d96d7fe2677fb15b9b59d20ea (patch)
treeae2c996cc6a42b3a42437a7ec8812cd184644817 /templates/side_navigation.php
parent8de5608976dc8a73a400267601acb4c8e127de5a (diff)
follow requests
Diffstat (limited to 'templates/side_navigation.php')
-rw-r--r--templates/side_navigation.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/side_navigation.php b/templates/side_navigation.php
new file mode 100644
index 0000000..d9a2dfd
--- /dev/null
+++ b/templates/side_navigation.php
@@ -0,0 +1,13 @@
+<ul class="sideNavigation">
+ <?php foreach ($links as $entry): ?>
+ <li>
+ <a href="<?= $entry['href'] ?>">
+ <div class="icon material-symbols-outlined"><?= $entry['icon'] ?></div>
+ <div><?= $entry['label'] ?></div>
+ <?php if (isset($entry['unreadCount']) && $entry['unreadCount'] > 0) {
+ call_template('unread_indicator', ['count' => $entry['unreadCount']]);
+ } ?>
+ </a>
+ </li>
+ <?php endforeach; ?>
+</ul> \ No newline at end of file