forked from arunima-patra/heka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.php
114 lines (110 loc) · 2.17 KB
/
template.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
<?php
/**
* Navigation Tabs
*/
class NavTab {
public $name;
public $href;
public $icon;
function __construct($name, $href, $icon) {
$this->name = $name;
$this->href = $href;
$this->icon = $icon;
}
}
$headerNavTabs = array(
new NavTab(
"Cart",
"./cart.php",
"cart-shopping"
),
new NavTab(
"Notifications",
"./notifications.php",
"bell"
),
new NavTab(
"Profile",
"./profile.php",
"user"
)
);
$bottomNavTabs = array(
new NavTab(
"Home",
"./",
"house"
),
new NavTab(
"Consultation",
"./consultation.php",
"comments"
),
new NavTab(
"Tests",
"./tests.php",
"microscope"
),
new NavTab(
"Medicine",
"./medicine.php",
"pills"
)
);
if (!isset($activeNavTabs)):
$activeNavTabs = array();
endif;
?>
<div class="splash">
<img
src="Images/logo-aru-green.png"
class="splash-logo"
alt="logo"
>
</div>
<header>
<h1>
<img
src="Images/logo-aru-green.png"
class="header-logo"
>
<span class="header-organisation-name">
Heka
</span>
<img
src="Images/logo-rx-white.png"
class="header-organisation-name-image"
alt="RX"
>
</h1>
<nav>
<?php foreach ($headerNavTabs as $navTab): ?>
<a
href="<?php echo $navTab->href ?>"
aria-label="<?php echo $navTab->name ?>"
title="<?php echo $navTab->name ?>"
<?php if (in_array($navTab->name, $activeNavTabs)): ?>
class="active-nav-tab"
<?php endif; ?>
>
<i class="fa-solid fa-<?php echo $navTab->icon ?>"></i>
<span class="nav-name"><?php echo $navTab->name ?></span>
</a>
<?php endforeach; ?>
</nav>
</header>
<nav class="bottom-nav">
<?php foreach ($bottomNavTabs as $navTab): ?>
<a
href="<?php echo $navTab->href ?>"
aria-label="<?php echo $navTab->name ?>"
title="<?php echo $navTab->name ?>"
<?php if (in_array($navTab->name, $activeNavTabs)): ?>
class="active-nav-tab"
<?php endif; ?>
>
<i class="fa-solid fa-<?php echo $navTab->icon ?>"></i>
<span class="nav-name"><?php echo $navTab->name ?></span>
</a>
<?php endforeach; ?>
</nav>