Skip to content

Commit

Permalink
Add new template hook: template:user:show:profile:info
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Nov 23, 2017
1 parent 20c8ae1 commit d1e3255
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Template/user_view/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
1 change: 1 addition & 0 deletions app/Template/user_view/show.php
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
1 change: 1 addition & 0 deletions doc/en_US/plugin-hooks.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit d1e3255

Please sign in to comment.