/* * jQuery Flickr - jQuery plug-in * Version 1.0, Released 2008.04.17 * * Copyright (c) 2008 Daniel MacDonald (www.projectatomic.com) * Dual licensed GPL http://www.gnu.org/licenses/gpl.html * and MIT http://www.opensource.org/licenses/mit-license.php */ (function($) { $.fn.flickr = function(o){ var s = { api_key: null, // [string] required, see http://www.flickr.com/services/api/misc.api_keys.html type: null, // [string] allowed values: 'photoset', 'search', default: 'flickr.photos.getRecent' photoset_id: null, // [string] required, for type=='photoset' text: null, // [string] for type=='search' free text search user_id: null, // [string] for type=='search' search by user id group_id: null, // [string] for type=='search' search by group id tags: null, // [string] for type=='search' comma separated list tag_mode: 'any', // [string] for type=='search' allowed values: 'any' (OR), 'all' (AND) sort: 'relevance', // [string] for type=='search' allowed values: 'date-posted-asc', 'date-posted-desc', 'date-taken-asc', 'date-taken-desc', 'interestingness-desc', 'interestingness-asc', 'relevance' thumb_size: 's', // [string] allowed values: 's' (75x75), 't' (100x?), 'm' (240x?) size: null, // [string] allowed values: 'm' (240x?), 'b' (1024x?), 'o' (original), default: (500x?) per_page: 100, // [integer] allowed values: max of 500 page: 1, // [integer] see paging notes attr: '', // [string] optional, attributes applied to thumbnail tag api_url: null, // [string] optional, custom url that returns flickr JSON or JSON-P 'photos' or 'photoset' params: '', // [string] optional, custom arguments, see http://www.flickr.com/services/api/flickr.photos.search.html api_callback: '?', // [string] optional, custom callback in flickr JSON-P response callback: null, // [function] optional, callback function applied to entire