| @@ -3,8 +3,9 @@ | ||
| 3 | 3 | die( 'You are not allowed to call this page directly.' ); |
| 4 | 4 | } |
| 5 | 5 | |
| 6 | 6 | $button_upgrade_text = FrmSalesApi::get_best_sale_value( 'global_settings_license_cta_text' ); |
| 7 | + | |
| 7 | 8 | if ( ! $button_upgrade_text ) { |
| 8 | 9 | $button_upgrade_text = __( 'Get Formidable Now', 'formidable' ); |
| 9 | 10 | } |
| 10 | 11 | |
| @@ -9,11 +10,12 @@ | ||
| 9 | 10 | } |
| 10 | 11 | |
| 11 | 12 | $button_upgrade_link = FrmSalesApi::get_best_sale_value( 'global_settings_license_cta_link' ); |
| 12 | 13 | $utm = array( |
| 13 | - 'medium' => 'settings-license', | |
| 14 | - 'content' => 'global-settings-license-box-get-formidable-button', | |
| 14 | + 'campaign' => 'settings-license', | |
| 15 | + 'content' => 'global-settings-license-box-get-formidable-button', | |
| 15 | 16 | ); |
| 17 | + | |
| 16 | 18 | if ( $button_upgrade_link ) { |
| 17 | 19 | $button_upgrade_link = FrmAppHelper::maybe_add_missing_utm( $button_upgrade_link, $utm ); |
| 18 | 20 | } else { |
| 19 | 21 | $button_upgrade_link = FrmAppHelper::admin_upgrade_link( $utm ); |
| @@ -19,8 +21,9 @@ | ||
| 19 | 21 | $button_upgrade_link = FrmAppHelper::admin_upgrade_link( $utm ); |
| 20 | 22 | } |
| 21 | 23 | |
| 22 | 24 | $unlock_more_upgrade_text = FrmSalesApi::get_best_sale_value( 'global_settings_unlock_more_cta_text' ); |
| 25 | + | |
| 23 | 26 | if ( ! $unlock_more_upgrade_text ) { |
| 24 | 27 | $unlock_more_upgrade_text = __( 'upgrading to PRO', 'formidable' ); |
| 25 | 28 | } |
| 26 | 29 | |
| @@ -25,11 +28,12 @@ | ||
| 25 | 28 | } |
| 26 | 29 | |
| 27 | 30 | $unlock_more_upgrade_link = FrmSalesApi::get_best_sale_value( 'global_settings_unlock_more_cta_link' ); |
| 28 | 31 | $utm = array( |
| 29 | - 'medium' => 'settings-license', | |
| 30 | - 'content' => 'global-settings-license-box-unlock-more', | |
| 32 | + 'campaign' => 'settings-license', | |
| 33 | + 'content' => 'global-settings-license-box-unlock-more', | |
| 31 | 34 | ); |
| 35 | + | |
| 32 | 36 | if ( $unlock_more_upgrade_link ) { |
| 33 | 37 | $unlock_more_upgrade_link = FrmAppHelper::maybe_add_missing_utm( $unlock_more_upgrade_link, $utm ); |
| 34 | 38 | } else { |
| 35 | 39 | $unlock_more_upgrade_link = FrmAppHelper::admin_upgrade_link( $utm ); |
| @@ -36,9 +40,9 @@ | ||
| 36 | 40 | } |
| 37 | 41 | ?> |
| 38 | 42 | <div id="frm_license_top" class="frm_unauthorized_box"> |
| 39 | 43 | <p id="frm-connect-btns" class="frm-show-unauthorized"> |
| 40 | - <a href="<?php echo esc_url( FrmAddonsController::connect_link() ); ?>" class="button-primary frm-button-primary 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"> | |
| 41 | 45 | <?php esc_html_e( 'Connect an Account', 'formidable' ); ?> |
| 42 | 46 | </a> |
| 43 | 47 | <?php esc_html_e( 'or', 'formidable' ); ?> |
| 44 | 48 | <a href="<?php echo esc_url( $button_upgrade_link ); ?>" target="_blank" class="button-secondary frm-button-secondary frm-button-sm"> |
| @@ -54,9 +58,9 @@ | ||
| 54 | 58 | <?php |
| 55 | 59 | printf( |
| 56 | 60 | /* translators: %1$s: Start link HTML, %2$s: CTA Text (Default is "upgrading to PRO"), %3$s: End link HTML */ |
| 57 | 61 | esc_html__( 'To unlock more features consider %1$s%2$s%3$s.', 'formidable' ), |
| 58 | - '<a href="' . esc_url( $unlock_more_upgrade_link ) . '">', | |
| 62 | + '<a href="' . esc_url( $unlock_more_upgrade_link ) . '" target="_blank" rel="noopener">', | |
| 59 | 63 | esc_html( $unlock_more_upgrade_text ), |
| 60 | 64 | '</a>' |
| 61 | 65 | ); |
| 62 | 66 | ?> |