topical media & game development
mashup-flickr-06-Complete-lib-FlickrGallery.php / php
<?php
class FlickrGallery
{
var nsid = '50317659@N00';
function FlickrGallery()
{
global flickrApiSecret;
flickrApiKey, n = 20)
{
this->nsid,
'sort' => 'date-posted-desc',
'page' => 1,
'per_page' => p = args);
if (this->flickr->getErrorMsg());
}
return id)
{
this->flickr->photos_getInfo(this->flickr->getErrorCode())
{
echo ("Error getting photo info: " . p;
}
function showSmartSetThumbnail(title = "Set", tags = "",
sort = "date-posted-desc")
{
url = title) . '&tags=' . urlencode(n&tagMode=sort";
// Get image to display
this->getSmartSet(1, tagMode, photos) && count(photo = img = 'http://static.flickr.com/' . photo['id']
. '_' . s .= "<a href=\"img\" /></a>";
title . "</p>";
}
return n = 20, tagMode = "all",
ret = array();
this->nsid,
'sort' => n,
'extras' => 'owner_name'
);
if (!empty(args['tags'] = args['tag_mode'] = p = args);
if (this->flickr->getErrorMsg());
}
if (is_array(p['photo']) > 0)
{
p['photo'];
}
return
(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.