summaryrefslogtreecommitdiff
path: root/app/Template/user/layout.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/user/layout.php')
-rw-r--r--app/Template/user/layout.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Template/user/layout.php b/app/Template/user/layout.php
index 0778b716..94610000 100644
--- a/app/Template/user/layout.php
+++ b/app/Template/user/layout.php
@@ -1,15 +1,15 @@
<section id="main">
<div class="page-header">
- <?php if (Helper\is_admin()): ?>
+ <?php if ($this->acl->isAdminUser()): ?>
<ul>
- <li><i class="fa fa-user fa-fw"></i><?= Helper\a(t('All users'), 'user', 'index') ?></li>
- <li><i class="fa fa-plus fa-fw"></i><?= Helper\a(t('New user'), 'user', 'create') ?></li>
+ <li><i class="fa fa-user fa-fw"></i><?= $this->a(t('All users'), 'user', 'index') ?></li>
+ <li><i class="fa fa-plus fa-fw"></i><?= $this->a(t('New user'), 'user', 'create') ?></li>
</ul>
<?php endif ?>
</div>
<section class="sidebar-container" id="user-section">
- <?= Helper\template('user/sidebar', array('user' => $user)) ?>
+ <?= $this->render('user/sidebar', array('user' => $user)) ?>
<div class="sidebar-content">
<?= $user_content_for_layout ?>