From 7fd88adeb081e2996cad48225bf0c74cfe8b90ef Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Wed, 14 Aug 2019 22:19:24 +0200 Subject: Add hooks to ExtensionManager (#2482) Hooks allow to: - add items in menus - perform new actions at the end of FreshRSS initialization --- app/FreshRSS.php | 2 ++ app/layout/aside_configure.phtml | 3 +++ app/layout/header.phtml | 6 ++++++ 3 files changed, 11 insertions(+) (limited to 'app') diff --git a/app/FreshRSS.php b/app/FreshRSS.php index 8f614c538..d578beac4 100644 --- a/app/FreshRSS.php +++ b/app/FreshRSS.php @@ -53,6 +53,8 @@ class FreshRSS extends Minz_FrontController { $ext_list = FreshRSS_Context::$user_conf->extensions_enabled; Minz_ExtensionManager::enableByList($ext_list); } + + Minz_ExtensionManager::callHook('freshrss_init'); } private static function initAuth() { diff --git a/app/layout/aside_configure.phtml b/app/layout/aside_configure.phtml index 94f5b1f6c..747858f4e 100644 --- a/app/layout/aside_configure.phtml +++ b/app/layout/aside_configure.phtml @@ -25,6 +25,8 @@
  • + +
  • @@ -47,5 +49,6 @@
  • + diff --git a/app/layout/header.phtml b/app/layout/header.phtml index 410ac1ff0..380575254 100644 --- a/app/layout/header.phtml +++ b/app/layout/header.phtml @@ -66,6 +66,8 @@ if (FreshRSS_Auth::accessNeedsAction()) {
  • + +
  • @@ -76,11 +78,15 @@ if (FreshRSS_Auth::accessNeedsAction()) { disable_update) { ?>
  • + +
  • + +