Add new template hook: template:user:show:profile:info

This commit is contained in:
Frédéric Guillot 2017-11-23 15:18:47 -08:00
parent 20c8ae1047
commit d1e3255800
3 changed files with 3 additions and 0 deletions

View File

@ -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>

View File

@ -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">

View File

@ -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.