From 032316155c03ca1013644476b8f9413ba436b744 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Thu, 2 Oct 2025 09:33:53 -0400 Subject: Add a new hook in the UI (#8054) * Add a new hook in the UI The new hook allows extension to add their own tool bar to navigate between entries. For instance, if the user wants less or more buttons that what's available by default. See #7912 See #7913 * add link data to ease navigation --- app/views/index/normal.phtml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml index 1b942ae17..cc54d10fd 100644 --- a/app/views/index/normal.phtml +++ b/app/views/index/normal.phtml @@ -87,6 +87,7 @@ $today = @strtotime('today'); ?>" data-entry="entry->id() ?>" data-feed="feed->id() ?>" data-priority="feed->priority() + ?>" data-link="entry->link() ?>">renderHelper('index/normal/entry_header'); if ($this->feed === null || $this->entry === null) { @@ -203,6 +204,9 @@ $today = @strtotime('today'); 0 && FreshRSS_Context::userConf()->show_nav_buttons) { - $this->partial('nav_entries'); + if ($nbEntries > 0) { + echo Minz_ExtensionManager::callHookString(Minz_HookType::NavEntries); + if (FreshRSS_Context::userConf()->show_nav_buttons) { + $this->partial('nav_entries'); + } } -- cgit v1.2.3