| Server IP : 77.39.210.126 / Your IP : 216.73.216.203 Web Server : Apache System : Linux v00l0v-vmpcnews.sphostserver.com 4.18.0-553.124.4.el8_10.x86_64 #1 SMP Fri May 15 04:14:14 EDT 2026 x86_64 User : artecasarepresti ( 1022) PHP Version : 7.4.33 Disable Function : dl,passthru,proc_open,proc_close,proc_terminate,shell_exec,system MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/artecasarepresti/www/wp-content/themes/Avada/assets/admin/js/ |
Upload File : |
/* global avadaAdminNotices, ajaxurl */
( function() {
// Shorthand for ready event.
jQuery( function() {
// Dimiss notice.
jQuery( 'div[avada-data-dismissible] button.notice-dismiss' ).click( function( event ) {
var $optionName,
$data,
$this = jQuery( this );
event.preventDefault();
$optionName = $this.parent().attr( 'avada-data-dismissible' );
$data = {
action: 'avada_dismiss_admin_notice',
option_name: $optionName,
nonce: avadaAdminNotices.nonce
};
// Make ajax request.
jQuery.post( ajaxurl, $data );
} );
// Show deprecated template notice on page load.
if ( 0 < jQuery( '#publish' ).length && 0 < jQuery( '#page_template' ).length ) {
if ( 'side-navigation.php' === jQuery( '#page_template' ).val() ) {
jQuery( '<div class="notice notice-error is-dismissible side_nav_deprecated_notice"><p>' + avadaAdminNotices.deprecated_side_nav_teamplate + '</p></div>' ).insertAfter( '#lost-connection-notice' );
}
}
// Show deprecated template notice on template change.
jQuery( '#page_template' ).change( function() {
if ( 'side-navigation.php' === jQuery( '#page_template' ).val() && 1 > jQuery( '.side_nav_deprecated_notice' ).length ) {
jQuery( '<div class="notice notice-error is-dismissible side_nav_deprecated_notice"><p>' + avadaAdminNotices.deprecated_side_nav_teamplate + '</p></div>' ).insertAfter( '#lost-connection-notice' );
} else {
jQuery( '.side_nav_deprecated_notice' ).remove();
}
} );
} );
}( jQuery ) );