forked from root/threadr.lostcave.ddnss.de
85 lines
1.9 KiB
Plaintext
85 lines
1.9 KiB
Plaintext
<?php
|
|
if (!isset($login)){
|
|
$login=false;
|
|
%FORCE_LOGOUT%
|
|
}
|
|
?>
|
|
|
|
<ul class="topnav">
|
|
<li>
|
|
<?php
|
|
echo "<a href=\"%CONTENT_DIR%/userhome/\"><img src=\"/common/threadr/img/ThreadR_Home.svg\" class=\"icon ";
|
|
if ($login){
|
|
if ($navbar == "home"){
|
|
echo "active\" alt=\"My Feed\" title=\"My Feed\"";
|
|
} else {
|
|
echo "\" alt=\"My Feed\" title=\"My Feed\"";
|
|
}
|
|
} else {
|
|
if ($navbar == "home"){
|
|
echo "active \" alt=\"Home\" title=\"Home\"";
|
|
} else {
|
|
echo "\" alt=\"Home\" title=\"Home\"";
|
|
}
|
|
}
|
|
echo "/></a>";
|
|
?>
|
|
</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>
|
|
|
|
<li class="right">
|
|
<?php
|
|
if ($login) {
|
|
echo "<a href=\"%CONTENT_DIR%/logout/\">Log out</a>";
|
|
} else {
|
|
if ($navbar == "login") {
|
|
echo "<a class=\"active\" href=\"%CONTENT_DIR%/login/\">Log in</a>";
|
|
} else {
|
|
echo "<a href=\"%CONTENT_DIR%/login/\">Log in</a>";
|
|
}
|
|
}
|
|
?>
|
|
</li>
|
|
|
|
<li class="right">
|
|
<?php
|
|
if ($login) {
|
|
if ($navbar == "profile") {
|
|
echo "<a class=\"active\" href=\"%CONTENT_DIR%/profile/\">Profile</a>";
|
|
} else {
|
|
echo "<a href=\"%CONTENT_DIR%/profile/\">Profile</a>";
|
|
}
|
|
}
|
|
?>
|
|
</li>
|
|
</ul>
|
|
|
|
<br />
|
|
<br />
|