-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.php
107 lines (91 loc) · 2.18 KB
/
about.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
<!DOCTYPE HTML>
<!--
Twenty 1.0 by HTML5 UP
html5up.net | @n33co
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<?php
// Include the Header functions
include("functions/html_head.php");
// Include the Footer Nav functions
include("functions/footer-nav.php");
// We need to write the page title
// By default...
if (!isset($_GET['view']))
{
setTitle("About the Portfolio");
}
// If the user is looking at one of the pages
// Just in case, let's lowercase everything
else
{
switch(strtolower($_GET['view']))
{
case "contact":
setTitle("Contact Me");
break;
case "license":
setTitle("Licenses");
break;
case "resume":
setTitle("My Resume");
break;
default:
setTitle("About the Portfolio");
}
}
// Write the rest of the Page Header
writeHeader();
// Write the Navigation Menu
include("functions/navigation.php");
?>
<body class="no-sidebar loading">
<!-- Main -->
<article id="main">
<!-- One -->
<section class="wrapper style4 container">
<!-- Content -->
<div class="content">
<?php
// The user does not have a specific item to view
// Let's show the generic About page
if (!isset($_GET['view']))
{
include("pages/about/about.php");
}
// Let's show the Other pages
else
{
switch(strtolower($_GET['view']))
{
case "contact":
include("pages/about/contact.php");
break;
case "license":
include("pages/about/license.php");
break;
case "resume":
include("pages/about/resume.php");
break;
default:
include("pages/about/about.php");
}
}
?>
</div>
</section>
<?php
openFooterNav();
writeFooterNav("resume");
writeFooterNav("contact");
writeFooterNav("license");
closeFooterNav();
?>
</article>
<?php
include("functions/footer.php");
?>
</body>
</html>