diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | app/Template/project/filters.php | 4 | ||||
-rw-r--r-- | doc/plugin-hooks.markdown | 4 |
3 files changed, 8 insertions, 1 deletions
@@ -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 @@ <div class="page-header"> + <?= $this->hook->render('template:project:header:before', array('project' => $project)) ?> + <div class="dropdown"> <i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('Actions') ?></a> <ul> @@ -98,4 +100,6 @@ </div> <?php endif ?> </div> + + <?= $this->hook->render('template:project:header:after', array('project' => $project)) ?> </div>
\ 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` |