| @@ -1,16 +1,11 @@ | ||
| 1 | 1 | <?php |
| 2 | -namespace PXLBSAdminify\Inc\Classes\Notifications; | |
| 2 | +namespace WPAdminify\Inc\Classes\Notifications; | |
| 3 | 3 | |
| 4 | -use PXLBSAdminify\Inc\Classes\Notifications\Model\Popup; | |
| 5 | -use PXLBSAdminify\Inc\Classes\Pro_Upgrade; | |
| 6 | -use PXLBSAdminify\Inc\Classes\Helper; | |
| 4 | +use WPAdminify\Inc\Classes\Notifications\Model\Popup; | |
| 5 | +use WPAdminify\Inc\Classes\Pro_Upgrade; | |
| 6 | +use WPAdminify\Inc\Classes\Helper; | |
| 7 | 7 | |
| 8 | -// No, Direct access Sir !!! | |
| 9 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 10 | - exit; | |
| 11 | -} | |
| 12 | - | |
| 13 | 8 | if ( ! class_exists( 'Upgrade_Notice' ) ) { |
| 14 | 9 | /** |
| 15 | 10 | * Upgrade notice class |
| 16 | 11 | * |
| @@ -28,9 +23,9 @@ | ||
| 28 | 23 | $this->init_data(); |
| 29 | 24 | |
| 30 | 25 | // On sheet data update, remove the popup data, to auto rebuid the data. |
| 31 | 26 | add_action( |
| 32 | - 'pxlbsadminify_sheet_promo_data_reset', | |
| 27 | + 'jltwp_adminify_sheet_promo_data_reset', | |
| 33 | 28 | function () { |
| 34 | 29 | $this->delete(); |
| 35 | 30 | } |
| 36 | 31 | ); |
| @@ -110,8 +105,8 @@ | ||
| 110 | 105 | $today = $this->current_time(); |
| 111 | 106 | |
| 112 | 107 | $this->data = Helper::get_merged_data( $sheet_data, $today, $this->date_increment( $today, 10 ) ); |
| 113 | 108 | |
| 114 | - $this->is_active = wp_validate_boolean( $this->data['is_live'] ); | |
| 109 | + $this->is_active = wp_validate_boolean( $this->data['is_campaign'] ); | |
| 115 | 110 | } |
| 116 | 111 | } |
| 117 | -} | |
| 112 | +} | |