'image', mainClass: 'mfp-img-mobile', gallery: { enabled: true, navigateByImgClick: true, tPrev: 'Previous', tNext: 'Next', tCounter: '%curr% of %total%' }, image: { titleSrc: function(item) { return item.el.attr('title'); }, tError: 'Image not loaded' } }); jQuery('a.magnific2').magnificPopup({ type: 'image', mainClass: 'mfp-img-mobile', image: { tError: 'Image not loaded' } }); jQuery('a.magnific3').magnificPopup({ type: 'iframe', mainClass: 'mfp-img-mobile', preloader: false, fixedContentPos: false, }); });