add admin link

This commit is contained in:
Tealk 2021-04-13 19:11:17 +02:00
parent a76211de8b
commit ad8e5ed944
No known key found for this signature in database
GPG Key ID: 5FE349ABC863E7F9
1 changed files with 4 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class Template
<div class="container">
<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="<?php echo WEB_URL; ?>/admin"><img src="<?php if (strlen(CUSTOM_LOGO_URL) > 1) {
<a class="navbar-brand" href="<?php echo WEB_URL; ?>/"><img src="<?php if (strlen(CUSTOM_LOGO_URL) > 1) {
echo CUSTOM_LOGO_URL;
} else {
echo WEB_URL . "/img/logo_white.png";
@ -118,6 +118,9 @@ class Template
<?php
if (!$admin) {
?>
<li class="nav-item">
<a class="nav-link link-light" href="<?php echo WEB_URL; ?>/admin/"><?php echo _("Admin"); ?></a>
</li>
<li class="d-flex">
<input type=" checkbox" class="custom-control-input" id="darkSwitch" hidden>
<label class="nav-link" for="darkSwitch"><i class="fas fa-moon"></i></label>