| @@ -1,16 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -namespace PXLBSAdminify\Inc\Classes\Notifications; | |
| 3 | +namespace WPAdminify\Inc\Classes\Notifications; | |
| 4 | 4 | |
| 5 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 6 | - exit; // Exit if accessed directly. | |
| 7 | -} | |
| 5 | +use WPAdminify\Inc\Classes\Notifications\Base\User_Data; | |
| 6 | +use WPAdminify\Inc\Classes\Notifications\Model\Notice; | |
| 8 | 7 | |
| 9 | -use PXLBSAdminify\Inc\Classes\Notifications\Base\User_Data; | |
| 10 | -use PXLBSAdminify\Inc\Classes\Notifications\Model\Notice; | |
| 11 | 8 | |
| 12 | - | |
| 13 | 9 | if (!class_exists('Discount')) { |
| 14 | 10 | /** |
| 15 | 11 | * Discount Class |
| 16 | 12 | * |
| @@ -32,10 +28,10 @@ | ||
| 32 | 28 | public function __construct() |
| 33 | 29 | { |
| 34 | 30 | parent::__construct(); |
| 35 | 31 | |
| 36 | - if (empty(get_option('pxlbsadminify_notice_discount_code'))) { | |
| 37 | - update_option('pxlbsadminify_notice_discount_code', $this->coupon_code); | |
| 32 | + if (empty(get_option('wpadminify_notice_discount_code'))) { | |
| 33 | + update_option('wpadminify_notice_discount_code', $this->coupon_code); | |
| 38 | 34 | } |
| 39 | 35 | add_action('admin_enqueue_scripts', [$this, 'discount_coupon_scripts'], 999); |
| 40 | 36 | } |
| 41 | 37 | |
| @@ -47,8 +43,12 @@ | ||
| 47 | 43 | public function notice_content() |
| 48 | 44 | { ?> |
| 49 | 45 | <div class="wp-adminify-discount-coupons-wrapper notice notice-jltma is-dismissible notice-plugin-discount notice-<?php echo esc_attr($this->color); ?> wp-adminify-notice-<?php echo esc_attr($this->get_id()); ?>"> |
| 50 | 46 | |
| 47 | + <!-- <?php //echo esc_url(JLTMA_IMAGE_DIR . 'promo-image.png'); ?> | |
| 48 | + https://master-addons.com/pricing-lite/ | |
| 49 | + | |
| 50 | + <button type="button" class="notice-dismiss wp-adminify-notice-dismiss"></button> --> | |
| 51 | 51 | <div class="wp-adminify-subscribe-content"> |
| 52 | 52 | <h2> |
| 53 | 53 | Notice Content, Coupon Code: <?php echo esc_attr($this->coupon_code); ?> |
| 54 | 54 | </h2> |
| @@ -58,9 +58,9 @@ | ||
| 58 | 58 | </svg> |
| 59 | 59 | Flash Sale |
| 60 | 60 | </h2> |
| 61 | 61 | <h3>Notice Content Notice Content Notice Content Notice Content Notice Content Notice Content Notice Content Notice Content </h3> |
| 62 | - <img width="70" height="70" src="<?php echo esc_url(PXLBSADMINIFY_ASSETS_IMAGE . 'promo-image.png'); ?>" alt="<?php esc_attr_e('20% Discount Coupon', 'adminify'); ?>"> | |
| 62 | + <img width="70" height="70" src="<?php echo esc_url(WP_ADMINIFY_ASSETS_IMAGE . 'promo-image.png'); ?>" alt="<?php esc_attr_e('20% Discount Coupon', 'adminify'); ?>"> | |
| 63 | 63 | </div> |
| 64 | 64 | </div> |
| 65 | 65 | <?php |
| 66 | 66 | } |