diff --git a/classes/helpers/FrmAppHelper.php b/classes/helpers/FrmAppHelper.php index 9c1b24d68a..bbf029e505 100644 --- a/classes/helpers/FrmAppHelper.php +++ b/classes/helpers/FrmAppHelper.php @@ -1367,10 +1367,16 @@ public static function print_admin_banner( $should_show_lite_upgrade ) { ?>
'settings-license', + 'content' => 'lite-banner', + ) + ); printf( /* translators: %1$s: Start link HTML, %2$s: End link HTML */ esc_html__( 'You\'re using Formidable Forms Lite. To unlock more features consider %1$supgrading to PRO%2$s.', 'formidable' ), - '', + '', '' ); ?> diff --git a/classes/helpers/FrmDashboardHelper.php b/classes/helpers/FrmDashboardHelper.php index fde01fb280..2cbd0116e6 100644 --- a/classes/helpers/FrmDashboardHelper.php +++ b/classes/helpers/FrmDashboardHelper.php @@ -196,6 +196,13 @@ class="" * @return array */ public static function get_license_buttons() { + $upgrade_link = FrmAppHelper::admin_upgrade_link( + array( + 'medium' => 'settings-license', + 'content' => 'dashboard-license-box', + ) + ); + return array( array( 'label' => __( 'Connect Account', 'formidable' ), @@ -204,7 +211,7 @@ public static function get_license_buttons() { ), array( 'label' => __( 'Get Formidable PRO', 'formidable' ), - 'link' => FrmAppHelper::admin_upgrade_link( 'settings-license' ), + 'link' => $upgrade_link, 'classes' => 'frm-button-secondary frm-show-unauthorized', ), ); diff --git a/classes/views/dashboard/templates/pro-features-list.php b/classes/views/dashboard/templates/pro-features-list.php index 8ad74f3cba..a1594f0aeb 100644 --- a/classes/views/dashboard/templates/pro-features-list.php +++ b/classes/views/dashboard/templates/pro-features-list.php @@ -9,6 +9,13 @@ if ( ! defined( 'ABSPATH' ) ) { die( 'You are not allowed to call this page directly.' ); } + +$discount_link = FrmAppHelper::admin_upgrade_link( + array( + 'medium' => 'dashboard-discount', + 'content' => 'dashboard-defy-limits-cta', + ) +); ?>
@@ -21,7 +28,7 @@ - +
diff --git a/classes/views/frm-settings/license_box.php b/classes/views/frm-settings/license_box.php index a8591dde0f..1a3a516cad 100644 --- a/classes/views/frm-settings/license_box.php +++ b/classes/views/frm-settings/license_box.php @@ -2,6 +2,19 @@ if ( ! defined( 'ABSPATH' ) ) { die( 'You are not allowed to call this page directly.' ); } + +$button_upgrade_link = FrmAppHelper::admin_upgrade_link( + array( + 'medium' => 'settings-license', + 'content' => 'global-settings-license-box-get-formidable-button', + ) +); +$unlock_more_upgrade_link = FrmAppHelper::admin_upgrade_link( + array( + 'medium' => 'settings-license', + 'content' => 'global-settings-license-box-unlock-more', + ) +); ?>

@@ -9,7 +22,7 @@ - +

@@ -23,7 +36,7 @@ printf( /* translators: %1$s: Start link HTML, %2$s: End link HTML */ esc_html__( 'To unlock more features consider %1$supgrading to PRO%2$s.', 'formidable' ), - '', + '', '' ); ?>