平面攝影

Flickr Album Gallery Pro Powered By: Weblizar

" href="" class="image gallery_2col">

Read More
', title: photo.title, href: photo.href }).hide() .append(img) .append(jQuery('
', { 'class': 'b-wrapper ' }))))); }); element.imagesLoaded() .done(jQuery.proxy(this._flickrAnimate, this)) .always(jQuery.proxy(this._hideSpinner, this)); }; this._flickrPhotoset = function(photoset) { var _this = this; photos[photoset.id] = []; jQuery.each(photoset.photo, function(key, photo) { // Limit number of photos. if(key >= _this.settings.photosLimit) { return false; } photos[photoset.id][key] = { thumbnail: 'http://farm' + photo.farm + '.static.flickr.com/' + photo.server + '/' + photo.id + '_' + photo.secret + '_m.jpg', href: 'http://farm' + photo.farm + '.static.flickr.com/' + photo.server + '/' + photo.id + '_' + photo.secret + '_b.jpg', title: photo.title }; }); this._printGallery(photos[photoset.id]); }; this._onFlickrResponse = function(response) { if(response.stat === "ok") { this._flickrPhotoset(response.photoset); } else { this._hideSpinner(); this._printError(); } }; this._flickrRequest = function(method, data) { var url = apiUrl + "?format=json&jsoncallback=?&method=" + method + "&api_key=" + this.settings.apiKey; jQuery.each(data, function(key, value) { url += "&" + key + "=" + value; }); jQuery.ajax({ dataType: "json", url: url, context: this, success: this._onFlickrResponse }); }; this._flickrInit = function () { this._flickrRequest('flickr.photosets.getPhotos', { photoset_id: this.settings.photosetId }); }; // Init this.init(); } Plugin.prototype = { init: function () { this._flickrInit(); } }; // Wrapper jQuery.fn[pluginName] = function (options) { this.each(function () { if (!jQuery.data(this, "plugin_" + pluginName)) { jQuery.data(this, "plugin_" + pluginName, new Plugin(this, options)); } }); // Chain return this; }; })(jQuery, window, document);
Flickr Album Gallery Pro Powered By: Weblizar