diff options
| author | 2014-12-07 14:31:50 +0100 | |
|---|---|---|
| committer | 2014-12-07 14:31:50 +0100 | |
| commit | 5932c3427b060d4f0aeab92d7ed17c8e8d4fd1d7 (patch) | |
| tree | 8802ee6dc68daf501ee64f4a0c299e01a6e93539 /app/views/index/normal.phtml | |
| parent | 08546af75ff9a25eac3409649ea4660fe070720c (diff) | |
Add entry_before_display hook
See https://github.com/FreshRSS/FreshRSS/issues/252
Diffstat (limited to 'app/views/index/normal.phtml')
| -rw-r--r-- | app/views/index/normal.phtml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml index 02d621bd0..9cbd367d0 100644 --- a/app/views/index/normal.phtml +++ b/app/views/index/normal.phtml @@ -35,6 +35,11 @@ if (!empty($this->entries)) { <a href="<?php echo Minz_Url::display(Minz_Request::currentRequest()); ?>"><?php echo _t('new_article'); ?></a> </div><?php foreach ($this->entries as $item) { + $item = Minz_ExtensionManager::callHook('entry_before_display', $item); + if (is_null($item)) { + continue; + } + if ($display_today && $item->isDay(FreshRSS_Days::TODAY, $today)) { ?><div class="day" id="day_today"><?php echo _t('today'); |
