PremiumImportOption.php
1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php namespace MeowCrew\RoleAndCustomerBasedPricing\Settings\CustomOptions;
class PremiumImportOption {
const FIELD_TYPE = 'rcbp_premium_import';
public function __construct() {
add_action( 'woocommerce_admin_field_' . self::FIELD_TYPE, array( $this, 'render' ) );
}
public function render( $value ) {
?>
<tr valign="top">
<th scope="row" class="titledesc">
<label for="<?php echo esc_attr( $value['id'] ); ?>">WooCommerce import/export tool</label>
</th>
<td class="forminp forminp-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>">
<fieldset>
<p class="description">
<b><?php esc_html_e( 'Available in the premium version' ); ?></b>
<a target="_blank" style="color:red"
href="<?php echo esc_url( racbpfw_fs()->get_upgrade_url() ) ?>">
<?php esc_html_e( 'Upgrade now', 'role-and-customer-based-pricing-for-woocommerce' ); ?>
</a>
</p>
</fieldset>
</td>
</tr>
<tr valign="top">
<th scope="row" class="titledesc">
<label for="<?php echo esc_attr( $value['id'] ); ?>">WP All Import</label>
</th>
<td class="forminp forminp-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>">
<fieldset>
<p class="description">
<b><?php esc_html_e( 'Available in the premium version' ); ?></b>
<a target="_blank" style="color:red"
href="<?php echo esc_url( racbpfw_fs()->get_upgrade_url() ) ?>">
<?php esc_html_e( 'Upgrade now', 'role-and-customer-based-pricing-for-woocommerce' ); ?>
</a>
</p>
</fieldset>
</td>
</tr>
<?php
}
}