2020-03-03 14:37:59 +01:00
|
|
|
<?php
|
2020-03-07 21:12:08 +01:00
|
|
|
if (!isset($login)){
|
|
|
|
$login=false;
|
|
|
|
%FORCE_LOGOUT%
|
|
|
|
}
|
2020-03-03 14:37:59 +01:00
|
|
|
?>
|
|
|
|
|
|
|
|
<ul class="topnav">
|
|
|
|
<li>
|
|
|
|
<?php
|
2020-03-10 20:14:57 +01:00
|
|
|
echo "<a href=\"%CONTENT_DIR%/userhome/\"><img src=\"/common/threadr/img/ThreadR_Home.svg\" class=\"icon ";
|
2020-03-03 14:37:59 +01:00
|
|
|
if ($login){
|
|
|
|
if ($navbar == "home"){
|
2020-03-10 20:14:57 +01:00
|
|
|
echo "active\" alt=\"My Feed\" title=\"My Feed\"";
|
2020-03-03 14:37:59 +01:00
|
|
|
} else {
|
2020-03-10 20:14:57 +01:00
|
|
|
echo "\" alt=\"My Feed\" title=\"My Feed\"";
|
2020-03-03 14:37:59 +01:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if ($navbar == "home"){
|
2020-03-10 20:14:57 +01:00
|
|
|
echo "active \" alt=\"Home\" title=\"Home\"";
|
2020-03-03 14:37:59 +01:00
|
|
|
} else {
|
2020-03-10 20:14:57 +01:00
|
|
|
echo "\" alt=\"Home\" title=\"Home\"";
|
2020-03-03 14:37:59 +01:00
|
|
|
}
|
|
|
|
}
|
2020-03-10 20:14:57 +01:00
|
|
|
echo "/></a>";
|
2020-03-03 14:37:59 +01:00
|
|
|
?>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<?php
|
|
|
|
if ($navbar == "news"){
|
|
|
|
echo "<a class=\"active\" href=\"%CONTENT_DIR%/news/\">News</a>";
|
|
|
|
} else {
|
|
|
|
echo "<a href=\"%CONTENT_DIR%/news/\">News</a>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<?php
|
|
|
|
if ($navbar == "boards"){
|
|
|
|
echo "<a class=\"active\" href=\"%CONTENT_DIR%/boards/\">Boards</a>";
|
|
|
|
} else {
|
|
|
|
echo "<a href=\"%CONTENT_DIR%/boards/\">Boards</a>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<?php
|
|
|
|
if ($navbar == "about"){
|
|
|
|
echo "<a class=\"active\" href=\"%CONTENT_DIR%/about/\">About</a>";
|
|
|
|
} else {
|
|
|
|
echo "<a href=\"%CONTENT_DIR%/about/\">About</a>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</li>
|
2020-03-04 10:48:41 +01:00
|
|
|
|
2020-03-03 14:37:59 +01:00
|
|
|
<li class="right">
|
|
|
|
<?php
|
|
|
|
if ($login) {
|
2020-03-04 10:48:41 +01:00
|
|
|
echo "<a href=\"%CONTENT_DIR%/logout/\">Log out</a>";
|
|
|
|
} else {
|
|
|
|
if ($navbar == "login") {
|
|
|
|
echo "<a class=\"active\" href=\"%CONTENT_DIR%/login/\">Log in</a>";
|
2020-03-03 14:37:59 +01:00
|
|
|
} else {
|
2020-03-04 10:48:41 +01:00
|
|
|
echo "<a href=\"%CONTENT_DIR%/login/\">Log in</a>";
|
2020-03-03 14:37:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</li>
|
2020-03-10 20:02:33 +01:00
|
|
|
|
2020-03-03 14:37:59 +01:00
|
|
|
<li class="right">
|
|
|
|
<?php
|
|
|
|
if ($login) {
|
2020-03-04 10:48:41 +01:00
|
|
|
if ($navbar == "profile") {
|
|
|
|
echo "<a class=\"active\" href=\"%CONTENT_DIR%/profile/\">Profile</a>";
|
2020-03-03 14:37:59 +01:00
|
|
|
} else {
|
2020-03-04 10:48:41 +01:00
|
|
|
echo "<a href=\"%CONTENT_DIR%/profile/\">Profile</a>";
|
2020-03-03 14:37:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2020-03-10 20:02:33 +01:00
|
|
|
<br />
|
2020-03-07 21:12:08 +01:00
|
|
|
<br />
|