diff options
Diffstat (limited to 'templates/unread_indicator.php')
| -rw-r--r-- | templates/unread_indicator.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/templates/unread_indicator.php b/templates/unread_indicator.php index bacacc3..ecfcb43 100644 --- a/templates/unread_indicator.php +++ b/templates/unread_indicator.php @@ -1 +1,11 @@ -<span class="unreadIndicator"><?= $count ?></span>
\ No newline at end of file +<?php +use Digitigrade\Model\UserAccount; +use Digitigrade\UserSettings; + +$user = UserAccount::findByCurrentSession(); +$small = false; +if ($user != null) { + $small = (new UserSettings($user))->getBool('interface.smallUnreadIndicators') ?? false; +} +?> +<span class="unreadIndicator <?= $small ? 'reduced' : '' ?>"><?= $count ?></span>
\ No newline at end of file |
