PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/views/frm-settings/license_box.php +49 -13 6.4.1 → trunk View file →
@@ -1,34 +1,70 @@
1 1 <?php
2 2 if ( ! defined( 'ABSPATH' ) ) {
3 3 die( 'You are not allowed to call this page directly.' );
4 4 }
5 -$is_welcome = FrmAppHelper::is_admin_page( 'formidable-welcome' );
5 +
6 +$button_upgrade_text = FrmSalesApi::get_best_sale_value( 'global_settings_license_cta_text' );
7 +
8 +if ( ! $button_upgrade_text ) {
9 + $button_upgrade_text = __( 'Get Formidable Now', 'formidable' );
10 +}
11 +
12 +$button_upgrade_link = FrmSalesApi::get_best_sale_value( 'global_settings_license_cta_link' );
13 +$utm = array(
14 + 'campaign' => 'settings-license',
15 + 'content' => 'global-settings-license-box-get-formidable-button',
16 +);
17 +
18 +if ( $button_upgrade_link ) {
19 + $button_upgrade_link = FrmAppHelper::maybe_add_missing_utm( $button_upgrade_link, $utm );
20 +} else {
21 + $button_upgrade_link = FrmAppHelper::admin_upgrade_link( $utm );
22 +}
23 +
24 +$unlock_more_upgrade_text = FrmSalesApi::get_best_sale_value( 'global_settings_unlock_more_cta_text' );
25 +
26 +if ( ! $unlock_more_upgrade_text ) {
27 + $unlock_more_upgrade_text = __( 'upgrading to PRO', 'formidable' );
28 +}
29 +
30 +$unlock_more_upgrade_link = FrmSalesApi::get_best_sale_value( 'global_settings_unlock_more_cta_link' );
31 +$utm = array(
32 + 'campaign' => 'settings-license',
33 + 'content' => 'global-settings-license-box-unlock-more',
34 +);
35 +
36 +if ( $unlock_more_upgrade_link ) {
37 + $unlock_more_upgrade_link = FrmAppHelper::maybe_add_missing_utm( $unlock_more_upgrade_link, $utm );
38 +} else {
39 + $unlock_more_upgrade_link = FrmAppHelper::admin_upgrade_link( $utm );
40 +}
6 41 ?>
7 42 <div id="frm_license_top" class="frm_unauthorized_box">
8 43 <p id="frm-connect-btns" class="frm-show-unauthorized">
9 - <a href="<?php echo esc_url( FrmAddonsController::connect_link() ); ?>" class="button-primary frm-button-primary<?php echo esc_attr( $is_welcome ? '' : ' frm-button-sm' ); ?>">
44 + <a href="<?php echo esc_url( FrmAddonsController::connect_link() ); ?>" class="button-primary frm-button-primary frm-button-sm" target="_blank" rel="noopener">
10 45 <?php esc_html_e( 'Connect an Account', 'formidable' ); ?>
11 46 </a>
12 47 <?php esc_html_e( 'or', 'formidable' ); ?>
13 - <a href="<?php echo esc_url( FrmAppHelper::admin_upgrade_link( 'settings-license' ) ); ?>" target="_blank" class="button-secondary frm-button-secondary<?php echo esc_attr( $is_welcome ? '' : ' frm-button-sm' ); ?>">
14 - <?php esc_html_e( 'Get Formidable Now', 'formidable' ); ?>
48 + <a href="<?php echo esc_url( $button_upgrade_link ); ?>" target="_blank" class="button-secondary frm-button-secondary frm-button-sm">
49 + <?php echo esc_html( $button_upgrade_text ); ?>
15 50 </a>
16 51 </p>
17 52
18 53 <div id="frm-using-lite" class="frm-show-unauthorized">
19 54 <p>
20 - <?php esc_html_e( 'You\'re using Formidable Forms Lite - no license needed. Enjoy!', 'formidable' ); ?> 🙂
55 + <?php echo esc_html( FrmAppHelper::copy_for_lite_license() ); ?>
21 56 </p>
22 57 <p>
23 - <?php
24 - printf(
25 - /* translators: %1$s: Start link HTML, %2$s: End link HTML */
26 - esc_html__( 'To unlock more features consider %1$supgrading to PRO%2$s.', 'formidable' ),
27 - '<a href="' . esc_url( FrmAppHelper::admin_upgrade_link( 'settings-license' ) ) . '">',
28 - '</a>'
29 - );
30 - ?>
58 + <?php
59 + printf(
60 + /* translators: %1$s: Start link HTML, %2$s: CTA Text (Default is "upgrading to PRO"), %3$s: End link HTML */
61 + esc_html__( 'To unlock more features consider %1$s%2$s%3$s.', 'formidable' ),
62 + '<a href="' . esc_url( $unlock_more_upgrade_link ) . '" target="_blank" rel="noopener">',
63 + esc_html( $unlock_more_upgrade_text ),
64 + '</a>'
65 + );
66 + ?>
31 67 </p>
32 68 </div>
33 69 </div>
34 70