summaryrefslogtreecommitdiff
path: root/src/application/views/nav_logged_in.php
blob: fd46d6e916aecf753c4021c4c2ac6deea3e50b89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
use mystic\forum\orm\User;
?>
<ul class="nav navbar-nav navbar-right">
<li><p class="navbar-text">Welcome,
<?php if ($user->id === User::SUPERUSER_ID): ?>
<strong class="text-danger"><?= htmlentities($user->displayName) ?></strong>!
<?php else: ?>
<strong><?= htmlentities($user->displayName) ?></strong>!
<?php endif; ?>
</p></li>
<li><a href="?_action=viewuser&amp;user=<?= htmlentities(urlencode($user->id)) ?>"><span class="glyphicon glyphicon-user" aria-hidden="true"><span class="sr-only">View profile</span></a></li>
<li><a href="?_action=logout"><span class="glyphicon glyphicon-log-out" aria-hidden="true"><span class="sr-only">Log out</span></a></li>
</ul>