| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | -namespace PXLBSAdminify\Inc\Classes\Notifications\Model; | |
| 2 | +namespace WPAdminify\Inc\Classes\Notifications\Model; | |
| 3 | 3 | |
| 4 | -use PXLBSAdminify\Inc\Classes\Helper; | |
| 4 | +use WPAdminify\Inc\Classes\Helper; | |
| 5 | 5 | |
| 6 | 6 | // No, Direct access Sir !!! |
| 7 | 7 | if ( ! defined( 'ABSPATH' ) ) { |
| 8 | 8 | exit; |
| @@ -24,9 +24,9 @@ | ||
| 24 | 24 | * |
| 25 | 25 | * @author Jewel Theme <support@jeweltheme.com> |
| 26 | 26 | */ |
| 27 | 27 | final public function get_key() { |
| 28 | - return 'pxlbsadminify_notice_' . $this->get_id(); | |
| 28 | + return 'jltwp_adminify_notice_' . $this->get_id(); | |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Footer content |
| @@ -65,9 +65,9 @@ | ||
| 65 | 65 | */ |
| 66 | 66 | public function notice_footer() { |
| 67 | 67 | ?> |
| 68 | 68 | </div> |
| 69 | - <?php echo wp_kses_post( $this->footer_content() ); ?> | |
| 69 | + <?php echo $this->footer_content(); ?> | |
| 70 | 70 | </div> |
| 71 | 71 | <?php |
| 72 | 72 | } |
| 73 | 73 | |
| @@ -81,9 +81,9 @@ | ||
| 81 | 81 | */ |
| 82 | 82 | public function core_script( $trigger_time ) { |
| 83 | 83 | ?> |
| 84 | 84 | <script> |
| 85 | - function pxlbsadminify_notice_action(evt, $this, action_type) { | |
| 85 | + function jltwp_adminify_notice_action(evt, $this, action_type) { | |
| 86 | 86 | |
| 87 | 87 | if (evt) evt.preventDefault(); |
| 88 | 88 | |
| 89 | 89 | $this.closest('.notice-wp-adminify').slideUp(200); |
| @@ -88,10 +88,10 @@ | ||
| 88 | 88 | |
| 89 | 89 | $this.closest('.notice-wp-adminify').slideUp(200); |
| 90 | 90 | |
| 91 | 91 | jQuery.post('<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>', { |
| 92 | - action: 'pxlbsadminify_notification_action', | |
| 93 | - _wpnonce: '<?php echo esc_js( wp_create_nonce( 'pxlbsadminify_notification_nonce' ) ); ?>', | |
| 92 | + action: 'jltwp_adminify_notification_action', | |
| 93 | + _wpnonce: '<?php echo esc_js( wp_create_nonce( 'jltwp_adminify_notification_nonce' ) ); ?>', | |
| 94 | 94 | action_type: action_type, |
| 95 | 95 | notification_type: 'notice', |
| 96 | 96 | trigger_time: '<?php echo esc_attr( $trigger_time ); ?>' |
| 97 | 97 | }); |
| @@ -99,14 +99,14 @@ | ||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | // Notice Dismiss |
| 102 | 102 | jQuery('body').on('click', '.notice-wp-adminify .wp-adminify-notice-dismiss', function(evt) { |
| 103 | - pxlbsadminify_notice_action(evt, jQuery(this), 'dismiss'); | |
| 103 | + jltwp_adminify_notice_action(evt, jQuery(this), 'dismiss'); | |
| 104 | 104 | }); |
| 105 | 105 | |
| 106 | 106 | // Notice Disable |
| 107 | 107 | jQuery('body').on('click', '.notice-wp-adminify .wp-adminify-notice-disable', function(evt) { |
| 108 | - pxlbsadminify_notice_action(evt, jQuery(this), 'disable'); | |
| 108 | + jltwp_adminify_notice_action(evt, jQuery(this), 'disable'); | |
| 109 | 109 | }); |
| 110 | 110 | </script> |
| 111 | 111 | <?php |
| 112 | 112 | } |