From b5f1c3f29dbd99a65412edbfcadb6e032ddc988e Mon Sep 17 00:00:00 2001 From: maTh Date: Tue, 30 Aug 2022 22:55:14 +0200 Subject: Fix: Global view - No articles banner (#4563) * Update global.phtml * Update app/views/index/global.phtml Co-authored-by: Alexandre Alapetite --- app/views/index/global.phtml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/index/global.phtml b/app/views/index/global.phtml index ff5fceaed..9bc291fca 100644 --- a/app/views/index/global.phtml +++ b/app/views/index/global.phtml @@ -3,10 +3,13 @@ $this->partial('nav_menu'); $class = ''; + $state_unread = false; + if (FreshRSS_Context::$user_conf->hide_read_feeds && FreshRSS_Context::isStateEnabled(FreshRSS_Entry::STATE_NOT_READ) && !FreshRSS_Context::isStateEnabled(FreshRSS_Entry::STATE_READ)) { $class = ' state_unread'; + $state_unread = true; } ?> @@ -54,7 +57,7 @@ } } - if ($unreadArticles < 1) { + if ($unreadArticles < 1 && $state_unread) { ?>

-- cgit v1.2.3