Added Picnic CSS

Fixed spelling errors
This commit is contained in:
Furentes
2019-05-22 13:54:26 +02:00
parent 62e4c56658
commit ba97176e37
14 changed files with 129 additions and 444 deletions

10
inc/head.php Normal file
View 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
View 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">&#8801;</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>