summaryrefslogtreecommitdiff
path: root/app/Templates/user_layout.php
blob: 7462b3f029d3972f4e9292a8f26100e8fd12b04d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<section id="main">
    <div class="page-header">
        <h2><?= Helper\escape($user['name'] ?: $user['username']).' (#'.$user['id'].')' ?></h2>
        <?php if (Helper\is_admin()): ?>
        <ul>
            <li><a href="?controller=user&amp;action=index"><?= t('All users') ?></a></li>
            <li><a href="?controller=user&amp;action=create"><?= t('New user') ?></a></li>
        </ul>
        <?php endif ?>
    </div>
    <section class="user-show" id="user-section">

        <?= Helper\template('user_sidebar', array('user' => $user)) ?>

        <div class="user-show-main">
            <?= $user_content_for_layout ?>
        </div>
    </section>
</section>