diff options
author | Jonas Kohl | 2024-09-18 23:05:35 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-09-18 23:05:35 +0200 |
commit | 01454544896827113e49db0d2848b5aab6ce14ae (patch) | |
tree | 9487c3d45a04d350bca2ed8401a797ed69cd7e8a /src/application/views/nav_logged_in.php | |
parent | a65d424263adfbff9629c7d91a613e4504c84613 (diff) |
Many changes
Diffstat (limited to 'src/application/views/nav_logged_in.php')
-rw-r--r-- | src/application/views/nav_logged_in.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/application/views/nav_logged_in.php b/src/application/views/nav_logged_in.php index 0f77f90..c049ec5 100644 --- a/src/application/views/nav_logged_in.php +++ b/src/application/views/nav_logged_in.php @@ -7,6 +7,6 @@ use mystic\forum\orm\User; ]) ?> </p></li> <li<?= $GLOBALS["action"] === "search" ? ' class="active"' : '' ?>><a href="?_action=search"><span class="glyphicon glyphicon-search" aria-hidden="true"></span><span class="sr-only"><?= __("Search") ?></span></a></li> -<li><a href="?_action=viewuser&user=<?= htmlentities(urlencode($user->id)) ?>"><span class="glyphicon glyphicon-user" aria-hidden="true"></span><span class="sr-only">View profile</span></a></li> +<li<?= ($isViewingOwnProfile ?? false) ? ' class="active"' : '' ?>><a href="?_action=viewuser&user=<?= htmlentities(urlencode($user->id)) ?>"><span class="glyphicon glyphicon-user" aria-hidden="true"></span><span class="sr-only">View profile</span></a></li> <li><a href="?_action=logout&next=<?= htmlentities(urlencode($_SERVER["REQUEST_URI"])) ?>"><span class="glyphicon glyphicon-log-out" aria-hidden="true"></span><span class="sr-only">Log out</span></a></li> </ul> |