-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
51 lines (49 loc) · 2.4 KB
/
header.php
File metadata and controls
51 lines (49 loc) · 2.4 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title><?= isset($PageTitle) ? $PageTitle : "Default Title"?></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Ewert&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Ewert&display=swap" rel="stylesheet">
<link href="style.css" rel="stylesheet" href="index.css?v=<?php echo time(); ?>">
<script src="jQuery.js"></script>
<?php if (function_exists('customPageHeader')){
customPageHeader();
}?>
</head>
<body>
<div id="navbar">
<a id="nav1" href="index.php">Home</a>
<a id="nav2" href="forum.php">Forum</a>
<?php
if(isset($_SESSION["useruid"])){
echo "<a id='nav3' href='profile.php'>Profile Page</a>";
echo "<a id='nav4' href='includes/logout.inc.php'>Log Out</a>";
}
else{
echo "<a id='nav3' href='signup.php'>Sign Up</a>";
echo "<a id='nav4' href='login.php'>Login</a>";
}
?>
<div class="highlight" style="margin-left:<?= isset($HighlightMarginLeft) ? $HighlightMarginLeft : '0px'?>"></div>
<!--div class="highlightB" style="margin-left:<?= isset($HighlightMarginLeft) ? $HighlightMarginLeft : '0px'?>"></div-->
</div>
<script>
//when mouseleaves navbar
$(document).ready(function(){
$('#navbar').mouseleave(function(){
$(".highlight").attr("style","margin-left:<?= isset($HighlightMarginLeft) ? $HighlightMarginLeft : '0px'?>");
$(".highlightB").attr("style","margin-left:<?= isset($HighlightMarginLeft) ? $HighlightMarginLeft : '0px'?>");
})
})
</script>
<div class="content">