File size: 974B
@if (getUser())
<li><a href="/users/{{ getUser('login') }}"><i class="fa fa-user"></i> {{ getUser('login') }}</a></li>
@if (isAdmin())
<li><a href="/admin"><i class="fa fa-cog" aria-hidden="true"></i> Панель</a></li>
@if (statsSpam() > 0)
<li><a href="/admin/spam"><span style="color:#ff0000">Жалобы</span></a></li>
@endif
@if (getUser('newchat') < statsNewChat())
<li><a href="/admin/chats"><span style="color:#ff0000">Чат</span></a></li>
@endif
@endif
<li><a href="/menu"><i class="fa fa-tasks" aria-hidden="true"></i> Меню</a>
<li><a href="/logout?token={{ $_SESSION['token'] }}" onclick="return logout(this)"><i class="fa fa-times-circle" aria-hidden="true"></i> Выход</a></li>
@else
<li><a href="/login<?= returnUrl() ?>" rel="nofollow">Авторизация</a></li>
<li><a href="/register" rel="nofollow">Регистрация</a></li>
@endif