PATH:
home
/
thebhoeo
/
.trash
/
woodmart
/
js
/
scripts
/
global
/* global woodmart_settings, woodmartThemeModule, jQuery */ (function($) { woodmartThemeModule.$document.on('wdPortfolioLoadMoreLoaded', function () { woodmartThemeModule.mfpPopup(); }); woodmartThemeModule.mfpPopup = function() { if ('undefined' === typeof $.fn.magnificPopup) { return; } const popupWrap = '.wd-popup-wrap' $('.gallery').off('click').on('click', 'a:not([data-elementor-open-lightbox]), a[data-elementor-open-lightbox=no]', function(e) { e.preventDefault() setTimeout(() => { if ($.magnificPopup?.instance?.isOpen) { $.magnificPopup.instance.st.removalDelay = 0 $.magnificPopup.close() } const $link = $(this) const $gallery = $link.closest('.gallery') const $items = $gallery.find('a:not([data-elementor-open-lightbox]), a[data-elementor-open-lightbox=no]') const index = $items.index($link) const items = [] $items.each(function() { items.push({ src: $(this).attr('href') }) }) $.magnificPopup.open({ items : items, type : 'image', removalDelay : 600, closeMarkup : woodmart_settings.close_markup, tLoading : woodmart_settings.loading, fixedContentPos: true, callbacks : { beforeOpen: function() { this.wrap.addClass('wd-popup-gallery-wrap') }, change: function() { setTimeout(() => { this.wrap.find(popupWrap).addClass('wd-in wd-animated') }, 16) }, }, image : { verticalFit: true, markup: '<div class="mfp-figure wd-popup wd-popup-gallery">'+ woodmart_settings.close_markup + '<figure>'+ '<div class="mfp-img"></div>'+ '<figcaption>'+ '<div class="mfp-bottom-bar">'+ '<div class="mfp-title"></div>'+ '<div class="mfp-counter"></div>'+ '</div>'+ '</figcaption>'+ '</figure>'+ '</div>' }, gallery : { enabled : true, navigateByImgClick: true } }, index) }) }) }; $(document).ready(function() { woodmartThemeModule.mfpPopup(); }); })(jQuery);
[-] beforeSearchContent.js
[edit]
[-] parallax.js
[edit]
[-] scrollTop.min.js
[edit]
[-] floatingBlocks.min.js
[edit]
[-] searchHistory.min.js
[edit]
[-] hiddenSidebar.min.js
[edit]
[-] masonryLayout.js
[edit]
[-] stickyColumn.js
[edit]
[-] stickyColumn.min.js
[edit]
[-] helpers.min.js
[edit]
[-] stickySocialButtons.min.js
[edit]
[-] parallax.min.js
[edit]
[-] swiperInit.js
[edit]
[-] clearSearch.js
[edit]
[-] scrollTop.js
[edit]
[-] clearSearch.min.js
[edit]
[-] ageVerify.min.js
[edit]
[-] beforeSearchContent.min.js
[edit]
[-] stickySocialButtons.js
[edit]
[-] ajaxSearch.js
[edit]
[-] mfpPopup.js
[edit]
[-] lcpTracker.js
[edit]
[-] photoswipeImages.js
[edit]
[-] clickOnScrollButton.min.js
[edit]
[-] masonryLayout.min.js
[edit]
[-] css-animations.js
[edit]
[-] cookiesPopup.min.js
[edit]
[-] hiddenSidebar.js
[edit]
[-] widgetCollapse.min.js
[edit]
[-] cookiesPopup.js
[edit]
[-] animations.min.js
[edit]
[-] scrollBar.min.js
[edit]
[-] photoswipeImages.min.js
[edit]
[-] floatingBlocks.js
[edit]
[-] ajaxSearch.min.js
[edit]
[-] callPhotoSwipe.min.js
[edit]
[-] lazyLoading.js
[edit]
[-] backHistory.js
[edit]
[-] searchHistory.js
[edit]
[-] stickyContainer.js
[edit]
[+]
..
[-] css-animations.min.js
[edit]
[-] swiperInit.min.js
[edit]
[-] mfpPopup.min.js
[edit]
[-] lazyLoading.min.js
[edit]
[-] clickOnScrollButton.js
[edit]
[-] helpers.js
[edit]
[-] searchFullScreen.min.js
[edit]
[-] scrollBar.js
[edit]
[-] backHistory.min.js
[edit]
[-] animations.js
[edit]
[-] lcpTracker.min.js
[edit]
[-] btnsToolTips.min.js
[edit]
[-] searchFullScreen.js
[edit]
[-] widgetCollapse.js
[edit]
[-] stickyContainer.min.js
[edit]
[-] widgetsHidable.js
[edit]
[-] callPhotoSwipe.js
[edit]
[-] ageVerify.js
[edit]
[-] animationsOffset.js
[edit]
[-] widgetsHidable.min.js
[edit]
[-] animationsOffset.min.js
[edit]
[-] btnsToolTips.js
[edit]