Implementé una galería que levanta imágenes de flickr, no tuve inconvenientes, pero me gustaría poder capturar la descripción de cada foto y no me doy cuenta como llamar a ese campo.
En el script se puede capturar el nombre del album y el título, pero al obtener la ID de cada foto, supongo que es posible mostrar la descripción también.
La galería en cuestión es http://tympanus.net/Tutorials/FlickrPhotobarGallery/
y creo que la parte del script en donde se debería llamar a la descripción es esta:
Código HTML:
function LoadLargePhoto(){
removeLargeImage();
var $theThumb = $photosContainer.find('li:nth-child(' + parseInt(current + 1) + ')').find('img');
var photo_title = $theThumb.parent().data('photo_title');
var $loading = $photopreview.find('.loading');
$loading.show();
$photopreview.show();
$flickrOverlay.show();
$('#preview_close').show();
var large_photo_url = large_photo_service + '&photo_id=' + photo_id + '&format=json&jsoncallback=?';
$.getJSON(large_photo_url,function(data){
if(data.stat != 'fail') {
var count_sizes = data.sizes.size.length;
var largest_photo_src;
for(var i = 0; i < count_sizes; ++i){
if(data.sizes.size[i].label == large_image_size)
largest_photo_src = data.sizes.size[i].source;
}
$('<img />').load(function(){
var $this = $(this);
/*
resize the image to fit in the browser's window
*/
resize($this);
$loading.hide();
/*just to make sure theres no image:*/
removeLargeImage();
$photopreview.find('.preview').append($this);
$('#large_phototitle').empty().html(photo_title);
}).attr('src',largest_photo_src);
}
});
}