PATH:
home
/
letacommog
/
Haytayan
/
wp-includes
/
js
!function(a,b){var c=b.customize;c.HeaderTool={},c.HeaderTool.ImageModel=Backbone.Model.extend({defaults:function(){return{header:{attachment_id:0,url:"",timestamp:_.now(),thumbnail_url:""},choice:"",selected:!1,random:!1}},initialize:function(){this.on("hide",this.hide,this)},hide:function(){this.set("choice",""),c("header_image").set("remove-header"),c("header_image_data").set("remove-header")},destroy:function(){var a=this.get("header"),d=c.HeaderTool.currentHeader.get("header").attachment_id;d&&a.attachment_id===d&&c.HeaderTool.currentHeader.trigger("hide"),b.ajax.post("custom-header-remove",{nonce:_wpCustomizeHeader.nonces.remove,wp_customize:"on",theme:c.settings.theme.stylesheet,attachment_id:a.attachment_id}),this.trigger("destroy",this,this.collection)},save:function(){this.get("random")?(c("header_image").set(this.get("header").random),c("header_image_data").set(this.get("header").random)):this.get("header").defaultName?(c("header_image").set(this.get("header").url),c("header_image_data").set(this.get("header").defaultName)):(c("header_image").set(this.get("header").url),c("header_image_data").set(this.get("header"))),c.HeaderTool.combinedList.trigger("control:setImage",this)},importImage:function(){var a=this.get("header");void 0!==a.attachment_id&&b.ajax.post("custom-header-add",{nonce:_wpCustomizeHeader.nonces.add,wp_customize:"on",theme:c.settings.theme.stylesheet,attachment_id:a.attachment_id})},shouldBeCropped:function(){return(this.get("themeFlexWidth")!==!0||this.get("themeFlexHeight")!==!0)&&((this.get("themeFlexWidth")!==!0||this.get("themeHeight")!==this.get("imageHeight"))&&((this.get("themeFlexHeight")!==!0||this.get("themeWidth")!==this.get("imageWidth"))&&((this.get("themeWidth")!==this.get("imageWidth")||this.get("themeHeight")!==this.get("imageHeight"))&&!(this.get("imageWidth")<=this.get("themeWidth")))))}}),c.HeaderTool.ChoiceList=Backbone.Collection.extend({model:c.HeaderTool.ImageModel,comparator:function(a){return-a.get("header").timestamp},initialize:function(){var a=c.HeaderTool.currentHeader.get("choice").replace(/^https?:\/\//,""),b=this.isRandomChoice(c.get().header_image);this.type||(this.type="uploaded"),"undefined"==typeof this.data&&(this.data=_wpCustomizeHeader.uploads),b&&(a=c.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(b,c){b.attachment_id||(b.defaultName=c),"undefined"==typeof b.timestamp&&(b.timestamp=0),this.add({header:b,choice:b.url.split("/").pop(),selected:a===b.url.replace(/^https?:\/\//,"")},{silent:!0})},this),this.size()>0&&this.addRandomChoice(a)},maybeRemoveOldCrop:function(a){var b,c=a.get("header").attachment_id||!1;c&&(b=this.find(function(b){return b.cid!==a.cid&&b.get("header").attachment_id===c}),b&&this.remove(b))},maybeAddRandomChoice:function(){1===this.size()&&this.addRandomChoice()},addRandomChoice:function(a){var b=RegExp(this.type).test(a),c="random-"+this.type+"-image";this.add({header:{timestamp:0,random:c,width:245,height:41},choice:c,random:!0,selected:b})},isRandomChoice:function(a){return/^random-(uploaded|default)-image$/.test(a)},shouldHideTitle:function(){return this.size()<2},setImage:function(a){this.each(function(a){a.set("selected",!1)}),a&&a.set("selected",!0)},removeImage:function(){this.each(function(a){a.set("selected",!1)})}}),c.HeaderTool.DefaultsList=c.HeaderTool.ChoiceList.extend({initialize:function(){this.type="default",this.data=_wpCustomizeHeader.defaults,c.HeaderTool.ChoiceList.prototype.initialize.apply(this)}})}(jQuery,window.wp);
[+]
..
[-] wp-custom-header.js
[edit]
[-] media-grid.js
[edit]
[-] quicktags.min.js
[edit]
[-] zxcvbn.min.js
[edit]
[-] customize-base.js
[edit]
[-] wp-backbone.min.js
[edit]
[-] wpdialog.js
[edit]
[-] customize-base.min.js
[edit]
[-] quicktags.js
[edit]
[-] customize-selective-refresh.js
[edit]
[-] media-views.min.js
[edit]
[-] customize-preview-nav-menus.min.js
[edit]
[-] imagesloaded.min.js
[edit]
[+]
jquery
[-] media-editor.js
[edit]
[+]
codemirror
[-] wplink.min.js
[edit]
[-] customize-preview.min.js
[edit]
[-] customize-loader.js
[edit]
[-] zxcvbn-async.js
[edit]
[-] wp-emoji-loader.min.js
[edit]
[-] comment-reply.min.js
[edit]
[-] tw-sack.js
[edit]
[-] json2.js
[edit]
[-] wp-pointer.js
[edit]
[-] colorpicker.min.js
[edit]
[-] wp-api.min.js
[edit]
[-] customize-views.min.js
[edit]
[+]
imgareaselect
[-] autosave.min.js
[edit]
[-] wp-util.js
[edit]
[-] wp-emoji.js
[edit]
[-] wp-embed.min.js
[edit]
[-] wpdialog.min.js
[edit]
[-] wp-embed-template.min.js
[edit]
[-] admin-bar.min.js
[edit]
[-] customize-models.min.js
[edit]
[-] wp-emoji.min.js
[edit]
[+]
dist
[-] wp-lists.min.js
[edit]
[-] hoverIntent.js
[edit]
[-] wp-ajax-response.min.js
[edit]
[-] wp-emoji-release.min.js
[edit]
[-] api-request.min.js
[edit]
[-] customize-preview-widgets.js
[edit]
[-] autosave.js
[edit]
[-] json2.min.js
[edit]
[-] media-models.min.js
[edit]
[-] shortcode.js
[edit]
[-] customize-loader.min.js
[edit]
[-] wp-a11y.min.js
[edit]
[-] wp-a11y.js
[edit]
[-] utils.min.js
[edit]
[+]
crop
[-] underscore.min.js
[edit]
[+]
plupload
[-] media-grid.min.js
[edit]
[-] wp-custom-header.min.js
[edit]
[-] wp-backbone.js
[edit]
[-] wp-embed-template.js
[edit]
[-] shortcode.min.js
[edit]
[-] backbone.min.js
[edit]
[-] customize-preview.js
[edit]
[-] wp-auth-check.min.js
[edit]
[-] wp-sanitize.js
[edit]
[-] swfobject.js
[edit]
[+]
jcrop
[-] twemoji.min.js
[edit]
[-] customize-views.js
[edit]
[-] media-audiovideo.min.js
[edit]
[+]
mediaelement
[-] utils.js
[edit]
[+]
swfupload
[-] backbone.js
[edit]
[-] zxcvbn-async.min.js
[edit]
[-] tw-sack.min.js
[edit]
[-] customize-models.js
[edit]
[-] wplink.js
[edit]
[-] hoverIntent.min.js
[edit]
[-] media-models.js
[edit]
[-] media-audiovideo.js
[edit]
[-] wp-lists.js
[edit]
[-] heartbeat.min.js
[edit]
[-] wp-pointer.min.js
[edit]
[-] wp-list-revisions.js
[edit]
[-] clipboard.min.js
[edit]
[-] heartbeat.js
[edit]
[-] wp-embed.js
[edit]
[-] wp-auth-check.js
[edit]
[-] twemoji.js
[edit]
[-] wp-util.min.js
[edit]
[-] mce-view.min.js
[edit]
[-] masonry.min.js
[edit]
[-] comment-reply.js
[edit]
[-] colorpicker.js
[edit]
[-] customize-selective-refresh.min.js
[edit]
[-] media-views.js
[edit]
[-] customize-preview-nav-menus.js
[edit]
[-] wp-ajax-response.js
[edit]
[-] wp-api.js
[edit]
[-] wp-emoji-loader.js
[edit]
[+]
tinymce
[-] underscore.js
[edit]
[-] admin-bar.js
[edit]
[-] mce-view.js
[edit]
[-] wp-list-revisions.min.js
[edit]
[-] clipboard.js
[edit]
[-] customize-preview-widgets.min.js
[edit]
[+]
thickbox
[-] wp-sanitize.min.js
[edit]
[-] media-editor.min.js
[edit]
[-] api-request.js
[edit]