Please try again later.', PLAY_START: 'Start slideshow', PLAY_STOP: 'Pause slideshow', FULL_SCREEN: 'Full screen', THUMBS: 'Thumbnails', DOWNLOAD: 'Download', SHARE: 'Share', ZOOM: 'Zoom' }; $.fancybox.defaults.lang = 'en'; $('a.fancybox-gallery').fancybox({ buttons: [ 'slideShow', 'fullScreen', 'thumbs', 'share', 'download', //'zoom', 'close' ], beforeShow: function(instance, current) { if (current.type === 'image') { var title = current.opts.$orig.attr('title'); current.opts.caption = (title.length ? 'Image ' + (current.index + 1) + ' of ' + instance.group.length + '' + ' | ' + title : ''); } } }); }); })(jQuery);