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