-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
49 lines (49 loc) · 2.06 KB
/
index.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
<?php
require_once('core/site.php');
$site = new site();
site::setLink(new mysqli('localhost', 'profile', 'g00gle', 'portfolio'));
$site->init($_REQUEST);
if($site->getCurClass() == 'services')
$site->loadPortfolio(0);
$obj = $site->getObj();
include_once('core/ajax.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Jacob Godin | Web Developer</title>
<link rel="stylesheet" href="/style/style.css" type="text/css" media="screen" />
<script type="text/javascript" src="/api/js/prototype.js"></script>
<script type="text/javascript" src="/api/js/scriptaculous.js"></script>
<script type="text/javascript" src="/core/js/<?php echo($site->getCurClass()); ?>.js"></script>
</head>
<body <?php if($site->getCurClass() == 'portfolio') { ?>onload="site(this, <?php echo $obj->getCur()->getId(); ?>)" <?php } ?>>
<div id="outside_container">
<div id="container"<?php if($site->getCurClass() != 'main'){ ?> class="subpage"<?php } ?>>
<a href="/"><img src="/images/logo.png" id="logo" alt="Jacob Godin | Web Developer" /></a>
<ul id="nav">
<li><a href="/">Home</a></li>
<li><a href="/profile/">Profile</a></li>
<li><a href="/services/">Services</a></li>
<li><a href="/portfolio/">Portfolio</a></li>
<li><a href="/contact/">Contact</a></li>
</ul>
<ul id="right_nav">
<li><a href="/download/resume.pdf"><img src="/images/pdf.png" alt="PDF" />Download my Resumé</a></li>
</ul>
<?php include_once('templates/'.$site->getTemplate()).'.inc.php' ?>
</div>
</div>
<div id="footer">
<img src="/images/footer_logo.jpg" alt="Jacob Godin | Web Developer" />
<span id="footer_text">
Copyright © 2009 - <b><a href="mailto:[email protected]">Jacob Godin</a></b><br />
Website designed by <a href="http://www.jbvisualdesign.com">Justin Bellefontaine</a>,
</span>
</div>
</body>
</html>
<?php
site::closeDB();
?>