summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2017-11-23 15:18:47 -0800
committerFrédéric Guillot <fred@kanboard.net>2017-11-23 15:18:47 -0800
commitd1e3255800fb114b0665f80c02cbd6d6e78e8333 (patch)
tree1d158e5edbdd1c493dfd8cbdfb9a462a491e37ca
parent20c8ae1047fb9450c29db2ea1d337443c05a8171 (diff)
Add new template hook: template:user:show:profile:info
-rw-r--r--app/Template/user_view/profile.php1
-rw-r--r--app/Template/user_view/show.php1
-rw-r--r--doc/en_US/plugin-hooks.markdown1
3 files changed, 3 insertions, 0 deletions
diff --git a/app/Template/user_view/profile.php b/app/Template/user_view/profile.php
index 486ca428..d931e3e7 100644
--- a/app/Template/user_view/profile.php
+++ b/app/Template/user_view/profile.php
@@ -6,6 +6,7 @@
<li><?= t('Login:') ?> <strong><?= $this->text->e($user['username']) ?></strong></li>
<li><?= t('Full Name:') ?> <strong><?= $this->text->e($user['name']) ?: t('None') ?></strong></li>
<li><?= t('Email:') ?> <strong><?= $this->text->e($user['email']) ?: t('None') ?></strong></li>
+ <?= $this->hook->render('template:user:show:profile:info', array('user' => $user)) ?>
</ul>
</div>
</section>
diff --git a/app/Template/user_view/show.php b/app/Template/user_view/show.php
index e57fd4cd..7f847f65 100644
--- a/app/Template/user_view/show.php
+++ b/app/Template/user_view/show.php
@@ -6,6 +6,7 @@
<li><?= t('Full Name:') ?> <strong><?= $this->text->e($user['name']) ?: t('None') ?></strong></li>
<li><?= t('Email:') ?> <strong><?= $this->text->e($user['email']) ?: t('None') ?></strong></li>
<li><?= t('Status:') ?> <strong><?= $user['is_active'] ? t('Active') : t('Inactive') ?></strong></li>
+ <?= $this->hook->render('template:user:show:profile:info', array('user' => $user)) ?>
</ul>
<div class="page-header">
diff --git a/doc/en_US/plugin-hooks.markdown b/doc/en_US/plugin-hooks.markdown
index c01da61b..bd32166b 100644
--- a/doc/en_US/plugin-hooks.markdown
+++ b/doc/en_US/plugin-hooks.markdown
@@ -259,6 +259,7 @@ List of template hooks:
| `template:user:integrations` | Integration page in user profile |
| `template:user:sidebar:actions` | Sidebar in user profile (section actions) |
| `template:user:sidebar:information` | Sidebar in user profile (section information) |
+| `template:user:show:profile:info` | User profile information |
Another template hooks can be added if necessary, just ask on the issue tracker.