get_products(); if ( empty( $products ) ) : return; endif; $slug = Charitable_Addons_Directory::get_current_plan_slug(); $is_legacy = Charitable_Addons_Directory::is_current_plan_legacy(); if ( false !== $slug && strtolower( $slug ) !== 'lite' && ! $is_legacy ) { // there is a valid legacy license present $new_tab_notification = '

' . sprintf( wp_kses( /* translators: %s - charitable.com upgrade URL. */ __( 'You already have a non-legacy license activate on this install, which you can deactivate in the "General" tab.', 'charitable' ), [ 'a' => [ 'href' => [], 'class' => [], 'target' => [], 'rel' => [], ], 'br' => [], 'strong' => [], ] ), esc_url( admin_url( 'admin.php?page=charitable-settings&tab=general' ) ) ) . '

'; ?>

' . sprintf( wp_kses( /* translators: %s - charitable.com upgrade URL. */ __( 'If you have purchased your license key recently, please enter your Chariable license key in the "General" tab.', 'charitable' ), [ 'a' => [ 'href' => [], 'class' => [], 'target' => [], 'rel' => [], ], 'br' => [], 'strong' => [], ] ), esc_url( admin_url( 'admin.php?page=charitable-settings&tab=general' ) ) ) . '

'; ?>

$product ) : $license = $helper->get_license_details( $key ); if ( is_array( $license ) ) { $is_active = $license['valid']; $license_key = $license['license']; } else { $is_active = false; $license_key = $license; } ?>