threadr.lostcave.ddnss.de/navbar.template

93 lines
2.4 KiB
Plaintext
Raw Normal View History

<?php
if (!isset($login)){
$login=false;
%FORCE_LOGOUT%
}
?>
<ul class="topnav">
<li>
<?php
2020-03-10 20:25:38 +01:00
echo "<a class=\"icon ";
if ($login){
if ($navbar == "home"){
2020-03-10 20:25:38 +01:00
echo "active\" href=\"%CONTENT_DIR%/userhome/\"><img src=\"/common/threadr/img/ThreadR_Home.svg\" alt=\"My Feed\" title=\"My Feed\"";
} else {
2020-03-10 20:25:38 +01:00
echo "\" href=\"%CONTENT_DIR%/userhome/\"><img src=\"/common/threadr/img/ThreadR_Home.svg\" alt=\"My Feed\" title=\"My Feed\"";
}
} else {
if ($navbar == "home"){
2020-03-10 20:25:38 +01:00
echo "active\" href=\"%CONTENT_DIR%/\"><img src=\"/common/threadr/img/ThreadR_Home.svg\" alt=\"Home\" title=\"Home\"";
} else {
2020-03-10 20:25:38 +01:00
echo "\" href=\"%CONTENT_DIR%/\"><img src=\"/common/threadr/img/ThreadR_Home.svg\" alt=\"Home\" title=\"Home\"";
}
}
2020-03-10 20:14:57 +01:00
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>
2020-04-01 01:09:48 +02:00
<li class="dropdown">
<button class="dropbtn">Dropdown test</button>
<div class="dropdown-content">
2020-04-01 01:35:04 +02:00
<a class="dropdown-link" href="#">Link 1</a>
<a class="dropdown-link" href="#">Link 2</a>
<a class="dropdown-link" href="#">Link 3</a>
2020-04-01 01:09:48 +02:00
</div>
2020-04-01 01:08:07 +02:00
</li>
2020-03-04 10:48:41 +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>";
} else {
2020-03-04 10:48:41 +01:00
echo "<a href=\"%CONTENT_DIR%/login/\">Log in</a>";
}
}
?>
</li>
2020-03-10 20:02:33 +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>";
} else {
2020-03-04 10:48:41 +01:00
echo "<a href=\"%CONTENT_DIR%/profile/\">Profile</a>";
}
}
?>
</li>
</ul>
2020-03-10 20:02:33 +01:00
<br />
<br />