diff options
| author | winter | 2025-01-26 15:25:17 +0000 |
|---|---|---|
| committer | winter | 2025-01-26 15:25:17 +0000 |
| commit | 890dad24d6c095c41e6358b2a6cb61f1b6c2f6ad (patch) | |
| tree | a662dfd61585b755054075cd93121a9c70a48983 /templates/unread_indicator.php | |
| parent | 5841d6550936e1fc34f1fbdf4325b1e27ff79230 (diff) | |
add user settings / preferences
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 |
