• Hi, Guillermo. Very useful plugin, thanks! Would you mind adding support for the NextGEN Widget as well? It was a simple addition to ngg-photoswipe.js:

    if (jQuery(".ngg-widget a").length > 0) {
    		jQuery(".ngg-widget a").photoSwipe({
    			captionAndToolbarAutoHideDelay: 0,
    			getImageCaption: function(el){
    				psTitle = jQuery(el).find("img").first().attr("alt");
    				psDescription = jQuery(el).attr("title");
    				psCaptionString = "<strong>" + psTitle + "</strong>";
    				if (psDescription.length > 1) {
    					psCaptionString = psCaptionString + '<div class="ps-long-description"><small>' + psDescription + '</small></div>';
    				}
    				psImgCaption = jQuery(psCaptionString);
    				return psImgCaption;
    			}
    		});
    	}

    Thanks,
    Jeremy

    http://wordpress.org/extend/plugins/photoswipe-for-nextgen-gallery/

  • The topic ‘Add NextGEN Widget Support?’ is closed to new replies.