| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) { |
| 2 |
exit; |
| 3 |
} |
| 4 |
|
| 5 |
/** |
| 6 |
* Available variables |
| 7 |
* |
| 8 |
* @var string $upgradeUrl |
| 9 |
* @var string $contactUsUrl |
| 10 |
*/ |
| 11 |
|
| 12 |
$accountURL = tpt_fs()->get_account_url(); |
| 13 |
?> |
| 14 |
<div class="tpt-alert"> |
| 15 |
|
| 16 |
<div class="tpt-alert__text"> |
| 17 |
<div class="tpt-alert__inner"> |
| 18 |
<?php |
| 19 |
esc_html_e( 'Upgrade your plan to unlock the great premium features', 'tier-pricing-table' ); |
| 20 |
?> |
| 21 |
🚀 |
| 22 |
<?php if ( tpt_fs()->is_activation_mode() ) : ?> |
| 23 |
<br> |
| 24 |
<br> |
| 25 |
<?php |
| 26 |
$activationURL = tpt_fs()->get_activation_url(); |
| 27 |
$linkText = esc_html__( 'finish plugin activation', 'tier-pricing-table' ); |
| 28 |
|
| 29 |
$upgradeLink = '<a target="_blank" href="' . $activationURL . '">' . $linkText . '</a>'; |
| 30 |
?> |
| 31 |
<small style="font-size: .8em"> |
| 32 |
<?php |
| 33 |
// translators: %s: activation link |
| 34 |
echo wp_kses_post( sprintf( esc_html__( 'Please %s to proceed with upgrading.', 'tier-pricing-table' ), |
| 35 |
$upgradeLink ) ); |
| 36 |
?> |
| 37 |
</small> |
| 38 |
<?php endif; ?> |
| 39 |
</div> |
| 40 |
</div> |
| 41 |
|
| 42 |
<div class="tpt-alert__buttons"> |
| 43 |
<div class="tpt-alert__inner"> |
| 44 |
|
| 45 |
<a class="tpt-button tpt-button--accent tpt-button--bounce" target="_blank" |
| 46 |
href="<?php echo esc_attr( $upgradeUrl ); ?>"> |
| 47 |
<?php esc_html_e( 'Upgrade to Premium!', 'tier-pricing-table' ); ?> |
| 48 |
</a> |
| 49 |
|
| 50 |
<a target="_blank" class="tpt-button tpt-button--default" href="<?php echo esc_attr( $contactUsUrl ); ?>"> |
| 51 |
<?php esc_html_e( 'Contact us', 'tier-pricing-table' ); ?> |
| 52 |
</a> |
| 53 |
|
| 54 |
<?php if ( tpt_fs()->is_activation_mode() ) : ?> |
| 55 |
<a target="_blank" class="tpt-button tpt-button--default" |
| 56 |
href="<?php echo esc_attr( tpt_fs()->get_activation_url() ); ?>"> |
| 57 |
Opt-in |
| 58 |
</a> |
| 59 |
<?php elseif ( tpt_fs()->get_user() ) : ?> |
| 60 |
<a target="_blank" class="tpt-button tpt-button--default" |
| 61 |
href="<?php echo esc_attr( admin_url( 'admin.php?page=tiered-pricing-table-account' ) ); ?>"> |
| 62 |
Your account |
| 63 |
</a> |
| 64 |
<?php endif; ?> |
| 65 |
</div> |
| 66 |
</div> |
| 67 |
</div> |