-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
81 lines (69 loc) · 2.54 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
header('X-UA-Compatible: IE=edge,chrome=1');
include("config.php");
$logged_in = false;
if(isset($_SESSION["user"]) && $_SESSION["user"] !== "")
$logged_in = true;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="img/icon.ico" type="image/x-icon">
<link rel="icon" href="img/icon.ico" type="image/x-icon">
<title>Pr(emed)onostiek</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!-- Custom styles for this template -->
<style>
body {
padding-top: 54px;
}
@media (min-width: 992px) {
body {
padding-top: 56px;
}
}
</style>
</head>
<?php if (!$logged_in): ?>
<?php endif; ?>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="/"><img src="img/logo.png" class="logo" /> Pr(emed)onostiek</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="/">Home
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="reglement.php">Reglement</a>
</li>
<?php if ($logged_in): ?>
<li class="nav-item active">
<a class="nav-link" href="scoreboard.php">Scorebord</a>
</li>
<?php if (isset($_SESSION["data"]["admin"]) && $_SESSION["data"]["admin"] == true): ?>
<li class="nav-item active">
<a class="nav-link" href="admin.php">Admin</a>
</li>
<?php endif;?>
<li class="nav-item active">
<a class="nav-link" href="logout.php">Uitloggen</a>
</li>
<?php endif; ?>
</ul>
</div>
</div>
</nav>