Skip to content

Commit 1e1f01e

Browse files
Merge pull request #4316 from Codeinwp/feat/bf
feat: show BF banner for Tier 1 Pro and Free
2 parents f3d08f1 + 8180fed commit 1e1f01e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

assets/apps/dashboard/src/Components/Deal.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
/* global neveDash */
22

33
const Deal = () => {
4+
if (1 < neveDash?.license?.tier) {
5+
return <></>;
6+
}
7+
48
if (
59
!Boolean(window.neveDash?.deal?.active) ||
610
!Boolean(neveDash?.deal?.bannerUrl) ||

inc/admin/dashboard/main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ private function get_localization() {
384384
'getPluginStateBaseURL' => esc_url( rest_url( '/nv/v1/dashboard/plugin-state/' ) ),
385385
'canInstallPlugins' => current_user_can( 'install_plugins' ),
386386
'canActivatePlugins' => current_user_can( 'activate_plugins' ),
387-
'deal' => ! defined( 'NEVE_PRO_VERSION' ) ? $offer->get_localized_data() : array(),
387+
'deal' => $offer->get_localized_data(),
388388
'rootUrl' => get_site_url(),
389389
'daysSinceInstall' => round( ( time() - get_option( 'neve_install', 0 ) ) / DAY_IN_SECONDS ),
390390
'proPluginVersion' => defined( 'NEVE_PRO_VERSION' ) ? NEVE_PRO_VERSION : '',

0 commit comments

Comments
 (0)