diff options
| author | 2020-01-16 17:11:04 +0100 | |
|---|---|---|
| committer | 2020-01-16 17:11:04 +0100 | |
| commit | 68863fbac8d0f9346eb3de17b079c84d5ead1b6c (patch) | |
| tree | 62c4e54997b8852a08194ee8cd84b0dee853435d /app/layout | |
| parent | d7ac234036a10f575a902af6fc63bb890f85c7b1 (diff) | |
Show Favorites as Unread (#2766)
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Co-authored-by: Marien Fressinaud <dev@marienfressinaud.fr>
Diffstat (limited to 'app/layout')
| -rw-r--r-- | app/layout/aside_feed.phtml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtml index e0c90282f..cdc8b8e16 100644 --- a/app/layout/aside_feed.phtml +++ b/app/layout/aside_feed.phtml @@ -31,7 +31,16 @@ <li class="tree-folder category favorites<?= FreshRSS_Context::isCurrentGet('s') ? ' active' : '' ?>"> <div class="tree-folder-title"> - <?= _i('bookmark') ?> <a class="title" data-unread="<?= format_number(FreshRSS_Context::$total_starred['unread']) ?>" href="<?= _url('index', $actual_view, 'get', 's') ?>"><?= _t('index.menu.favorites', format_number(FreshRSS_Context::$total_starred['all'])) ?></a> + <?php + $url_starred = _url('index', $actual_view, 'get', 's'); + if (FreshRSS_Context::$user_conf->show_fav_unread) { + $url_starred = $url_starred . '&state=3'; + } + ?> + <?= _i('bookmark') ?> + <a class="title" data-unread="<?= format_number(FreshRSS_Context::$total_starred['unread']) ?>" href="<?= $url_starred ?>"> + <?= _t('index.menu.favorites', format_number(FreshRSS_Context::$total_starred['all'])) ?> + </a> </div> </li> |
