Skip to content

Commit

Permalink
chore: add Bf banner
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Nov 7, 2024
1 parent b0e2125 commit 7b9c60b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions classes/admin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,11 @@ function product_meta() {
$should_load_banner = ! ppom_pro_is_installed();
if ( ppom_pro_is_installed() ) {
$license_data = get_option( 'ppom_pro_license_data', array() );
$should_load_banner = isset( $license_data->plan ) &&
is_numeric( $license_data->plan ) &&
NM_PersonalizedProduct::LICENSE_PLAN_1 <= NM_PersonalizedProduct::get_license_category( intval( $license_data->plan ) );
if ( isset( $license_data->plan ) && is_numeric( $license_data->plan ) ) {

// NOTE: Allow for Tier 1 Plan or lower.
$should_load_banner = NM_PersonalizedProduct::LICENSE_PLAN_1 >= NM_PersonalizedProduct::get_license_category( intval( $license_data->plan ) );
}
}

if ( $should_load_banner ) {
Expand Down
Binary file added images/black-friday.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7b9c60b

Please sign in to comment.