summaryrefslogtreecommitdiff
path: root/app/Template
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 /app/Template
parent20c8ae1047fb9450c29db2ea1d337443c05a8171 (diff)
Add new template hook: template:user:show:profile:info
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/user_view/profile.php1
-rw-r--r--app/Template/user_view/show.php1
2 files changed, 2 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">