PluginProbe
Tiered Pricing Table for WooCommerce / 8.0.2
Tiered Pricing Table for WooCommerce v8.0.2
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
← All changes | freemius/templates/partials/network-activation.php +23 -10 2.0 → 8.0.2 View file →
@@ -1,5 +1,10 @@
1 1 <?php
2 +
3 + if ( ! defined( 'ABSPATH' ) ) {
4 + exit;
5 + }
6 +
2 7 /**
3 8 * @var array $VARS
4 9 * @var Freemius $fs
5 10 */
@@ -8,12 +13,16 @@
8 13 $slug = $fs->get_slug();
9 14
10 15 $sites = $VARS['sites'];
11 16 $require_license_key = $VARS['require_license_key'];
17 +
18 + $show_delegation_option = $fs->apply_filters( 'show_delegation_option', true );
19 + $enable_per_site_activation = $fs->apply_filters( 'enable_per_site_activation', true );
12 20 ?>
13 21 <?php $separator = '<td>|</td>' ?>
14 -<div id="multisite_options_container" class="apply-on-all-sites">
15 - <table id="all_sites_options">
22 +<div class="fs-multisite-options-container fs-apply-on-all-sites"<?php if ( ! $enable_per_site_activation )
23 + echo ' style="display: none;"' ?>>
24 + <table class="fs-all-sites-options">
16 25 <tbody>
17 26 <tr>
18 27 <td width="600">
19 28 <label>
@@ -28,15 +37,17 @@
28 37 fs_text_inline( 'Apply on all pending sites.', 'apply-on-pending-sites-in-the-network', $slug );
29 38
30 39 }
31 40 ?>
32 - <input id="apply_on_all_sites" type="checkbox" value="true" checked><span><?php echo esc_html( $apply_checkbox_label ) ?></span>
41 + <input class="fs-apply-on-all-sites-checkbox" type="checkbox" value="true" checked><span><?php echo esc_html( $apply_checkbox_label ) ?></span>
33 42 </label>
34 43 </td>
35 44 <?php if ( ! $require_license_key ) : ?>
36 45 <td><a class="action action-allow" data-action-type="allow" href="#"><?php fs_esc_html_echo_inline( 'allow', 'allow', $slug ) ?></a></td>
37 46 <?php echo $separator ?>
47 + <?php if ( $show_delegation_option ) : ?>
38 48 <td><a class="action action-delegate" data-action-type="delegate" href="#"><?php fs_esc_html_echo_inline( 'delegate', 'delegate', $slug ) ?></a></td>
49 + <?php endif ?>
39 50 <?php if ( $fs->is_enable_anonymous() ) : ?>
40 51 <?php echo $separator ?>
41 52 <td><a class="action action-skip" data-action-type="skip" href="#"><?php echo strtolower( fs_esc_html_inline( 'skip', 'skip', $slug ) ) ?></a></td>
42 53 <?php endif ?>
@@ -43,32 +54,34 @@
43 54 <?php endif ?>
44 55 </tr>
45 56 </tbody>
46 57 </table>
47 - <div id="sites_list_container">
58 + <div class="fs-sites-list-container">
48 59 <table cellspacing="0">
49 60 <tbody>
50 - <?php $site_props = array('uid', 'url', 'title', 'charset', 'language') ?>
61 + <?php $site_props = array('uid', 'url', 'title', 'language') ?>
51 62 <?php foreach ( $sites as $site ) : ?>
52 63 <tr<?php if ( ! empty( $site['license_id'] ) ) {
53 - echo ' data-license-id="' . $site['license_id'] . '"';
64 + echo ' data-license-id="' . esc_attr( $site['license_id'] ) . '"';
54 65 } ?>>
55 66 <?php if ( $require_license_key ) : ?>
56 67 <td><input type="checkbox" value="true" /></td>
57 68 <?php endif ?>
58 - <td class="blog-id"><span><?php echo $site['blog_id'] ?></span>.</td>
69 + <td class="blog-id"><span><?php echo esc_html( $site['blog_id'] ) ?></span>.</td>
59 70 <td width="600"><span><?php
60 71 $url = str_replace( 'http://', '', str_replace( 'https://', '', $site['url'] ) );
61 - echo $url;
72 + echo esc_html( $url );
62 73 ?></span>
63 74 <?php foreach ($site_props as $prop) : ?>
64 - <input class="<?php echo $prop ?>" type="hidden" value="<?php echo esc_attr($site[$prop]) ?>" />
75 + <input class="<?php echo esc_attr( $prop ) ?>" type="hidden" value="<?php echo esc_attr($site[$prop]) ?>" />
65 76 <?php endforeach ?>
66 77 </td>
67 78 <?php if ( ! $require_license_key ) : ?>
68 79 <td><a class="action action-allow selected" data-action-type="allow" href="#"><?php fs_esc_html_echo_inline( 'allow', 'allow', $slug ) ?></a></td>
69 80 <?php echo $separator ?>
81 + <?php if ( $show_delegation_option ) : ?>
70 82 <td><a class="action action-delegate" data-action-type="delegate" href="#"><?php fs_esc_html_echo_inline( 'delegate', 'delegate', $slug ) ?></a></td>
83 + <?php endif ?>
71 84 <?php if ( $fs->is_enable_anonymous() ) : ?>
72 85 <?php echo $separator ?>
73 86 <td><a class="action action-skip" data-action-type="skip" href="#"><?php echo strtolower( fs_esc_html_inline( 'skip', 'skip', $slug ) ) ?></a></td>
74 87 <?php endif ?>
@@ -77,5 +90,5 @@
77 90 <?php endforeach ?>
78 91 </tbody>
79 92 </table>
80 93 </div>
81 -</div>
94 +</div>