本文整理汇总了PHP中phpFlickr::buildPhotoURL方法的典型用法代码示例。如果您正苦于以下问题:PHP phpFlickr::buildPhotoURL方法的具体用法?PHP phpFlickr::buildPhotoURL怎么用?PHP phpFlickr::buildPhotoURL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类phpFlickr
的用法示例。
在下文中一共展示了phpFlickr::buildPhotoURL方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_images
/**
* get images from flickr
* @author - Henry Addo
* @access - public
* @return - Array of images
*/
public function get_images()
{
$username = "";
$photo_urls = "http://www.flickr.com/photos/eyedol/";
$tags = "tedglobal2007";
// create instance of phpFlickr class
$flickr = new phpFlickr('');
//enable caching
$flickr->enableCache("");
//authenticate
//$flickr->auth();
//get token
//$token = $token['user']['nsid'];
// get NSID of the username
$nsid = $token['user']['nsid'];
$user = $flickr->people_findByUsername($username);
//get the friendly URL of the the users' photos
$photos_url = $flickr->urls_getUserPhotos($username);
// get 20 images of public images of the user
//$photos = $flickr->photos_search( array( 'tags'=>$tags,
//'per_page'=> 200 ) );
$photos = $flickr->people_getPublicPhotos($username, NULL, 36);
// loop through the photos
foreach ((array) $photos['photo'] as $photo) {
$this->images[] = "<li><a href=\"#\">\n <img alt='{$photo['title']}' title='{$photo['title']}'\n src=\"" . $flickr->buildPhotoURL($photo, 'Square') . "\" \n onclick=\"get_image_id('" . $flickr->buildPhotoURL($photo) . "','{$photo['title']}')\"/></a></li>";
$owner = $flickr->people_getInfo($photo[owner]);
$this->owner = $owner['username'];
}
return $this->images;
}
示例2: getFotos
public function getFotos()
{
$f = new phpFlickr("f8dfa483443f9424a79d73c50344b90c");
//Clase de Api, conseguir en: http://www.flickr.com/services/api/keys/
$nsid = "139950084@N02";
//NSID Usuario, conseguir en: http://idgettr.com/
//Incluir tag, ordenamieno, privacidad, y numero de imagenes a mostrar
$tagsList = $f->tags_getListUser($nsid);
$j = 0;
foreach ($tagsList as $tagl) {
$photos = $f->photos_search(array("tags" => $tagl['_content'], "user_id" => $nsid, "sort" => "date-posted-desc", "privacy_filter" => "1"));
//$photoList[$tagl['_content']] = $photos['photo'];
$i = 0;
$photoList[$j]['tag'] = $tagl['_content'];
foreach ($photos['photo'] as $photo) {
$photoList[$j]['photos'][$i]['id'] = $photo['id'];
$photoList[$j]['photos'][$i]['url'] = $f->buildPhotoURL($photo, "Medium 640");
$i++;
}
$j++;
/* if (is_array($photos['photo'])){
$i = 0;
foreach ($photos['photo'] as $photo){
$photoList[$tagl['_content']][$i] = $f->buildPhotoURL($photo, "Medium 640");
}
}*/
}
return $photoList;
}
示例3: searchFlickrPhotoDetail
function searchFlickrPhotoDetail($id, $type)
{
$retval = array();
$data = array();
$f = new phpFlickr('5bc169cff7b9121c0c93f9b8804b1116');
$photo = $f->photos_getInfo($id);
$tags = '';
foreach ($photo['tags']['tag'] as $tag) {
$tags .= $tag['raw'] . ',';
//$tag['raw']
}
$notes = array();
foreach ($photo['notes']['note'] as $note) {
$notes[] = $note['_content'];
}
$urls = array();
foreach ($photo['urls']['url'] as $url) {
$urls = $url['_content'];
}
$data = array('title' => $photo['title'], 'description' => $photo['description'], 'image' => $f->buildPhotoURL($photo), 'date' => $photo['dates']['taken'], 'author' => $photo['owner']['username'], 'authorUrl' => 'http://flickr.com/photos/' . $photo['owner']['nsid'], 'tags' => $tags, 'note' => $notes, 'url' => $urls);
$retval['status'] = 'OK';
$retval['statusmsg'] = 'OK';
$retval['data'] = $data;
return $retval;
}
示例4: flickr_stream
function flickr_stream($username, $api_key)
{
require_once "phpflickr/phpFlickr.php";
$phpFlickrObj = new phpFlickr($api_key);
$phpFlickrObj->enableCache("fs", TEMPLATEPATH . "/cache");
$user = $phpFlickrObj->people_findByUsername($username);
$user_url = $phpFlickrObj->urls_getUserPhotos($user['id']);
$photos = $phpFlickrObj->people_getPublicPhotos($user['id'], NULL, NULL, 9);
foreach ($photos['photos']['photo'] as $photo) {
echo '<a href="' . $user_url . $photo['id'] . '" title="' . $photo['title'] . ' (on Flickr)" target="_blank">';
echo '<img style="width: 64px; height: 64px; margin: 1px; padding: 2px; border: 3px solid #ddd; background: #fff;" class="wp-image" alt="' . $photo['title'] . '" src="' . $phpFlickrObj->buildPhotoURL($photo, "square") . '" />';
echo '</a>';
}
}
示例5: display
function display()
{
$flickr = new phpFlickr(ModUtil::getVar('Content', 'flickrApiKey'));
$flickr->enableCache("fs", System::getVar('temp'));
// Find the NSID of the username
$person = $flickr->people_findByUsername($this->userName);
// Get the photos
//$photos = $flickr->people_getPublicPhotos($person['id'], NULL, $this->photoCount);
$photos = $flickr->photos_search(array('user_id' => $person['id'], 'tags' => $this->tags, 'per_page' => $this->photoCount));
$photoData = array();
foreach ((array) $photos['photo'] as $photo) {
$photoData[] = array('title' => DataUtil::formatForDisplayHTML($this->decode($photo['title'])), 'src' => $flickr->buildPhotoURL($photo, "Square"), 'url' => "http://www.flickr.com/photos/{$photo['owner']}/{$photo['id']}");
}
$this->view->assign('photos', $photoData);
return $this->view->fetch($this->getTemplate());
}
示例6: jeg_get_flickr_photo
function jeg_get_flickr_photo($flickrapi, $flickrid, $totalimage)
{
require_once JEG_PLUGIN_DIR . "util/phpFlickr/phpFlickr.php";
$f = new phpFlickr($flickrapi);
$result = $f->people_getPublicPhotos($flickrid, null, null, $totalimage, null);
$photos = array();
if (empty($result)) {
echo $f->getErrorMsg();
} else {
$photosUrl = $f->urls_getUserPhotos($flickrid);
foreach ($result['photos']['photo'] as $photo) {
$photos[] = array('s' => $f->buildPhotoURL($photo, 'square'), 'url' => $photosUrl . $photo['id'], 'title' => $photo['title']);
}
}
return $photos;
}
示例7: displayFlickrPhotos
function displayFlickrPhotos()
{
if (isset($_GET['q']) && isset($_GET['maxResults'])) {
$flickrKey = 'b1a69066d658530df604321f514b72d0';
$flickrSecret = '9e0e977d109675fa';
require_once 'phpFlickr.php';
$f = new phpFlickr($flickrKey);
$recent = $f->photos_search(array("tags" => $_GET['q'], "tag_mode" => "any", "per_page" => $_GET['maxResults'], "extras" => "url_sq"));
$url = array();
$urls = array();
if (count($recent['photo']) < 1) {
echo '<h5>There are no Results Found</h5>';
} else {
foreach ($recent['photo'] as $photo) {
$urls[] = $f->buildPhotoURL($photo, "Medium");
}
foreach ($urls as $url) {
echo '<img src="' . $url . '">';
}
}
}
}
示例8: phpFlickr
<?php
/* Last updated with phpFlickr 1.3.2
*
* This example file shows you how to call the 100 most recent public
* photos. It parses through them and prints out a link to each of them
* along with the owner's name.
*
* Most of the processing time in this file comes from the 100 calls to
* flickr.people.getInfo. Enabling caching will help a whole lot with
* this as there are many people who post multiple photos at once.
*
* Obviously, you'll want to replace the "<api key>" with one provided
* by Flickr: http://www.flickr.com/services/api/key.gne
*/
require_once "phpFlickr.php";
$f = new phpFlickr("3077891bafd02f95795c02a20be57144");
$recent = $f->people_getPublicPhotos('31446365@N05', null, null, 2);
$photos = array();
if (empty($recent)) {
echo $f->getErrorMsg();
} else {
foreach ($recent['photos']['photo'] as $photo) {
$photos[] = array('s' => $f->buildPhotoURL($photo, 'square'), 'o' => $f->buildPhotoURL($photo, 'original'), 'title' => $photo['title']);
}
}
示例9: flickrbadge
function flickrbadge($params = array())
{
$defaults = array('key' => false, 'username' => false, 'limit' => 10, 'format' => 'square', 'cache' => true, 'refresh' => 60 * 60 * 2);
$options = array_merge($defaults, $params);
// check the cache dir
$cacheDir = c::get('root.cache') . '/flickrbadge';
dir::make($cacheDir);
// disable the cache if adding the cache dir failed
if (!is_dir($cacheDir) || !is_writable($cacheDir)) {
$options['cache'] = false;
}
if (!$options['key']) {
return false;
}
if (!$options['username']) {
return false;
}
$cacheID = 'flickrbadge/data.' . md5(serialize($options)) . '.php';
if ($options['cache']) {
$cache = cache::modified($cacheID) < time() - $options['refresh'] ? false : cache::get($cacheID);
} else {
$cache = false;
}
if (!empty($cache)) {
return $cache;
}
$flickr = new phpFlickr($options['key']);
$userCacheID = 'flickrbadge/user.' . md5($options['username']) . '.php';
$userCache = $options['cache'] ? cache::get($userCacheID) : false;
$user = false;
$url = false;
if (!empty($userCache)) {
$user = a::get($userCache, 'user');
$url = a::get($userCache, 'url');
}
if (!$user || !$url) {
$user = $flickr->people_findByUsername($options['username']);
$url = $flickr->urls_getUserPhotos($user['id']);
if ($options['cache']) {
cache::set($userCacheID, array('user' => $user, 'url' => $url));
}
}
$photos = $flickr->people_getPublicPhotos($user['id'], NULL, NULL, $options['limit']);
$result = array();
foreach ($photos['photos']['photo'] as $photo) {
$photoCacheID = 'flickrbadge/photo.' . $photo['id'] . '.php';
$info = $options['cache'] ? cache::get($photoCacheID) : false;
if (empty($info)) {
$info = $flickr->photos_getInfo($photo['id']);
if ($options['cache']) {
cache::set($photoCacheID, $info);
}
}
$info = a::get($info, 'photo', array());
$dates = a::get($info, 'dates', array());
$tags = array();
foreach ((array) $info['tags']['tag'] as $t) {
if (!empty($t['raw']) && !$t['machine_tag']) {
$tags[] = $t['raw'];
}
}
$result[] = new obj(array('url' => $url . $photo['id'], 'title' => a::get($info, 'title', $photo['title']), 'description' => @$info['description'], 'src' => $flickr->buildPhotoURL($photo, $options['format']), 'taken' => isset($dates['taken']) ? strtotime($dates['taken']) : false, 'posted' => isset($dates['posted']) ? $dates['posted'] : false, 'lastupdate' => isset($dates['lastupdate']) ? $dates['lastupdate'] : false, 'views' => a::get($info, 'views', 0), 'comments' => a::get($info, 'comments', 0), 'tags' => $tags));
}
$result = new obj($result);
if ($options['cache']) {
cache::set($cacheID, $result);
}
return $result;
}
示例10: widget
function widget($args, $instance)
{
extract($args, EXTR_SKIP);
echo $before_widget;
$s_flickr_title = empty($instance['s_flickr_title']) ? '' : apply_filters('widget_s_flickr_title', $instance['s_flickr_title']);
$s_flickr_choice = empty($instance['s_flickr_choice']) ? '14897087@N04' : apply_filters('widget_s_flickr_choice', $instance['s_flickr_choice']);
$s_flickr_noi = empty($instance['s_flickr_noi']) ? 6 : apply_filters('widget_s_flickr_noi', $instance['s_flickr_noi']);
$s_flickr_tou = empty($instance['s_flickr_tou']) ? 'user' : apply_filters('widget_s_flickr_tou', $instance['s_flickr_tou']);
$loop_q = '';
if ($s_flickr_tou == 'user' && vp_option('vpt_option.flickr_key') != '') {
$flickr_key_opt = esc_attr(vp_option('vpt_option.flickr_key'));
require_once locate_template('/inc/phpFlickr.php');
$f = new phpFlickr($flickr_key_opt);
$photos = $f->people_getPublicPhotos($s_flickr_choice, NULL, NULL, $s_flickr_noi);
$loop_q = $photos['photos']['photo'];
} else {
if ($s_flickr_tou == 'all_tag' && vp_option('vpt_option.flickr_key') != '') {
$flickr_key_opt = esc_attr(vp_option('vpt_option.flickr_key'));
require_once locate_template('/inc/phpFlickr.php');
$f = new phpFlickr($flickr_key_opt);
$photos = $f->photos_search(array('tags' => $s_flickr_choice, 'tag_mode' => 'any', 'per_page' => $s_flickr_noi, 'sort' => 'relevance'));
$loop_q = $photos['photo'];
}
}
if ($s_flickr_title != '') {
echo $before_title . $s_flickr_title . $after_title;
}
if (!empty($photos)) {
$fancybox_uid = k_rnd_key(6);
echo '<ul class="list-unstyled clear-margins">';
foreach ($loop_q as $photo) {
echo '<li><a href="' . $f->buildPhotoURL($photo, 'large') . '" title="' . $photo['title'] . '" class="swipebox" rel="flickrgal-' . $fancybox_uid . '"><img src="' . $f->buildPhotoURL($photo, 'square') . '" alt="' . $photo['title'] . '" /></a></li>';
}
echo '</ul>';
} else {
echo '<p>' . __('No photos matching given criteria.', 'kazaz') . '</p>';
}
echo $after_widget;
}
示例11: getPhotosetData
function getPhotosetData($photoset, $params)
{
$data = array();
if (empty($photoset))
return $data;
$photos = null;
$photoset = AriUtils2::getParam($photoset, 'photoset', $photoset);
if ($photoset) $photos = AriUtils2::getParam($photoset, 'photo');
if (empty($photos))
return $data;
$photosetId = AriUtils2::getParam($photoset, 'id', null);
$thumbSize = AriUtils2::getParam($params, 'thumbSize', 'thumbnail');
$imgSize = $params['imgSize'];
foreach ($photos as $photo)
{
$thumbUrl = @phpFlickr::buildPhotoURL($photo, $thumbSize);
$title = str_replace('"', '"', AriUtils2::getParam($photo, 'title', ''));
$data[$photo['id']] = array(
'photosetId' => $photosetId,
'dateUpload' => AriUtils2::getParam($photo, 'dateupload'),
'lastUpdate' => AriUtils2::getParam($photo, 'lastupdate'),
'imgUrl' => @phpFlickr::buildPhotoURL($photo, $imgSize),
'thumbUrl' => @phpFlickr::buildPhotoURL($photo, $thumbSize),
'Title' => $title,
'w' => $this->getPhotoWidth($photo, $thumbSize),
'h' => $this->getPhotoHeight($photo, $thumbSize)
);
}
return $data;
}
示例12: foreach
$flickr_gallery->enableCache('fs', 'cache');
$flickr_gallery_people = $flickr_gallery->people_findByUsername($flickr_username);
$flickr_gallery_user_id = $flickr_gallery_people['id'];
$flickr_gallery_photos = $flickr_gallery->photosets_getPhotos($flickr_photoset_id, null, null);
?>
<div id="slider" class="flickr-gallery">
<h2>Interior Design Gallery</h2>
<div class="infiniteCarousel">
<div class="wrapper">
<ul>
<?php
foreach ($flickr_gallery_photos['photoset']['photo'] as $photo) {
?>
<li><a href="<?php
echo $flickr_gallery->buildPhotoURL($photo, 'Large');
?>
" rel="facebox" title="<?php
echo $photo['title'];
?>
"><img class="photo" src="<?php
echo $flickr_gallery->buildPhotoURL($photo, 'Square');
?>
" width="140" height="100" /></a></li>
<?php
}
?>
</ul>
</div>
</div>
</div>
示例13: switch
//.........这里部分代码省略.........
// display possible options for sort order
foreach($flickr_goodSortOrders as $value => $description) {
echo '<option value="'.$value.'"';
if($sortOrder == $value) echo(' selected="true"');
echo '>'.$description.'</option>';
}
?>
</select>
</div>
</form>
<?php
// in the second step, we show latest photos (thumbs) for given username
if ($serendipity['POST']['adminAction'] == 'flickr') {
// make use of phpFlikr lib (http://www.phpflickr.com/)
require_once dirname(__FILE__) . '/phpFlickr/phpFlickr.php';
$f = new phpFlickr($this->get_config('api_key'));
$i = 0;
if (!empty($serendipity['POST']['flickr_username'])) {
// Find the NSID of the username inputted via the form
$nsid = $f->people_findByUsername($serendipity['POST']['flickr_username']);
// Get the friendly URL of the user's photos
$photos_url = $f->urls_getUserPhotos($nsid);
echo '<h4 style="margin-bottom: 0; padding-bottom: 0;">Photos of <em>';
echo (function_exists('serendipity_specialchars') ? serendipity_specialchars($serendipity['POST']['flickr_username']) : htmlspecialchars($serendipity['POST']['flickr_username'], ENT_COMPAT, LANG_CHARSET)) . '</em> at ';
echo '<a href="' . $photos_url . '" target="_blank">' . $photos_url . '</a></h4>';
// default page is number one
if (empty($serendipity['POST']['flickr_page']) || !is_numeric($serendipity['POST']['flickr_page'])) {
$serendipity['POST']['flickr_page'] = 1;
}
// make sure page is a number between 1 and 500 (range allowed by flickr API)
$serendipity['POST']['flickr_page'] = min(500, max(1, (int) $serendipity['POST']['flickr_page']));
echo '<h5 style="margin-top: 0; padding-top: 0;">Displaying page ' . (function_exists('serendipity_specialchars') ? serendipity_specialchars($serendipity['POST']['flickr_page']) : htmlspecialchars($serendipity['POST']['flickr_page'], ENT_COMPAT, LANG_CHARSET)) . '</h5>';
// Search is made depending on selected criterias
$searchCriteria = array();
// make sure sort order is non empty AND valid
if (isset($serendipity['POST']['flickr_sort']) && strlen(trim($serendipity['POST']['flickr_sort'])) && array_key_exists($serendipity['POST']['flickr_keywords'], $flickr_goodSortOrders)) {
$searchCriteria['sort'] = function_exists('serendipity_specialchars') ? serendipity_specialchars($serendipity['POST']['flickr_sort']) : htmlspecialchars($serendipity['POST']['flickr_sort'], ENT_COMPAT, LANG_CHARSET);
}
// TODO: clean up tags of unwanted characters (keep only [a-zA-Z0-9_-])
if (isset($serendipity['POST']['flickr_tags']) && strlen(trim($serendipity['POST']['flickr_tags']))) {
$searchCriteria['tags'] = implode(',', explode(' ', function_exists('serendipity_specialchars') ? serendipity_specialchars($serendipity['POST']['flickr_tags']) : htmlspecialchars($serendipity['POST']['flickr_tags'], ENT_COMPAT, LANG_CHARSET)));
}
// TODO: cleanup keywords
if (isset($serendipity['POST']['flickr_keywords']) && strlen(trim($serendipity['POST']['flickr_keywords']))) {
$searchCriteria['text'] = function_exists('serendipity_specialchars') ? serendipity_specialchars($serendipity['POST']['flickr_keywords']) : htmlspecialchars($serendipity['POST']['flickr_keywords'], ENT_COMPAT, LANG_CHARSET);
}
if (count($searchCriteria)) {
// It seems the user wants an advanced search
$searchCriteria['user_id'] = $nsid;
$photos = $f->photos_search($searchCriteria);
} else {
// No extra criteria, get the user's next 12 public photos (+1 to show > next or not !)
$photos = $f->people_getPublicPhotos($nsid, NULL, 13, $serendipity['POST']['flickr_page']);
// Get user's tags (if any)
/*$tags = $f->tags_getListUser($nsid);
if(is_array($tags['tags']['tag'])) {
echo implode(',', $tags['tags']['tag']);
echo "<br />\n";
}*/
}
// Loop through the photos and output the html
foreach ($photos['photo'] as $photo) {
echo '<a title="Add to library" href="javascript:flickr_doImport(\'' . $f->buildPhotoURL($photo, 'Original') . '\');" ';
echo 'onclick="return confirm(\'Import this photo into the media library ?\');">';
echo '<img border="0" alt="' . $photo['title'] . '" src=' . $f->buildPhotoURL($photo, 'Square') . ' />';
echo '</a>';
// break before the 13th photo (if any)
if (++$i == 12) {
break;
}
// If it reaches the sixth photo, insert a line break
if ($i % 6 == 0) {
echo "<br />\n";
}
}
// end foreach
echo "<br />\n";
// navigate through pages of photos
if ($serendipity['POST']['flickr_page'] > 1) {
echo '<a href="javascript:flickr_showPage(' . (int) ($serendipity['POST']['flickr_page'] - 1) . ');">Previous</a>';
}
echo ' ';
if (count($photos['photo']) > 12) {
echo '<a href="javascript:flickr_showPage(' . (int) ($serendipity['POST']['flickr_page'] + 1) . ');">Next</a>';
}
}
// end if
}
// end if
return true;
break;
default:
return false;
break;
}
} else {
return false;
}
}
示例14: phpFlickr
//Incluyendo el API de Flickr
$f = new phpFlickr("03e1411633d36816cc74fb82204549ec");
//Clase de Api, conseguir en: http://www.flickr.com/services/api/keys/
$nsid = "";
//NSID Usuario, conseguir en: http://idgettr.com/
//Incluir tag, ordenamieno, privacidad, y numero de imagenes a mostrar
$photos = $f->photos_search(array("tags" => "mozilla-hispano", "user_id" => $nsid, "sort" => "date-posted-desc", "privacy_filter" => "1", "per_page" => "10"));
$url = "//www.flickr.com/photos/" . $photo['id'] . "/";
//Url de la Imgen Original
if (is_array($photos['photo'])) {
echo "<div><ul>";
$sw = 1;
foreach ($photos['photo'] as $photo) {
if ($sw == 1) {
$salida = "<li class='foto'>";
$salida .= "<a href='" . $f->buildPhotoURL($photo, "medium") . "' title='" . $photo['title'] . "' class='thickbox' rel='mozilla-hispano'><img alt='" . $photo['title'] . "' title='" . $photo['title'] . "' " . "src='" . $f->buildPhotoURL($photo, "square") . "' /></a>";
$sw = 0;
} else {
$salida .= "<a href='" . $f->buildPhotoURL($photo, "medium") . "' title='" . $photo['title'] . "' class='thickbox' rel='mozilla-hispano'><img alt='" . $photo['title'] . "' title='" . $photo['title'] . "' " . "src='" . $f->buildPhotoURL($photo, "square") . "' /></a>";
echo $salida . "</li>";
$sw = 1;
}
}
echo "</ul></div>";
}
?>
</div><!-- Fotos -->
<p class="all-photos"><a href="//api.flickr.com/services/feeds/photos_public.gne?tags=mozilla-hispano&lang=es-us&format=rss_200"><img width="12" height="12" alt="" src="postload.php?url=http://api.flickr.com/services/feeds/photos_public.gne?tags=mozilla-hispano&lang=es-us&format=rss_200"/> RSS de las fotos</a></p>
<p class="all-photos"><a href="http://www.flickr.com/photos/tags/mozilla-hispano/">Ver todas las fotos</a></p>
</div>
示例15: if
{
mkdir($cacheFolderPath);
}
$lifetime = 860 * 860; // 60 * 60=One hour
$f->enableCache("fs", "$cacheFolderPath", "$lifetime");
}
?>
<?php if ($flickrCaption == "1") : ?>
<div id="gallery">
<div class="photosets">
<?php $photos = $f->photosets_getPhotos($flickrSet, NULL, NULL, $flickrNumber); ?>
<?php foreach ($photos['photoset']['photo'] as $photo): $d = $f->photos_getInfo($photo['id']); ?>
<div class="photos">
<ul>
<li>
<a href="#"><img src="<?= $f->buildPhotoURL($photo, $flickrThumb) ?>" data-large="<?= $f->buildPhotoURL($photo, 'large') ?>" alt="<?= $photo['title'] ?>" data-description= "<?= $photo['title'] ?>" data-href="<?= $f->buildPhotoURL($photo, 'large') ?>" /></a>
</a>
</div>
<?php endforeach ; ?>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<?php elseif ($flickrCaption == "2") : ?>
<div id="gallery">
<div class="photosets">