diff options
| author | 2025-10-02 09:33:53 -0400 | |
|---|---|---|
| committer | 2025-10-02 15:33:53 +0200 | |
| commit | 032316155c03ca1013644476b8f9413ba436b744 (patch) | |
| tree | b3315790d53f1c6ff1740cdf0fc9ac0e8e9393ca /app/views | |
| parent | 0eab229d5231a198e98f974ae84d54bcebb085a1 (diff) | |
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
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/index/normal.phtml | 8 |
1 files changed, 6 insertions, 2 deletions
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="<?= $this->entry->id() ?>" data-feed="<?= $this->feed->id() ?>" data-priority="<?= $this->feed->priority() + ?>" data-link="<?= $this->entry->link() ?>"><?php $this->renderHelper('index/normal/entry_header'); if ($this->feed === null || $this->entry === null) { @@ -203,6 +204,9 @@ $today = @strtotime('today'); </a> <?php - if ($nbEntries > 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'); + } } |
