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 5ac7e9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions classes/admin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,10 @@ function product_meta() {
// existing meta group tables show only ppom main page
if ( $action != 'new' && $do_meta != 'edit' && $view != 'addons' && $view != 'changelog' ) {
ppom_load_template( 'admin/existing-meta.php' );

$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 ) );
}


// NOTE: Allow only for Tier 1 Plan or lower if license is present.
$should_load_banner = NM_PersonalizedProduct::LICENSE_PLAN_1 >= NM_PersonalizedProduct::get_license_category( intval( apply_filters( 'product_ppom_license_plan', 0 ) ) );

if ( $should_load_banner ) {
do_action( 'themeisle_sdk_load_banner', 'ppom' );
}
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 5ac7e9f

Please sign in to comment.