-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathheader.php
80 lines (67 loc) · 3.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
<?php
require "./functions.php";
$frontend=new Frontend;
$totalvisitorcount="";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- The above 4 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<!-- Title -->
<title>Hamro News Website </title>
<!-- Favicon -->
<link rel="icon" href="img/favicon.png">
<!-- Style CSS -->
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<!-- Header Area Start -->
<header class="header-area">
<!-- Nav Header Area -->
<div class="nav-header">
<div class="container h-100">
<div class="row h-100 align-items-center">
<div class="col-12">
<div class="main-menu">
<nav class="navbar navbar-expand-lg">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#mainMenu" aria-controls="mainMenu" aria-expanded="false" aria-label="Toggle navigation"><i class="fa fa-bars"></i> Menu</button>
<div class="collapse navbar-collapse" id="mainMenu">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.php">Home </a>
</li>
<?php
$categories=$frontend->get_header_categories();
foreach ($categories as $category) { ?>
<li class="nav-item">
<a class="nav-link" href="catagory.php?category=<?php echo $category['category_name']; ?>"> <?php echo $category['category_name']; ?> </a>
</li>
<?php } ?>
<li class="nav-item">
<a class="nav-link" href="login.php">Login</a>
</li>
</ul>
<!-- Search Form -->
<div class="header-search-form mr-auto">
<form action="search.php" method="GET">
<input type="search" placeholder="Input your keyword then press enter..." id="search" name="search">
<input class="d-none" type="submit" value="submit">
</form>
</div>
<!-- Search btn -->
<div id="searchbtn">
<i class="fa fa-search" aria-hidden="true"></i>
</div>
</div>
</nav>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- Header Area End -->