/var/www/vhosts/ihelp.ro/ajutam.ro/wp-includes/js
NameSizeModeActions
codemirror/-0755rm
crop/-0755rm
dist/-0755rm
imgareaselect/-0755rm
jcrop/-0755rm
jquery/-0755rm
mediaelement/-0755rm
plupload/-0755rm
swfupload/-0755rm
thickbox/-0755rm
tinymce/-0755rm
admin-bar.js105470644editdlrm
admin-bar.min.js34870644editdlrm
api-request.js33240644editdlrm
api-request.min.js10230644editdlrm
autosave.js224760644editdlrm
autosave.min.js58070644editdlrm
backbone.js803900644editdlrm
backbone.min.js243010644editdlrm
clipboard.js268070644editdlrm
clipboard.min.js90090644editdlrm
colorpicker.js290830644editdlrm
colorpicker.min.js164980644editdlrm
comment-reply.js125130644editdlrm
comment-reply.min.js30260644editdlrm
customize-base.js258220644editdlrm
customize-base.min.js78520644editdlrm
customize-loader.js79030644editdlrm
customize-loader.min.js35510644editdlrm
customize-models.js68210644editdlrm
customize-models.min.js36810644editdlrm
customize-preview-nav-menus.js150240644editdlrm
customize-preview-nav-menus.min.js50330644editdlrm
customize-preview-widgets.js232530644editdlrm
customize-preview-widgets.min.js78200644editdlrm
customize-preview.js285970644editdlrm
customize-preview.min.js110110644editdlrm
customize-selective-refresh.js333350644editdlrm
customize-selective-refresh.min.js106930644editdlrm
customize-views.js52220644editdlrm
customize-views.min.js25670644editdlrm
heartbeat.js240520644editdlrm
heartbeat.min.js59470644editdlrm
hoverintent-js.min.js17180644editdlrm
hoverIntent.js72250644editdlrm
hoverIntent.min.js14990644editdlrm
imagesloaded.min.js55200644editdlrm
json2.js310644editdlrm
json2.min.js350644editdlrm
masonry.min.js241380644editdlrm
mce-view.js258490644editdlrm
mce-view.min.js97700644editdlrm
media-audiovideo.js248190644editdlrm
media-audiovideo.min.js120520644editdlrm
media-editor.js291190644editdlrm
media-editor.min.js108850644editdlrm
media-grid.js267810644editdlrm
media-grid.min.js132940644editdlrm
media-models.js436040644editdlrm
media-models.min.js132840644editdlrm
media-views.js2734000644editdlrm
media-views.min.js1107720644editdlrm
quicktags.js226010644editdlrm
quicktags.min.js111320644editdlrm
shortcode.js107580644editdlrm
shortcode.min.js26430644editdlrm
swfobject.js00644editdlrm
swfobject.min.js350644editdlrm
tw-sack.js49700644editdlrm
tw-sack.min.js32880644editdlrm
twemoji.js371900644editdlrm
twemoji.min.js198580644editdlrm
underscore.js687350644editdlrm
underscore.min.js189050644editdlrm
utils.js46650644editdlrm
utils.min.js18640644editdlrm
wp-ajax-response.js39030644editdlrm
wp-ajax-response.min.js25710644editdlrm
wp-api.js469830644editdlrm
wp-api.min.js146820644editdlrm
wp-auth-check.js42070644editdlrm
wp-auth-check.min.js16580644editdlrm
wp-backbone.js152410644editdlrm
wp-backbone.min.js30390644editdlrm
wp-custom-header.js104650644editdlrm
wp-custom-header.min.js44420644editdlrm
wp-embed-template.js67790644editdlrm
wp-embed-template.min.js31740644editdlrm
wp-embed.js32140644editdlrm
wp-embed.min.js12510644editdlrm
wp-emoji-loader.js133570644editdlrm
wp-emoji-loader.min.js29770644editdlrm
wp-emoji-release.min.js227620644editdlrm
wp-emoji.js87920644editdlrm
wp-emoji.min.js28550644editdlrm
wp-list-revisions.js9700644editdlrm
wp-list-revisions.min.js5970644editdlrm
wp-lists.js253150644editdlrm
wp-lists.min.js75210644editdlrm
wp-pointer.js102330644editdlrm
wp-pointer.min.js36210644editdlrm
wp-sanitize.js13280644editdlrm
wp-sanitize.min.js4440644editdlrm
wp-util.js46890644editdlrm
wp-util.min.js14310644editdlrm
wpdialog.js5690644editdlrm
wpdialog.min.js2810644editdlrm
wplink.js212400644editdlrm
wplink.min.js113170644editdlrm
zxcvbn-async.js8210644editdlrm
zxcvbn-async.min.js3510644editdlrm
zxcvbn.min.js8222370644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-includes/js/customize-models.js (6821B)
/** * @output wp-includes/js/customize-models.js */ /* global _wpCustomizeHeader */ (function( $, wp ) { var api = wp.customize; /** @namespace wp.customize.HeaderTool */ api.HeaderTool = {}; /** * wp.customize.HeaderTool.ImageModel * * A header image. This is where saves via the Customizer API are * abstracted away, plus our own Ajax calls to add images to and remove * images from the user's recently uploaded images setting on the server. * These calls are made regardless of whether the user actually saves new * Customizer settings. * * @memberOf wp.customize.HeaderTool * @alias wp.customize.HeaderTool.ImageModel * * @constructor * @augments Backbone.Model */ api.HeaderTool.ImageModel = Backbone.Model.extend(/** @lends wp.customize.HeaderTool.ImageModel.prototype */{ defaults: function() { return { header: { attachment_id: 0, url: '', timestamp: _.now(), thumbnail_url: '' }, choice: '', selected: false, random: false }; }, initialize: function() { this.on('hide', this.hide, this); }, hide: function() { this.set('choice', ''); api('header_image').set('remove-header'); api('header_image_data').set('remove-header'); }, destroy: function() { var data = this.get('header'), curr = api.HeaderTool.currentHeader.get('header').attachment_id; // If the image we're removing is also the current header, // unset the latter. if (curr && data.attachment_id === curr) { api.HeaderTool.currentHeader.trigger('hide'); } wp.ajax.post( 'custom-header-remove', { nonce: _wpCustomizeHeader.nonces.remove, wp_customize: 'on', theme: api.settings.theme.stylesheet, attachment_id: data.attachment_id }); this.trigger('destroy', this, this.collection); }, save: function() { if (this.get('random')) { api('header_image').set(this.get('header').random); api('header_image_data').set(this.get('header').random); } else { if (this.get('header').defaultName) { api('header_image').set(this.get('header').url); api('header_image_data').set(this.get('header').defaultName); } else { api('header_image').set(this.get('header').url); api('header_image_data').set(this.get('header')); } } api.HeaderTool.combinedList.trigger('control:setImage', this); }, importImage: function() { var data = this.get('header'); if (data.attachment_id === undefined) { return; } wp.ajax.post( 'custom-header-add', { nonce: _wpCustomizeHeader.nonces.add, wp_customize: 'on', theme: api.settings.theme.stylesheet, attachment_id: data.attachment_id } ); }, shouldBeCropped: function() { if (this.get('themeFlexWidth') === true && this.get('themeFlexHeight') === true) { return false; } if (this.get('themeFlexWidth') === true && this.get('themeHeight') === this.get('imageHeight')) { return false; } if (this.get('themeFlexHeight') === true && this.get('themeWidth') === this.get('imageWidth')) { return false; } if (this.get('themeWidth') === this.get('imageWidth') && this.get('themeHeight') === this.get('imageHeight')) { return false; } if (this.get('imageWidth') <= this.get('themeWidth')) { return false; } return true; } }); /** * wp.customize.HeaderTool.ChoiceList * * @memberOf wp.customize.HeaderTool * @alias wp.customize.HeaderTool.ChoiceList * * @constructor * @augments Backbone.Collection */ api.HeaderTool.ChoiceList = Backbone.Collection.extend({ model: api.HeaderTool.ImageModel, // Ordered from most recently used to least. comparator: function(model) { return -model.get('header').timestamp; }, initialize: function() { var current = api.HeaderTool.currentHeader.get('choice').replace(/^https?:\/\//, ''), isRandom = this.isRandomChoice(api.get().header_image); // Overridable by an extending class. if (!this.type) { this.type = 'uploaded'; } // Overridable by an extending class. if (typeof this.data === 'undefined') { this.data = _wpCustomizeHeader.uploads; } if (isRandom) { // So that when adding data we don't hide regular images. current = api.get().header_image; } this.on('control:setImage', this.setImage, this); this.on('control:removeImage', this.removeImage, this); this.on('add', this.maybeRemoveOldCrop, this); this.on('add', this.maybeAddRandomChoice, this); _.each(this.data, function(elt, index) { if (!elt.attachment_id) { elt.defaultName = index; } if (typeof elt.timestamp === 'undefined') { elt.timestamp = 0; } this.add({ header: elt, choice: elt.url.split('/').pop(), selected: current === elt.url.replace(/^https?:\/\//, '') }, { silent: true }); }, this); if (this.size() > 0) { this.addRandomChoice(current); } }, maybeRemoveOldCrop: function( model ) { var newID = model.get( 'header' ).attachment_id || false, oldCrop; // Bail early if we don't have a new attachment ID. if ( ! newID ) { return; } oldCrop = this.find( function( item ) { return ( item.cid !== model.cid && item.get( 'header' ).attachment_id === newID ); } ); // If we found an old crop, remove it from the collection. if ( oldCrop ) { this.remove( oldCrop ); } }, maybeAddRandomChoice: function() { if (this.size() === 1) { this.addRandomChoice(); } }, addRandomChoice: function(initialChoice) { var isRandomSameType = RegExp(this.type).test(initialChoice), randomChoice = 'random-' + this.type + '-image'; this.add({ header: { timestamp: 0, random: randomChoice, width: 245, height: 41 }, choice: randomChoice, random: true, selected: isRandomSameType }); }, isRandomChoice: function(choice) { return (/^random-(uploaded|default)-image$/).test(choice); }, shouldHideTitle: function() { return this.size() < 2; }, setImage: function(model) { this.each(function(m) { m.set('selected', false); }); if (model) { model.set('selected', true); } }, removeImage: function() { this.each(function(m) { m.set('selected', false); }); } }); /** * wp.customize.HeaderTool.DefaultsList * * @memberOf wp.customize.HeaderTool * @alias wp.customize.HeaderTool.DefaultsList * * @constructor * @augments wp.customize.HeaderTool.ChoiceList * @augments Backbone.Collection */ api.HeaderTool.DefaultsList = api.HeaderTool.ChoiceList.extend({ initialize: function() { this.type = 'default'; this.data = _wpCustomizeHeader.defaults; api.HeaderTool.ChoiceList.prototype.initialize.apply(this); } }); })( jQuery, window.wp );