;(function($) { $('{selector}').each(function() { $(this).magnificPopup({ delegate: 'a:isImageFile', tClose: '', type: 'image', tLoading: '', mainClass: 'mfp-img-mobile', gallery: { enabled: , preload: , navigateByImgClick: , arrowMarkup: '', tPrev: '', tNext: '', tCounter: '' }, image: { cursor: '', titleSrc: 'title', verticalGap: , verticalFit: , tError: '' } }); }); })(window.jQuery || window.Zepto);