forked from root/threadr.lostcave.ddnss.de
put user actions on dropdown
parent
ab47cb9c50
commit
c5c2f920d9
|
@ -52,40 +52,27 @@ if (!isset($login)){
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</li>
|
</li>
|
||||||
<li class="dropdown">
|
|
||||||
<button class="dropbtn">Dropdown test</button>
|
|
||||||
<div class="dropdown-content">
|
|
||||||
<a href="#">Link 1</a>
|
|
||||||
<a href="#">Link 2</a>
|
|
||||||
<a href="#">Link 3</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="right">
|
|
||||||
<?php
|
|
||||||
if ($login) {
|
<?php
|
||||||
echo "<a href=\"%CONTENT_DIR%/logout/\">Log out</a>";
|
if ($login) {
|
||||||
|
echo "<li class=\"dropdown right\"><button class=\"dropbtn\"> Put user avatar here </button><div class=\"dropdown-content\"><a href=\"%CONTENT_DIR%/logout/\">Log out</a>";
|
||||||
|
if ($navbar == "profile") {
|
||||||
|
echo "<a class=\"active\" href=\"%CONTENT_DIR%/profile/\">Profile</a>";
|
||||||
} else {
|
} else {
|
||||||
if ($navbar == "login") {
|
echo "<a href=\"%CONTENT_DIR%/profile/\">Profile</a>";
|
||||||
echo "<a class=\"active\" href=\"%CONTENT_DIR%/login/\">Log in</a>";
|
|
||||||
} else {
|
|
||||||
echo "<a href=\"%CONTENT_DIR%/login/\">Log in</a>";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
?>
|
echo "</div></li>";
|
||||||
</li>
|
} else {
|
||||||
|
echo "<li class=\"right\">;
|
||||||
<li class="right">
|
if ($navbar == "login") {
|
||||||
<?php
|
echo "<a class=\"active\" href=\"%CONTENT_DIR%/login/\">Log in</a>";
|
||||||
if ($login) {
|
} else {
|
||||||
if ($navbar == "profile") {
|
echo "<a href=\"%CONTENT_DIR%/login/\">Log in</a>";
|
||||||
echo "<a class=\"active\" href=\"%CONTENT_DIR%/profile/\">Profile</a>";
|
|
||||||
} else {
|
|
||||||
echo "<a href=\"%CONTENT_DIR%/profile/\">Profile</a>";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
?>
|
}
|
||||||
</li>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
Loading…
Reference in New Issue