PluginProbe
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites / 1.2.3
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites v1.2.3
4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 2.6.1 All 38 releases
blockspare / freemius / templates / partials / network-activation.php

network-activation.php in BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites 1.2.3, at freemius/templates/partials/network-activation.php

89 lines 4.8 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 $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>