| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) { |
| 2 |
exit; |
| 3 |
} |
| 4 |
|
| 5 |
/** |
| 6 |
* Available variables |
| 7 |
* |
| 8 |
* @var string $upgradeUrl |
| 9 |
* @var string $contactUsUrl |
| 10 |
* @var string $documentationUrl |
| 11 |
*/ |
| 12 |
|
| 13 |
$accountURL = tpt_fs()->get_account_url(); |
| 14 |
?> |
| 15 |
<div class="tpt-alert"> |
| 16 |
|
| 17 |
<div class="tpt-alert__text"> |
| 18 |
<div class="tpt-alert__inner"> |
| 19 |
<span style="margin-left: 6px;"> |
| 20 |
<?php esc_html_e( 'Tiered Pricing Table', 'tier-pricing-table' ); ?> |
| 21 |
</span> |
| 22 |
<span class="tpt-badge tpt-badge--free"><?php esc_html_e( 'Free', 'tier-pricing-table' ); ?></span> |
| 23 |
<?php if ( tpt_fs()->is_activation_mode() ) : ?> |
| 24 |
<br> |
| 25 |
<br> |
| 26 |
<?php |
| 27 |
$activationURL = tpt_fs()->get_activation_url(); |
| 28 |
$linkText = esc_html__( 'finish plugin activation', 'tier-pricing-table' ); |
| 29 |
|
| 30 |
$upgradeLink = '<a target="_blank" href="' . $activationURL . '">' . $linkText . '</a>'; |
| 31 |
?> |
| 32 |
<small style="font-size: .8em"> |
| 33 |
<?php |
| 34 |
// translators: %s: activation link |
| 35 |
echo wp_kses_post( sprintf( esc_html__( 'Please %s to upgrade.', 'tier-pricing-table' ), |
| 36 |
$upgradeLink ) ); |
| 37 |
?> |
| 38 |
</small> |
| 39 |
<?php endif; ?> |
| 40 |
</div> |
| 41 |
</div> |
| 42 |
|
| 43 |
<div class="tpt-alert__buttons"> |
| 44 |
<div class="tpt-alert__inner"> |
| 45 |
|
| 46 |
<a class="tpt-button tpt-button--accent tpt-button--bounce" target="_blank" style="display: inline-flex; align-items: center;" |
| 47 |
href="<?php echo esc_attr( $upgradeUrl ); ?>"> |
| 48 |
<svg style="width: 16px; height: 16px; fill: currentColor; margin-right: 6px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg> |
| 49 |
<?php esc_html_e( 'Upgrade to Premium', 'tier-pricing-table' ); ?> |
| 50 |
</a> |
| 51 |
|
| 52 |
<a target="_blank" class="tpt-button tpt-button--default" style="display: inline-flex; align-items: center;" href="<?php echo esc_attr( $contactUsUrl ); ?>"> |
| 53 |
<svg style="width: 16px; height: 16px; stroke: currentColor; fill: none; margin-right: 6px;" xmlns="http://www.w3.org/2000/svg" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg> |
| 54 |
<?php esc_html_e( 'Contact Support', 'tier-pricing-table' ); ?> |
| 55 |
</a> |
| 56 |
|
| 57 |
<a target="_blank" class="tpt-button tpt-button--default" style="display: inline-flex; align-items: center;" href="<?php echo esc_attr( $documentationUrl ); ?>"> |
| 58 |
<svg style="width: 16px; height: 16px; stroke: currentColor; fill: none; margin-right: 6px;" xmlns="http://www.w3.org/2000/svg" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"/><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"/></svg> |
| 59 |
<?php esc_html_e( 'Documentation', 'tier-pricing-table' ); ?> |
| 60 |
</a> |
| 61 |
|
| 62 |
<?php if ( tpt_fs()->is_activation_mode() ) : ?> |
| 63 |
<a target="_blank" class="tpt-button tpt-button--default" |
| 64 |
href="<?php echo esc_attr( tpt_fs()->get_activation_url() ); ?>"> |
| 65 |
<?php esc_html_e( 'Opt-in', 'tier-pricing-table' ); ?> |
| 66 |
</a> |
| 67 |
<?php elseif ( tpt_fs()->get_user() ) : ?> |
| 68 |
<a target="_blank" class="tpt-button tpt-button--default" style="display: inline-flex; align-items: center;" |
| 69 |
href="<?php echo esc_attr( admin_url( 'admin.php?page=tiered-pricing-table-account' ) ); ?>"> |
| 70 |
<svg style="width: 16px; height: 16px; stroke: currentColor; fill: none; margin-right: 6px;" xmlns="http://www.w3.org/2000/svg" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg> |
| 71 |
<?php esc_html_e( 'My Account', 'tier-pricing-table' ); ?> |
| 72 |
</a> |
| 73 |
<?php endif; ?> |
| 74 |
</div> |
| 75 |
</div> |
| 76 |
</div> |