Skip to content

Commit

Permalink
Fix #453
Browse files Browse the repository at this point in the history
  • Loading branch information
kawsarahmedr committed Nov 5, 2024
1 parent 39e6744 commit cf4ee8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Admin/Notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ public function __construct() {
*/
public function add_notices() {
// Halloween's promotion notice.
if ( ! $this->is_notice_dismissed( 'wcsn_halloween_promotion' ) ) {
if ( ! $this->is_notice_dismissed( 'wcsn_halloween_promotion_24' ) ) {
if ( ! function_exists( 'wc_serial_numbers_pro' ) ) {
$discount_percentage = esc_html__( '30%', 'wc-serial-numbers' );
$this->notices[] = array(
'type' => 'info',
'classes' => 'notice-alt notice-large wcsn-halloween',
'dismissible' => true,
'id' => 'wcsn_halloween_promotion',
'id' => 'wcsn_halloween_promotion_24',
'message' => sprintf(
/* translators: %1$s: link to the plugin page, %2$s: Offer content, %3$s: link to the plugin page, %4$s: end link to the plugin page */
__( '%1$s%2$s%3$s Upgrade Now and Save %4$s', 'wc-serial-numbers' ),
'<div class="wcsn-halloween__header"><div class="wcsn-halloween__icon"><img src="' . WCSN()->get_dir_url( 'assets/dist/images/halloween-icon.svg' ) . '" alt="WC Serial Numbers Halloween offer"></div><div class="wcsn-halloween__content"><strong class="wcsn-halloween__title">',
'👻 Halloween Sale: ' . $discount_percentage . ' OFF on WC Serial Manager Pro</strong><p>Grab a ' . $discount_percentage . ' discount on WC Serial Manager Pro and all our premium plugins this Halloween! Use code <strong>‘BIGTREAT30’</strong>. Don\'t miss out!</p>',
'👻 Halloween Sale: ' . $discount_percentage . ' OFF on WC Serial Numbers Pro</strong><p>Grab a ' . $discount_percentage . ' discount on WC Serial Numbers Pro and all our premium plugins this Halloween! Use code <strong>‘BIGTREAT30’</strong>. Don\'t miss out!</p>',
'<a class="button button-primary" href="' . esc_url( WCSN()->get_premium_url() ) . '?utm_source=plugin&utm_medium=notice&utm_campaign=halloween-2024&discount=bigtreat30" target="_blank">',
$discount_percentage . '</a></div></div>',
),
Expand All @@ -61,7 +61,7 @@ public function add_notices() {
'type' => 'info',
'classes' => 'notice-alt notice-large wcsn-halloween',
'dismissible' => true,
'id' => 'wcsn_halloween_promotion',
'id' => 'wcsn_halloween_promotion_24',
'message' => sprintf(
/* translators: %1$s: link to the plugin page, %2$s: Offer content, %3$s: link to the plugin page, %4$s: end link to the plugin page */
__( '%1$s%2$s%3$s Claim your discount! %4$s', 'wc-serial-numbers' ),
Expand Down

0 comments on commit cf4ee8a

Please sign in to comment.