mirror of
https://github.com/p08dev/Bloggr.git
synced 2026-06-17 12:43:56 +02:00
Added Picnic CSS
Fixed spelling errors
This commit is contained in:
10
inc/head.php
Normal file
10
inc/head.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
echo '
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>'.$title.' - '. ((defined("SITE_TITLE")) ? SITE_TITLE : "A Bloggr Site").'</title>
|
||||
<link rel="stylesheet" href="/css/picnic.min.css">
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>';
|
||||
39
inc/nav.php
Normal file
39
inc/nav.php
Normal file
@ -0,0 +1,39 @@
|
||||
|
||||
<nav class="demo">
|
||||
<a href="/" class="brand">
|
||||
<span><?= ((defined("SITE_TITLE")) ? SITE_TITLE : "A Bloggr Site") ?></span>
|
||||
</a>
|
||||
|
||||
<!-- responsive-->
|
||||
<input id="bmenub" type="checkbox" class="show">
|
||||
<label for="bmenub" class="burger pseudo button">≡</label>
|
||||
|
||||
<div class="menu">
|
||||
<?php
|
||||
if ($auth->hasRole([ \Bloggr\Roles::ADMIN ])){
|
||||
?>
|
||||
<a href="/users.php" class="pseudo button">Benutzer</a>
|
||||
<a href="/post.php?new" class="pseudo button">Neuer Post</a>
|
||||
<?php
|
||||
} elseif($auth->hasRole([ \Bloggr\Roles::AUTHOR ])) {
|
||||
?>
|
||||
<a href="/settings.php" class="pseudo button">Einstellungen</a>
|
||||
<a href="/logout.php" class="button">Logout</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if (!$auth->isLoggedIn()){
|
||||
?>
|
||||
<a href="/login.php" class="pseudo button">Login</a>
|
||||
<a href="/register.php" class="button">Registrieren</a>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<a href="/settings.php" class="pseudo button">Einstellungen</a>
|
||||
<a href="/logout.php" class="button">Logout</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user