PluginProbe
Tiered Pricing Table for WooCommerce / 6.1.0
Tiered Pricing Table for WooCommerce v6.1.0
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
tier-pricing-table / views / admin / banners / upgrade-banner.php

upgrade-banner.php in Tiered Pricing Table for WooCommerce 6.1.0, at views/admin/banners/upgrade-banner.php

67 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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>