summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-11-21 17:27:29 -0500
committerFrederic Guillot <fred@kanboard.net>2015-11-21 17:27:29 -0500
commit9deeaa4ef1e74531f5f7d99c5de423303ddda7ed (patch)
tree9b5d36f3ebbf1571239e966402c89e1f10459867
parent4594325726b45b8b538364100cea1d4e72a90bcb (diff)
Add new hooks for plugins
-rw-r--r--ChangeLog1
-rw-r--r--app/Template/project/filters.php4
-rw-r--r--doc/plugin-hooks.markdown4
3 files changed, 8 insertions, 1 deletions
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 @@
<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`