-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathheader.php
93 lines (89 loc) · 3 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
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
function calledFrom() {
$fileList = get_included_files();
$parent = basename($fileList[0],'.php');
return $parent;
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Computer Science House</title>
<meta name="viewport" content="initial-scale=0.5">
<meta charset="UTF-8">
<link rel="icon" href="images/favicon.ico">
<link rel="stylesheet" type="text/css" href="general.css">
<link rel="stylesheet" type="text/css" href="pages.css">
<link rel="stylesheet" type="text/css" href="queries.css">
<link href='//fonts.googleapis.com/css?family=Oxygen' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="smoothscroll.js"></script>
<script type="text/javascript" src="detectmobile.js"></script>
<?php if (calledFrom() == "index" || calledFrom() == "sponsors" || calledFrom() == "tour" || calledFrom() == "alumni") { ?>
<script src="jquery-latest.js"></script>
<script type="text/javascript" src="code.js"></script>
<?php } ?>
<?php if (calledFrom() == "index") { ?>
<script src="fittext.js"></script>
<?php } ?>
<?php if (calledFrom() == "tour") { ?>
<script src="responsiveslides.min.js"></script>
<link rel="stylesheet" type="text/css" href="responsiveslides.css">
<?php } ?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-75959-4']);
_gaq.push(['_setDomainName', 'csh.rit.edu']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="header">
<div class="wrapper">
<a href="./">
<img src="images/logo.png" alt="Computer Science House" width="117" height="50"/>
</a>
<ul id="nav">
<li>
<a href="./" <?php if (calledFrom() == "index") { ?>class="selected"<?php } ?> >Home</a>
</li>
<li>
<a href="about.php" <?php if (calledFrom() == "about") { ?>class="selected"<?php } ?>>About</a>
<ul>
<li>
<a href="projects.php">Projects</a>
</li>
<li>
<a href="alumni.php">Alumni</a>
</li>
<li>
<a href="eboard.php">Eboard</a>
</li>
<li>
<a href="tour.php">Tour</a>
</li>
</ul>
</li>
<li>
<a href="membership.php" <?php if ( calledFrom() == "membership") { ?>class="selected"<?php } ?>>Membership</a>
<ul>
<li>
<a href="traditions.php">Traditions</a>
</li>
<li>
<a href="scholarship.php">Scholarship</a>
</li>
</ul>
</li>
<li >
<a href="contact.php" <?php if ( calledFrom() == "contact") { ?>class="selected"<?php } ?>>Contact</a>
</li>
</ul>
<a href="#footer" class="selected" id="mobilenav">Navigation ▾</a>
</div>
</div>