| @@ -267,18 +267,18 @@ | ||
| 267 | 267 | |
| 268 | 268 | // Plugin pages |
| 269 | 269 | if( $notifications->is_plugin_page() ){ |
| 270 | 270 | |
| 271 | - $notification_id = 'wppb_bf_2025'; | |
| 271 | + $notification_id = 'wppb_bf_2026'; | |
| 272 | 272 | |
| 273 | 273 | $message = '<div class="wppb-bf-notice-container"><img style="max-width: 60px;width: 60px;" src="' . WPPB_PLUGIN_URL . 'assets/images/pb-logo.svg" />'; |
| 274 | 274 | |
| 275 | 275 | if ( defined( 'WPPB_PAID_PLUGIN_DIR' ) && $license_status == 'expired' ){ |
| 276 | 276 | $message .= '<div><p style="font-size: 110%;margin-top:0px;margin-bottom:4px;padding:0px;">' . '<strong>Renew your Profile Builder license this Black Friday! </strong>' . '</p>'; |
| 277 | - $message .= '<p style="font-size: 110%;margin-top:0px;margin-bottom: 0px;padding:0px;">Don\'t miss out on our <strong>best prices & only sale of the year</strong>. <br><a class="button-primary" style="margin-top:6px;margin-left: 0px !important;" href="https://www.cozmoslabs.com/account/?utm_source=pb-settings&utm_medium=clientsite&utm_campaign=BF-2025" target="_blank">Get Deal</a></p></div>'; | |
| 277 | + $message .= '<p style="font-size: 110%;margin-top:0px;margin-bottom: 0px;padding:0px;">Don\'t miss out on our <strong>best prices & only sale of the year</strong>. <br><a class="button-primary" style="margin-top:6px;margin-left: 0px !important;" href="https://www.cozmoslabs.com/account/?utm_source=pb-settings&utm_medium=clientsite&utm_campaign=BF-2026" target="_blank">Get Deal</a></p></div>'; | |
| 278 | 278 | } else { |
| 279 | 279 | $message .= '<div><p style="font-size: 110%;margin-top:0px;margin-bottom:4px;padding:0px;">' . '<strong>Get the best price for Profile Builder PRO this Black Friday!</strong>' . '</p>'; |
| 280 | - $message .= '<p style="font-size: 110%;margin-top:0px;margin-bottom: 0px;padding:0px;">This is a <strong>limited-time offer</strong>, so don\'t miss out on our <strong>only sale of the year</strong>. <br><a class="button-primary" style="margin-top:6px;margin-left: 0px !important;" href="https://www.cozmoslabs.com/black-friday/?utm_source=pb-settings&utm_medium=clientsite&utm_campaign=BF-2025" target="_blank">Get Deal</a></p></div>'; | |
| 280 | + $message .= '<p style="font-size: 110%;margin-top:0px;margin-bottom: 0px;padding:0px;">This is a <strong>limited-time offer</strong>, so don\'t miss out on our <strong>only sale of the year</strong>. <br><a class="button-primary" style="margin-top:6px;margin-left: 0px !important;" href="https://www.cozmoslabs.com/black-friday/?utm_source=pb-settings&utm_medium=clientsite&utm_campaign=BF-2026" target="_blank">Get Deal</a></p></div>'; | |
| 281 | 281 | } |
| 282 | 282 | |
| 283 | 283 | $message .= '</div><a href="' . wp_nonce_url( add_query_arg( array( 'wppb_dismiss_admin_notification' => $notification_id ) ), 'wppb_plugin_notice_dismiss' ) . '" type="button" class="notice-dismiss"><span class="screen-reader-text">' . __( 'Dismiss this notice.', 'profile-builder' ) . '</span></a>'; |
| 284 | 284 | |
| @@ -287,17 +287,17 @@ | ||
| 287 | 287 | } else { |
| 288 | 288 | |
| 289 | 289 | if( wppb_bf_show_shared_promotion() ){ |
| 290 | 290 | |
| 291 | - $notification_id = 'wppb_bf_2025_cross_promotion'; | |
| 291 | + $notification_id = 'wppb_bf_2026_cross_promotion'; | |
| 292 | 292 | |
| 293 | 293 | $message = '<img style="float: left; margin: 10px 8px 10px 0px; max-width: 20px;" src="' . WPPB_PLUGIN_URL . 'assets/images/pb-logo.svg" />'; |
| 294 | 294 | $message .= '<img style="float: left; margin: 10px 8px 10px 0px; max-width: 20px;" src="' . WPPB_PLUGIN_URL . 'assets/images/pms-logo.svg" />'; |
| 295 | 295 | |
| 296 | 296 | if ( defined( 'WPPB_PAID_PLUGIN_DIR' ) && $license_status == 'expired' ) |
| 297 | - $message .= '<p style="padding-right:30px;font-size: 110%;"><strong>Upgrade to Profile Builder & Paid Member Subscriptions PRO this Black Friday!</strong> Don\'t miss our only sale of the year. <a href="https://www.cozmoslabs.com/black-friday/?utm_source=wpdashboard&utm_medium=clientsite&utm_campaign=BF-2025" target="_blank">Learn more</a></p>'; | |
| 297 | + $message .= '<p style="padding-right:30px;font-size: 110%;"><strong>Upgrade to Profile Builder & Paid Member Subscriptions PRO this Black Friday!</strong> Don\'t miss our only sale of the year. <a href="https://www.cozmoslabs.com/black-friday/?utm_source=wpdashboard&utm_medium=clientsite&utm_campaign=BF-2026" target="_blank">Learn more</a></p>'; | |
| 298 | 298 | else |
| 299 | - $message .= '<p style="padding-right:30px;font-size: 110%;"><strong>Upgrade to Profile Builder & Paid Member Subscriptions PRO this Black Friday!</strong> Don\'t miss our only sale of the year. <a href="https://www.cozmoslabs.com/black-friday/?utm_source=wpdashboard&utm_medium=clientsite&utm_campaign=BF-2025" target="_blank">Learn more</a></p>'; | |
| 299 | + $message .= '<p style="padding-right:30px;font-size: 110%;"><strong>Upgrade to Profile Builder & Paid Member Subscriptions PRO this Black Friday!</strong> Don\'t miss our only sale of the year. <a href="https://www.cozmoslabs.com/black-friday/?utm_source=wpdashboard&utm_medium=clientsite&utm_campaign=BF-2026" target="_blank">Learn more</a></p>'; | |
| 300 | 300 | |
| 301 | 301 | $message .= '<a href="' . wp_nonce_url( add_query_arg( array( 'wppb_dismiss_admin_notification' => $notification_id ) ), 'wppb_plugin_notice_dismiss' ) . '" type="button" class="notice-dismiss"><span class="screen-reader-text">' . __( 'Dismiss this notice.', 'profile-builder' ) . '</span></a>'; |
| 302 | 302 | |
| 303 | 303 | $notifications->add_notification( $notification_id, $message, 'wppb-notice notice notice-info', false, array(), true ); |
| @@ -303,16 +303,16 @@ | ||
| 303 | 303 | $notifications->add_notification( $notification_id, $message, 'wppb-notice notice notice-info', false, array(), true ); |
| 304 | 304 | |
| 305 | 305 | } else { |
| 306 | 306 | |
| 307 | - $notification_id = 'wppb_bf_2025'; | |
| 307 | + $notification_id = 'wppb_bf_2026'; | |
| 308 | 308 | |
| 309 | 309 | $message = '<img style="float: left; margin: 10px 8px 10px 0px; max-width: 20px;" src="' . WPPB_PLUGIN_URL . 'assets/images/pb-logo.svg" />'; |
| 310 | 310 | |
| 311 | 311 | if ( defined( 'WPPB_PAID_PLUGIN_DIR' ) && $license_status == 'expired' ) |
| 312 | - $message .= '<p style="padding-right:30px;font-size: 110%;"><strong>Upgrade to Profile Builder PRO this Black Friday!</strong> Don\'t miss our only sale of the year. <a href="https://www.cozmoslabs.com/black-friday/?utm_source=wpdashboard&utm_medium=clientsite&utm_campaign=BF-2025" target="_blank">Learn more</a></p>'; | |
| 312 | + $message .= '<p style="padding-right:30px;font-size: 110%;"><strong>Upgrade to Profile Builder PRO this Black Friday!</strong> Don\'t miss our only sale of the year. <a href="https://www.cozmoslabs.com/black-friday/?utm_source=wpdashboard&utm_medium=clientsite&utm_campaign=BF-2026" target="_blank">Learn more</a></p>'; | |
| 313 | 313 | else |
| 314 | - $message .= '<p style="padding-right:30px;font-size: 110%;"><strong>Upgrade to Profile Builder PRO this Black Friday!</strong> Don\'t miss our only sale of the year. <a href="https://www.cozmoslabs.com/black-friday/?utm_source=wpdashboard&utm_medium=clientsite&utm_campaign=BF-2025" target="_blank">Learn more</a></p>'; | |
| 314 | + $message .= '<p style="padding-right:30px;font-size: 110%;"><strong>Upgrade to Profile Builder PRO this Black Friday!</strong> Don\'t miss our only sale of the year. <a href="https://www.cozmoslabs.com/black-friday/?utm_source=wpdashboard&utm_medium=clientsite&utm_campaign=BF-2026" target="_blank">Learn more</a></p>'; | |
| 315 | 315 | |
| 316 | 316 | $message .= '<a href="' . wp_nonce_url( add_query_arg( array( 'wppb_dismiss_admin_notification' => $notification_id ) ), 'wppb_plugin_notice_dismiss' ) . '" type="button" class="notice-dismiss"><span class="screen-reader-text">' . __( 'Dismiss this notice.', 'profile-builder' ) . '</span></a>'; |
| 317 | 317 | |
| 318 | 318 | $notifications->add_notification( $notification_id, $message, 'wppb-notice notice notice-info', false, array(), true ); |
| @@ -381,10 +381,10 @@ | ||
| 381 | 381 | |
| 382 | 382 | function wppb_bf_promotion_is_active(){ |
| 383 | 383 | |
| 384 | 384 | $black_friday = array( |
| 385 | - 'start_date' => '11/24/2025 00:00', | |
| 386 | - 'end_date' => '12/02/2025 23:59', | |
| 385 | + 'start_date' => '11/23/2026 00:00', | |
| 386 | + 'end_date' => '12/01/2026 09:59', | |
| 387 | 387 | ); |
| 388 | 388 | |
| 389 | 389 | $current_date = time(); |
| 390 | 390 | |
| @@ -390,7 +390,7 @@ | ||
| 390 | 390 | |
| 391 | 391 | if( $current_date > strtotime( $black_friday['start_date'] ) && $current_date < strtotime( $black_friday['end_date'] ) ) |
| 392 | 392 | return true; |
| 393 | 393 | |
| 394 | - return false; | |
| 394 | + return apply_filters( 'wppb_bf_promotion_is_active', false ); | |
| 395 | 395 | |
| 396 | 396 | } |