|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/nandedex/www/wp-content/plugins/better-smart-thumbnails/assets/js/ |
var previewModal = {
info: {},
setup: function (info) {
this.info = info;
this.open();
},
open: function () {
var self = this;
if (!self.info.images) {
return;
}
$.bs_selector_modal({
bsModal: {
destroyHtml: true,
show: true
},
noSidebar: true,
id: 'bt-thumbnil-selector',
modalClass: 'bt-modal',
itemInnerHtml: '<div class="bf-item-container">\n <figure>\n <img src="{{img}}"\n alt="{{label}}"\n class="bs-style-thumbnail" data-current-image="{{current_img}}">\n </figure>\n</div>',
content: self.info.l10n,
items: self.info.images.map(self.noCacheImage),
itemsGroupSize: 9,
events: {}
}, {
initialZIndex: 209901
});
},
noCacheImage: function (obj) {
obj.img += "?" + new Date().getTime();
return obj;
}
};