jQuery(document).ready(function () { jQuery(".bigg img , .indent img , .post-image img , .copy > p > img").not('.more img , .bootstrap-yop img').wrap('
'); jQuery(".bigg img , .indent img , .post-image img , .copy > p > img") .not('.more img') .not('.TN_Basic-vote-button-img').each(function () { img_tag = jQuery(this); img_src = jQuery(this).attr('src'); img_alt = jQuery(this).attr('alt'); img_tag.attr('border', '0').attr('class', 'thumb').attr('class', 'aligncenter'); if (img_src.includes('http')) { jQuery(img_tag).wrap(''); } }); jQuery('.popup-gallery').magnificPopup({ delegate: 'a', type: 'image', tLoading: 'Loading image #%curr%...', mainClass: 'mfp-img-mobile', gallery: { enabled: true, navigateByImgClick: true, preload: [0, 1] }, image: { tError: 'The image #%curr% �∪�𣇉��!.', titleSrc: function (item) { return item.el.attr('title'); } } }); jQuery('.popup-gallery').click(function(){ if( jQuery('.mfp-counter').text() === ""){ jQuery('.mfp-text').css('display', 'none') }}); });