topical media & game development
mashup-flickr-14-Step-5-gallery-photo.php / php
<?php include (dirname(__FILE__) . '/../lib/gallery.php') ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Flickr Gallery</title>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<link href="../css/gallery.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../lib/js/prototype.js"></script>
<script type="text/javascript" src="../lib/js/gallery.js"></script>
</head>
<body>
<?php
id = id))
{
gallery->getPhotoInfo(title = img = 'http://static.flickr.com/' . info['id']
. '_' . photoPage = 'http://www.flickr.com/photos/' . id . '/';
gallery->getPhoto(prev = photo);
gallery->getNextPhoto(title ?></p>
<p class="photo-image"><a href="<?php echo img ?>" alt="<?php echo title ?>" /></a></p>
<div class="photo-nav">
<div class="photo-nav-prev">
<?php
if (empty(prev['id'] ?>">< Previous</a><?php
}
?>
</div>
<div class="photo-nav-next">
<?php
if (empty(next['id'] ?>">Next ></a><?php
}
?>
</div>
</div>
<div id="photo-info-<?php echo id ?>); return false;">More info...</a></div>
</div>
</body>
</html>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.