| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
?> |
| 6 |
<div id="frm_upgrade_modal" class="frm_hidden frm-modal settings-lite-cta"> |
| 7 |
<div class="metabox-holder"> |
| 8 |
<div class="postbox"> |
| 9 |
<a href="#" class="dismiss alignright" title="<?php esc_attr_e( 'Dismiss this message', 'formidable' ); ?>"> |
| 10 |
<?php FrmAppHelper::icon_by_class( 'frmfont frm_close_icon', array( 'aria-label' => 'Dismiss' ) ); ?> |
| 11 |
</a> |
| 12 |
<div class="inside"> |
| 13 |
|
| 14 |
<div class="frm-circled-icon frm-flex-center frm-mb-sm"> |
| 15 |
<?php FrmAppHelper::icon_by_class( 'frmfont frm_filled_lock_icon frm_locked', array( 'aria-hidden' => 'true' ) ); ?> |
| 16 |
</div> |
| 17 |
|
| 18 |
<h2> |
| 19 |
<?php |
| 20 |
printf( |
| 21 |
/* translators: %$1s: Feature name, %$2s: open span tag, %$3s: close span tag. */ |
| 22 |
esc_html__( '%1$s %2$sare not installed%3$s', 'formidable' ), |
| 23 |
'<span class="frm_feature_label"></span>', |
| 24 |
'<span class="frm_are_not_installed">', |
| 25 |
'</span>' |
| 26 |
); |
| 27 |
?> |
| 28 |
</h2> |
| 29 |
<div class="cta-inside"> |
| 30 |
|
| 31 |
<p class="frm-oneclick frm_hidden"> |
| 32 |
<?php esc_html_e( 'That add-on is not installed. Would you like to install it now?', 'formidable' ); ?> |
| 33 |
</p> |
| 34 |
<p class="frm-addon-status"></p> |
| 35 |
|
| 36 |
<a class="button button-primary frm-button-primary frm_hidden frm-oneclick-button"> |
| 37 |
<?php esc_html_e( 'Install', 'formidable' ); ?> |
| 38 |
</a> |
| 39 |
|
| 40 |
<?php |
| 41 |
if ( $is_pro ) { |
| 42 |
/* translators: %s: Feature name */ |
| 43 |
$message = __( '%s are not available on your plan. Please upgrade or renew your license to unlock more awesome features.', 'formidable' ); |
| 44 |
} else { |
| 45 |
/* translators: %s: Feature name */ |
| 46 |
$message = __( '%s are not available on your plan. Did you know you can upgrade to PRO to unlock more awesome features?', 'formidable' ); |
| 47 |
} |
| 48 |
$message = sprintf( esc_html( $message ), '<span class="frm_feature_label"></span>' ); |
| 49 |
?> |
| 50 |
<p class="frm-upgrade-message" data-default="<?php echo esc_attr( $message ); ?>"> |
| 51 |
<?php echo FrmAppHelper::kses( $message, array( 'span' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 52 |
</p> |
| 53 |
<?php if ( $is_pro ) { ?> |
| 54 |
<a href="<?php echo esc_url( $default_link ); ?>" class="button button-primary frm-button-primary frm-upgrade-link" data-default="<?php echo esc_url( $default_link ); ?>"> |
| 55 |
<?php |
| 56 |
if ( FrmAddonsController::is_license_expired() ) { |
| 57 |
esc_html_e( 'Renew', 'formidable' ); |
| 58 |
} else { |
| 59 |
printf( |
| 60 |
/* translators: %s: Plan name */ |
| 61 |
esc_html__( 'Upgrade to %s', 'formidable' ), |
| 62 |
'<span class="license-level">Pro</span>' |
| 63 |
); |
| 64 |
} |
| 65 |
?> |
| 66 |
</a> |
| 67 |
<?php } else { ?> |
| 68 |
<a href="<?php echo esc_url( $default_link ); ?>" class="button button-primary frm-button-primary frm-upgrade-link" target="_blank" rel="noopener noreferrer" data-default="<?php echo esc_url( $default_link ); ?>"> |
| 69 |
<?php |
| 70 |
printf( |
| 71 |
/* translators: %s: Plan name */ |
| 72 |
esc_html__( 'Upgrade to %s', 'formidable' ), |
| 73 |
'<span class="license-level">Pro</span>' |
| 74 |
); |
| 75 |
?> |
| 76 |
</a> |
| 77 |
|
| 78 |
<p> |
| 79 |
<a href="<?php echo esc_url( FrmAppHelper::admin_upgrade_link( $upgrade_link, 'knowledgebase/install-formidable-forms/' ) ); ?>" target="_blank" class="frm-link-secondary"> |
| 80 |
<?php esc_html_e( 'Already purchased?', 'formidable' ); ?> |
| 81 |
</a> |
| 82 |
</p> |
| 83 |
<?php } ?> |
| 84 |
</div> |
| 85 |
</div> |
| 86 |
</div> |
| 87 |
</div> |
| 88 |
</div> |
| 89 |
|