diff options
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 |
