Add new template hook: template:user:show:profile:info
This commit is contained in:
parent
20c8ae1047
commit
d1e3255800
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue