PluginProbe
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder / 1.5
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder v1.5
3.6.0 3.5.0 trunk 1.0.10 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.6.1 1.0.7 1.0.8 1.0.9 1.1 1.1.1 1.2 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5 1.5.1 All 110 releases
buttonizer-multifunctional-button / freemius / templates / partials / network-activation.php

network-activation.php in Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder 1.5, at freemius/templates/partials/network-activation.php

81 lines 4.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 <?php $separator = '<td>|</td>' ?>
14 <div id="multisite_options_container" class="apply-on-all-sites">
15 <table id="all_sites_options">
16 <tbody>
17 <tr>
18 <td width="600">
19 <label>
20 <?php
21 if ( ! $fs->is_network_upgrade_mode() ) {
22 $apply_checkbox_label = $require_license_key ?
23 fs_text_inline( 'Activate license on all sites in the network.', 'activate-license-on-all-sites-in-the-network', $slug ) :
24 fs_text_inline( 'Apply on all sites in the network.', 'apply-on-all-sites-in-the-network', $slug );
25 } else {
26 $apply_checkbox_label = $require_license_key ?
27 fs_text_inline( 'Activate license on all pending sites.', 'activate-license-on-pending-sites-in-the-network', $slug ) :
28 fs_text_inline( 'Apply on all pending sites.', 'apply-on-pending-sites-in-the-network', $slug );
29
30 }
31 ?>
32 <input id="apply_on_all_sites" type="checkbox" value="true" checked><span><?php echo esc_html( $apply_checkbox_label ) ?></span>
33 </label>
34 </td>
35 <?php if ( ! $require_license_key ) : ?>
36 <td><a class="action action-allow" data-action-type="allow" href="#"><?php fs_esc_html_echo_inline( 'allow', 'allow', $slug ) ?></a></td>
37 <?php echo $separator ?>
38 <td><a class="action action-delegate" data-action-type="delegate" href="#"><?php fs_esc_html_echo_inline( 'delegate', 'delegate', $slug ) ?></a></td>
39 <?php if ( $fs->is_enable_anonymous() ) : ?>
40 <?php echo $separator ?>
41 <td><a class="action action-skip" data-action-type="skip" href="#"><?php echo strtolower( fs_esc_html_inline( 'skip', 'skip', $slug ) ) ?></a></td>
42 <?php endif ?>
43 <?php endif ?>
44 </tr>
45 </tbody>
46 </table>
47 <div id="sites_list_container">
48 <table cellspacing="0">
49 <tbody>
50 <?php $site_props = array('uid', 'url', 'title', 'charset', 'language') ?>
51 <?php foreach ( $sites as $site ) : ?>
52 <tr<?php if ( ! empty( $site['license_id'] ) ) {
53 echo ' data-license-id="' . $site['license_id'] . '"';
54 } ?>>
55 <?php if ( $require_license_key ) : ?>
56 <td><input type="checkbox" value="true" /></td>
57 <?php endif ?>
58 <td class="blog-id"><span><?php echo $site['blog_id'] ?></span>.</td>
59 <td width="600"><span><?php
60 $url = str_replace( 'http://', '', str_replace( 'https://', '', $site['url'] ) );
61 echo $url;
62 ?></span>
63 <?php foreach ($site_props as $prop) : ?>
64 <input class="<?php echo $prop ?>" type="hidden" value="<?php echo esc_attr($site[$prop]) ?>" />
65 <?php endforeach ?>
66 </td>
67 <?php if ( ! $require_license_key ) : ?>
68 <td><a class="action action-allow" data-action-type="allow" href="#"><?php fs_esc_html_echo_inline( 'allow', 'allow', $slug ) ?></a></td>
69 <?php echo $separator ?>
70 <td><a class="action action-delegate" data-action-type="delegate" href="#"><?php fs_esc_html_echo_inline( 'delegate', 'delegate', $slug ) ?></a></td>
71 <?php if ( $fs->is_enable_anonymous() ) : ?>
72 <?php echo $separator ?>
73 <td><a class="action action-skip" data-action-type="skip" href="#"><?php echo strtolower( fs_esc_html_inline( 'skip', 'skip', $slug ) ) ?></a></td>
74 <?php endif ?>
75 <?php endif ?>
76 </tr>
77 <?php endforeach ?>
78 </tbody>
79 </table>
80 </div>
81 </div>