-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathheader_currentlisting.php
197 lines (155 loc) · 6.42 KB
/
header_currentlisting.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<?php
if(!isset($_SESSION)) { session_start(); }
// for choosing active page on nav bar
$fileName=basename($_SERVER['PHP_SELF'], ".php");
$files = array('index','listing','testimonies','sponsors','alumni','partners', 'admin', 'sign-up', 'login');
$activeArray = array_fill(0, count($files), '');
$fileIndex=array_search($fileName,$files);
// if page is unknown, dont mark any nav item
if($fileIndex!==FALSE){
$activeArray[$fileIndex]="active";
}
/////////////////////////////////////////////////////////
?>
<!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="">
<title>HNG FUN</title>
<!-- Bootstrap core CSS -->
<link href="vendor/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom fonts for this template -->
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Lato|Work+Sans:400,900&subset=latin-ext" rel="stylesheet">
<link rel="shortcut icon" href="img/fav-icon.png">
<link rel="stylesheet" href="css/custom.css" type="text/css">
<!-- Custom styles for this template -->
<link href="css/style2.css" rel="stylesheet">
<link href="css/style1.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!-- <link href="css/custom.css" rel="stylesheet"> -->
<link rel="stylesheet" href="css/login.css">
<link rel="stylesheet" href="css/signout.css">
<link href="css/landing-page.min.css" rel="stylesheet">
<link href="css/shield-invite.css" rel="stylesheet">
<link href="css/404.css" rel="stylesheet">
<link href="css/contact.css" rel="stylesheet">
<!-- <link href="css/carousel.css" rel="stylesheet"> -->
<link href="https://fonts.googleapis.com/css?family=Qwigley" rel="stylesheet">
<style>
body {
background-color: #FAFAFA;
color: #3d3d3d;
font-family: 'Lato', sans-serif;
}
.navbar{
font-size: 15px;
font-weight: bold;
background-color: #F4F4F4;
padding: 0 10em;
}
.nav-item{
padding: 24px 15px;
border-bottom: 3px solid #f4f4f4;
}
.nav-item:hover, .active {
border-bottom: 3px solid #2196F3;
}
/* horizontal line learn page */
hr.under-line {
width: 10%;
border-top: 3px solid #000;
}
.justify-space-between {
justify-content: space-between;
}
.wrap {
flex-wrap: wrap;
}
.btn-primary {
border-radius: 8px;
background-color: #2196F3;
border-color: #2196F3;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary:visited,
.btn-primary:focus {
background-color: #0475CE !important;
}
/*for footer*/
.contact-icon{
margin: 0px !important;
padding: 0% 2%;
}
footer{
background: #FAFAFA !important;
color: #3D3D3D;
}
.footer-li .fa-stack-1x:hover{
color: #0465be !important;
}
@media only screen and (max-width: 600px) {
.navbar-brand{
width: 90px;
height: 50px;
}
}
<?php if (function_exists('custom_styles')) {
custom_styles();
} ?>
</style>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" type="text/javascript">
</script>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light" >
<!-- <a class="navbar-brand" href="../index.php">
<img src="img/logo.png" alt="HNG logo" class="img-fluid">
</a> -->
<a class="navbar-brand" href="../">
<img src="img/full-logo.svg" alt="HNG logo" width="128" height="52" class="img-fluid">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item <?php echo $activeArray[0] ?>">
<a href="/" class="nav-link"><i class="fa fa-home mr-1"></i>Home</a>
</li>
<!-- <li class="nav-item <?php ?>">
<a href="learn" class="nav-link">Learn</a>
</li> -->
<!-- <li class="nav-item <?php ?>">
<a href="admin" class="nav-link">Register</a>
</li> -->
<li class="nav-item <?php echo $activeArray[1] ?>">
<a href="listing" class="nav-link"><i class="fa fa-user mr-1"></i>Current Intern</a>
</li>
<li class="nav-item <?php echo $activeArray[2] ?>">
<a href="testimonies" class="nav-link"><i class="fa fa-quote-left mr-1"></i>Testimonies</a>
</li>
<li class="nav-item <?php echo $activeArray[3] ?>">
<a href="sponsors" class="nav-link"> <i class="fa fa-handshake-o mr-1"></i>Sponsors</a>
</li>
<li class="nav-item <?php echo $activeArray[4] ?>">
<a href="alumni" class="nav-link"><i class="fa fa-graduation-cap mr-1"></i> Alumni</a>
</li>
<li class="nav-item <?php echo $activeArray[5] ?>">
<a href="sign-up" class="nav-link"><i class="fa fa-user-plus mr-1"></i>SignUp</a>
</li>
<li class="nav-item <?php echo $activeArray[6] ?>">
<a href="login" class="nav-link"><i class="fa fa-sign-in mr-1"></i>LogIn</a>
</li>
</ul>
</div>
</nav>