PluginProbe ʕ •ᴥ•ʔ
Code Manager / 1.0.0
Code Manager v1.0.0
1.0.48 1.0.47 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 1.0.23 1.0.24 1.0.25 1.0.26 1.0.27 1.0.28 1.0.3 1.0.30 1.0.31 1.0.32 1.0.33 1.0.34 1.0.35 1.0.36 1.0.37 1.0.38 1.0.39 1.0.4 1.0.40 1.0.41 1.0.42 1.0.43 1.0.44 1.0.45 1.0.46 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9
code-manager / freemius / templates / partials / network-activation.php
code-manager / freemius / templates / partials Last commit date
network-activation.php 5 years ago
network-activation.php
89 lines
1 <?php
2 /**
3 * @var array $VARS
4 * @var Freemius $fs
5 */
6 $fs = freemius( $VARS['id'] );
7
8 $slug = $fs->get_slug();
9
10 $sites = $VARS['sites'];
11 $require_license_key = $VARS['require_license_key'];
12
13 $show_delegation_option = $fs->apply_filters( 'show_delegation_option', true );
14 $enable_per_site_activation = $fs->apply_filters( 'enable_per_site_activation', true );
15 ?>
16 <?php $separator = '<td>|</td>' ?>
17 <div class="fs-multisite-options-container fs-apply-on-all-sites"<?php if ( ! $enable_per_site_activation )
18 echo ' style="display: none;"' ?>>
19 <table class="fs-all-sites-options">
20 <tbody>
21 <tr>
22 <td width="600">
23 <label>
24 <?php
25 if ( ! $fs->is_network_upgrade_mode() ) {
26 $apply_checkbox_label = $require_license_key ?
27 fs_text_inline( 'Activate license on all sites in the network.', 'activate-license-on-all-sites-in-the-network', $slug ) :
28 fs_text_inline( 'Apply on all sites in the network.', 'apply-on-all-sites-in-the-network', $slug );
29 } else {
30 $apply_checkbox_label = $require_license_key ?
31 fs_text_inline( 'Activate license on all pending sites.', 'activate-license-on-pending-sites-in-the-network', $slug ) :
32 fs_text_inline( 'Apply on all pending sites.', 'apply-on-pending-sites-in-the-network', $slug );
33
34 }
35 ?>
36 <input class="fs-apply-on-all-sites-checkbox" type="checkbox" value="true" checked><span><?php echo esc_html( $apply_checkbox_label ) ?></span>
37 </label>
38 </td>
39 <?php if ( ! $require_license_key ) : ?>
40 <td><a class="action action-allow" data-action-type="allow" href="#"><?php fs_esc_html_echo_inline( 'allow', 'allow', $slug ) ?></a></td>
41 <?php echo $separator ?>
42 <?php if ( $show_delegation_option ) : ?>
43 <td><a class="action action-delegate" data-action-type="delegate" href="#"><?php fs_esc_html_echo_inline( 'delegate', 'delegate', $slug ) ?></a></td>
44 <?php endif ?>
45 <?php if ( $fs->is_enable_anonymous() ) : ?>
46 <?php echo $separator ?>
47 <td><a class="action action-skip" data-action-type="skip" href="#"><?php echo strtolower( fs_esc_html_inline( 'skip', 'skip', $slug ) ) ?></a></td>
48 <?php endif ?>
49 <?php endif ?>
50 </tr>
51 </tbody>
52 </table>
53 <div class="fs-sites-list-container">
54 <table cellspacing="0">
55 <tbody>
56 <?php $site_props = array('uid', 'url', 'title', 'charset', 'language') ?>
57 <?php foreach ( $sites as $site ) : ?>
58 <tr<?php if ( ! empty( $site['license_id'] ) ) {
59 echo ' data-license-id="' . $site['license_id'] . '"';
60 } ?>>
61 <?php if ( $require_license_key ) : ?>
62 <td><input type="checkbox" value="true" /></td>
63 <?php endif ?>
64 <td class="blog-id"><span><?php echo $site['blog_id'] ?></span>.</td>
65 <td width="600"><span><?php
66 $url = str_replace( 'http://', '', str_replace( 'https://', '', $site['url'] ) );
67 echo $url;
68 ?></span>
69 <?php foreach ($site_props as $prop) : ?>
70 <input class="<?php echo $prop ?>" type="hidden" value="<?php echo esc_attr($site[$prop]) ?>" />
71 <?php endforeach ?>
72 </td>
73 <?php if ( ! $require_license_key ) : ?>
74 <td><a class="action action-allow selected" data-action-type="allow" href="#"><?php fs_esc_html_echo_inline( 'allow', 'allow', $slug ) ?></a></td>
75 <?php echo $separator ?>
76 <?php if ( $show_delegation_option ) : ?>
77 <td><a class="action action-delegate" data-action-type="delegate" href="#"><?php fs_esc_html_echo_inline( 'delegate', 'delegate', $slug ) ?></a></td>
78 <?php endif ?>
79 <?php if ( $fs->is_enable_anonymous() ) : ?>
80 <?php echo $separator ?>
81 <td><a class="action action-skip" data-action-type="skip" href="#"><?php echo strtolower( fs_esc_html_inline( 'skip', 'skip', $slug ) ) ?></a></td>
82 <?php endif ?>
83 <?php endif ?>
84 </tr>
85 <?php endforeach ?>
86 </tbody>
87 </table>
88 </div>
89 </div>