Server IP : 104.21.38.3 / Your IP : 172.70.189.161 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/audiomatrix.in/wp-content/plugins/astra-widgets/lib/astra-notices/ |
Upload File : |
/** * Customizer controls toggles * * @package Astra */ ( function( $ ) { /** * Helper class for the main Customizer interface. * * @since 1.0.0 * @class ASTCustomizer */ AstraNotices = { /** * Initializes our custom logic for the Customizer. * * @since 1.0.0 * @method init */ init: function() { this._bind(); }, /** * Binds events for the Astra Portfolio. * * @since 1.0.0 * @access private * @method _bind */ _bind: function() { $( document ).on('click', '.astra-notice-close', AstraNotices._dismissNoticeNew ); $( document ).on('click', '.astra-notice .notice-dismiss', AstraNotices._dismissNotice ); }, _dismissNotice: function( event ) { event.preventDefault(); var repeat_notice_after = $( this ).parents('.astra-notice').data( 'repeat-notice-after' ) || ''; var notice_id = $( this ).parents('.astra-notice').attr( 'id' ) || ''; AstraNotices._ajax( notice_id, repeat_notice_after ); }, _dismissNoticeNew: function( event ) { event.preventDefault(); var repeat_notice_after = $( this ).attr( 'data-repeat-notice-after' ) || ''; var notice_id = $( this ).parents('.astra-notice').attr( 'id' ) || ''; var $el = $( this ).parents('.astra-notice'); $el.fadeTo( 100, 0, function() { $el.slideUp( 100, function() { $el.remove(); }); }); AstraNotices._ajax( notice_id, repeat_notice_after ); var link = $( this ).attr( 'href' ) || ''; var target = $( this ).attr( 'target' ) || ''; if( '' !== link && '_blank' === target ) { window.open(link , '_blank'); } }, _ajax: function( notice_id, repeat_notice_after ) { if( '' === notice_id ) { return; } $.ajax({ url: ajaxurl, type: 'POST', data: { action : 'astra-notice-dismiss', nonce : astraNotices._notice_nonce, notice_id : notice_id, repeat_notice_after : parseInt( repeat_notice_after ), }, }); } }; $( function() { AstraNotices.init(); } ); } )( jQuery );