-
Notifications
You must be signed in to change notification settings - Fork 0
/
nav.php
126 lines (126 loc) · 6.04 KB
/
nav.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?php
if ($_POST["action"] != "nav")
{
header("Location: /");
exit;
}
?>
<!-- common navbar file -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Navbar</title>
<meta charset="utf-8">
<meta name="description" content="Navagation bar for all pages.">
</head>
<body>
<!-- navbar icons modified from https://freeicons.io/ -->
<!-- expandable navbar code modified from https://www.w3schools.com/bootstrap4/bootstrap_navbar.asp -->
<nav class="navbar navbar-expand-custom">
<div class="container-fluid">
<div class="navigator" id="home">
<a href="/" class="nav-link nomargin">
<img src="/Assets/icon.webp" id="home-logo" alt="home_link">
</a>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#collapsible">
<span class="bi bi-list"></span>
</button>
<div class="collapse navbar-collapse" id="collapsible">
<ul class="navbar-nav">
<li class="nav-item navigator" id="rules">
<a class="nav-link" href="/rules">
<img src="/Assets/list.webp" class="img-fluid barImg" alt="rules_link">
<br class="nav-text-break">
Rules
</a>
</li>
<li class="nav-item navigator" id="passions">
<a class="nav-link" href="/passions">
<img src="/Assets/pencil.webp" class="img-fluid barImg" alt="passions_link">
<br class="nav-text-break">
Passions
</a>
</li>
<li class="nav-item navigator" id="races">
<a class="nav-link" href="/races">
<img src="/Assets/person.webp" class="img-fluid barImg" alt="races_link">
<br class="nav-text-break">
Races
</a>
</li>
<li class="nav-item navigator" id="classes">
<a class="nav-link" href="/classes">
<img src="/Assets/muscle.webp" class="img-fluid barImg" alt="classes_link">
<br class="nav-text-break">
Classes
</a>
</li>
<li class="nav-item navigator" id="familiars">
<a class="nav-link" href="/familiars">
<img src="/Assets/horse.webp" class="img-fluid barImg" alt="familiars">
<br class="nav-text-break">
Familiars
</a>
</li>
<li class="nav-item navigator" id="abilities">
<a class="nav-link" href="/abilities">
<img src="/Assets/stars.webp" class="img-fluid barImg" alt="abilities_link">
<br class="nav-text-break">
Abilities
</a>
</li>
<li class="nav-item navigator" id="feats">
<a class="nav-link" href="/feats">
<img src="/Assets/ribbon.webp" class="img-fluid barImg" alt="feats_link">
<br class="nav-text-break">
Feats
</a>
</li>
<li class="nav-item navigator" id="weapons">
<a class="nav-link" href="/weapons">
<img src="/Assets/swords.webp" class="img-fluid barImg" alt="weapons_link">
<br class="nav-text-break">
Weapons
</a>
</li>
<li class="nav-item navigator" id="artifacts">
<a class="nav-link" href="/artifacts">
<img src="/Assets/exclamation.webp" class="img-fluid barImg" alt="artifacts_link">
<br class="nav-text-break">
Artifacts
</a>
</li>
<li class="nav-item navigator" id="resources">
<a class="nav-link" href="/resources">
<img src="/Assets/pages.webp" class="img-fluid barImg" alt="resources_link">
<br class="nav-text-break">
Resources
</a>
</li>
</ul>
</div>
</div>
</nav>
<div id="filler"></div>
<?php
if ($_POST["ads"] == "true") {
echo
'<div class="header-ad">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4282768297104356"
crossorigin="anonymous"></script>
<!-- In-Page Ad -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-4282768297104356"
data-ad-slot="7014054509"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>';
}
?>
</body>
</html>