-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
125 lines (98 loc) · 4.72 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?php
/**
* Include FFFFolio Application
*/
if (!file_exists('app/config.inc.php'))
die('Please setup config.inc.php before proceeding.');
require_once 'app/config.inc.php';
require_once 'app/void.class.php';
require_once 'app/requestcore.class.php';
require_once 'app/flickr.class.php';
require_once 'app/flickrcache.class.php';
require_once 'app/ffffolio.class.php';
$folio = new FFFFolio;
?><!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?php if(!$folio->home && isset($folio->set->title)) echo $folio->entities($folio->set->title) . ' — '; ?><?php echo $folio->entities($folio->collection->title); ?></title>
<base href="<?php echo $folio->path; ?>"/>
<link rel="stylesheet" href="css/reset.css" type="text/css" media="all"/>
<link rel="stylesheet" href="css/text.css" type="text/css" media="all"/>
<link rel="stylesheet" href="css/layout.css" type="text/css" media="all"/>
<!--[if lte IE 6]>
<link rel="stylesheet" href="css/ie.css" type="text/css" media="all"/>
<script src="js/ie.js" type="text/javascript" charset="utf-8"></script>
<![endif]-->
<script src="js/mootools-1.2.4-core-yc-lite.js" type="text/javascript" charset="utf-8"></script>
<script src="js/mootools-1.2.4.4-more-yc.js" type="text/javascript" charset="utf-8"></script>
<script src="js/scroller.js" type="text/javascript" charset="utf-8"></script>
<?php if (isset($folio->set->title)): ?>
<link rel="alternate" type="application/rss+xml" title="<?php echo $folio->entities($folio->set->title); ?> - RSS" href="http://api.flickr.com/services/feeds/photoset.gne?set=<?php echo $folio->set->id ?>&nsid=<?php echo $folio->user_id; ?>&lang=en-us&format=rss_200"/>
<?php endif ?>
<!--
This site was lovingly created by: D3 <www.myd3.com>
Using only the finest ingredients available, allowing us
to create a perfect, fast, and standards compliant site.
_ ____
| |___ \
_ __ ___ _ _ __| | __) | ___ ___ _ __ ___
| '_ ` _ \| | | |/ _` ||__ < / __/ _ \| '_ ` _ \
| | | | | | |_| | (_| |___) | (_| (_) | | | | | |
|_| |_| |_|\__, |\__,_|____(_)___\___/|_| |_| |_|
__/ |
|___/
-->
</head>
<body>
<div id="sidebar">
<a href="./"><img src="images/logo.png" id="logo" width="165" height="98" alt="Orphan Elliott"/></a>
<em id="tagline"><?php echo $folio->collection->description; ?></em>
<ul id="nav">
<?php echo $folio->get_menu(); ?>
</ul>
<hr/>
<ul>
<li><a href="http://orphanelliott.tumblr.com/">Blog</a></li>
<li><a href="http://www.flickr.com/photos/prismkiller/">Flickr</a></li>
<li><a href="http://twitter.com/orphanelliott">Twitter</a></li>
</ul>
<div id="footer">
Use <span title="or J/K if you prefer">arrow keys</span><br/> to navigate<br/><br/>
<img src="images/oe.png" width="18" height="11" alt="OE"/><br/>
© <?php echo date('Y'); ?> Mat Hudson
</div>
</div> <!-- End Sidebar -->
<div id="content">
<?php if (isset($folio->set->title)): ?>
<div id="project">
<h2><a href="http://www.flickr.com/photos/<?php echo $folio->set->owner; ?>/sets/<?php echo $folio->set->id; ?>/"><?php echo $folio->entities($folio->set->title); ?></a></h2>
<div class="description"><?php echo nl2br($folio->set->description); ?></div>
</div>
<div id="items">
<?php
// Display photos in reverse order
$folio->photos = array_reverse($folio->photos); ?>
<?php foreach ($folio->photos as $photo): ?>
<div class="item" id="item_<?php echo $photo->id; ?>">
<a href="http://www.flickr.com/photos/<?php echo $photo->pathalias; ?>/<?php echo $photo->id; ?>/in/set-<?php echo $folio->set->id; ?>/">
<img src="<?php echo $photo->url_m; ?>" width="<?php echo $photo->width_m; ?>" height="<?php echo $photo->height_m; ?>" alt="<?php echo $folio->entities($photo->title); ?>" title="<?php echo $folio->entities($photo->title); ?>"/>
</a>
</div>
<?php endforeach ?>
</div>
<?php endif ?>
</div> <!-- End Content -->
<!-- Google Analytics -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-15242021-1");
pageTracker._setDomainName(".orphanelliott.com");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>