diff options
| author | winter | 2025-01-16 20:21:42 +0000 |
|---|---|---|
| committer | winter | 2025-01-16 20:21:42 +0000 |
| commit | b1d6fbc4d740324d96d7fe2677fb15b9b59d20ea (patch) | |
| tree | ae2c996cc6a42b3a42437a7ec8812cd184644817 /templates/side_navigation.php | |
| parent | 8de5608976dc8a73a400267601acb4c8e127de5a (diff) | |
follow requests
Diffstat (limited to 'templates/side_navigation.php')
| -rw-r--r-- | templates/side_navigation.php | 13 |
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 |
