From 9deeaa4ef1e74531f5f7d99c5de423303ddda7ed Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 21 Nov 2015 17:27:29 -0500 Subject: Add new hooks for plugins --- ChangeLog | 1 + app/Template/project/filters.php | 4 ++++ doc/plugin-hooks.markdown | 4 +++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c1b4de09..92658cb7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,7 @@ Improvements: * Improve error handling of plugins * Use PHP7 function random_bytes() to generate tokens if available * CSV task export show the assignee name in addition to the assignee username +* Add new hooks for plugins Internal code refactoring: diff --git a/app/Template/project/filters.php b/app/Template/project/filters.php index c17cfb3c..9e126291 100644 --- a/app/Template/project/filters.php +++ b/app/Template/project/filters.php @@ -1,4 +1,6 @@ + + hook->render('template:project:header:after', array('project' => $project)) ?> \ No newline at end of file diff --git a/doc/plugin-hooks.markdown b/doc/plugin-hooks.markdown index eab2fa15..49323067 100644 --- a/doc/plugin-hooks.markdown +++ b/doc/plugin-hooks.markdown @@ -142,7 +142,9 @@ List of template hooks: - `template:layout:head` - `template:layout:top` - `template:layout:bottom` -- `template:project:dropdown` +- `template:project:dropdown`: "Actions" menu on left in different project views +- `template:project:header:before` +- `template:project:header:after` - `template:project-user:sidebar` - `template:task:sidebar:information` - `template:task:sidebar:actions` -- cgit v1.2.3