-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
28 lines (23 loc) · 1.29 KB
/
header.php
File metadata and controls
28 lines (23 loc) · 1.29 KB
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
<!DOCTYPE html>
<?php
session_start();
?>
<body>
<div class="header-container">
<a href="home.php"> <img class="logo" src="images/4.png" alt="Logo"> </a>
</div>
<div class="topnav">
<a class=<?php if ($thisPage=="Home") { echo "active";} else { echo "inactive";} ?> href="home.php">Home</a>
<a class=<?php if ($thisPage=="Review") { echo "active";} else { echo "inactive";} ?> href="reviews.php">Reviews</a>
<a class=<?php if ($thisPage=="Editorials") { echo "active";} else { echo "inactive";} ?> href="editorials.php">Editorials</a>
<a class=<?php if ($thisPage=="Articles") { echo "active";} else { echo "inactive";} ?> href="all-articles.php">All Articles</a>
<a class=<?php if ($thisPage=="About") { echo "active";} else { echo "inactive";} ?> href="about.php">About</a>
<a class=<?php if ($thisPage=="LogIn") { echo "active";} else { echo "inactive";}?> href=<?php if ($_SESSION["status"]=="loggedIn") { echo "profile.php";} else { echo "LogIn.php";}?>> <?php if ($_SESSION["status"]=="loggedIn") { echo "My Profile";} else { echo "Log In";}?></a>
<div class="search-container">
<form action="searchResults.php" method="GET">
<input for="search" type="text" placeholder="Search.." name="searchValue">
<button type="submit">Submit</button>
</form>
</div>
</div>
</body>