PluginProbe
Boxzilla – WordPress Popup Builder / 3.4.7
Boxzilla – WordPress Popup Builder v3.4.7
3.4.11 3.4.10 3.4.9 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 trunk 3.0 3.0.1 3.0.2 3.0.3 3.1 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 All 72 releases
boxzilla / src / licensing / views / license-form.php

license-form.php in Boxzilla – WordPress Popup Builder 3.4.7, at src/licensing/views/license-form.php

90 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // prevent direct file access
4 defined('ABSPATH') or exit;
5
6 /**
7 * @var Boxzilla\Licensing\License $license
8 * @var array $notices
9 * @var array $extensions
10 */
11 ?>
12
13 <h2><?php esc_html_e('License & Plugin Updates', 'boxzilla'); ?></h2>
14
15 <?php
16 if (! $license->activated) {
17 ?>
18 <div class="error inline">
19 <p>
20 <strong><?php esc_html_e('Warning! You are not receiving plugin updates for the following plugin(s):', 'boxzilla'); ?></strong>
21 </p>
22 <ul class="ul-square">
23 <?php
24 foreach ($extensions as $p) {
25 echo '<li>', esc_html($p->name()), '</li>';
26 }
27 ?>
28 </ul>
29 <p>
30 <?php esc_html_e('To fix this, please activate your license using the form below.', 'boxzilla'); ?>
31 </p>
32 </div>
33 <?php
34 }
35 ?>
36
37 <?php foreach ($notices as $notice) { ?>
38 <div class="notice notice-<?php echo esc_attr($notice['type']); ?> inline">
39 <p><?php echo wp_kses($notice['message'], ['strong' => [], 'em' => [], 'a' => ['href' => []]]); ?></p>
40 </div>
41 <?php } ?>
42
43 <form method="post">
44 <table class="form-table">
45 <tr valign="top">
46 <th><?php esc_html_e('License Key', 'boxzilla'); ?></th>
47 <td>
48 <input
49 style="min-height: 30px; border-radius: 3px;"
50 size="40"
51 name="boxzilla_license_key"
52 placeholder="<?php esc_attr_e('Enter your license key..', 'boxzilla'); ?>"
53 value="<?php echo esc_attr($license->key); ?>"
54 <?php if ($license->activated) {
55 echo 'readonly';
56 } ?>
57 />
58 <input class="button" type="submit" name="action" value="<?php echo $license->activated ? 'deactivate' : 'activate'; ?>" />
59 <p class="help">
60 <?php
61 esc_html_e('The license key received when purchasing your premium Boxzilla plan.', 'boxzilla');
62 echo ' <a href="https://my.boxzillaplugin.com/">', esc_html__('You can find it here.', 'boxzilla'), '</a>';
63 ?>
64 </p>
65 </td>
66 </tr>
67 <tr valign="top">
68 <th><?php esc_html_e('License Status', 'boxzilla'); ?></th>
69 <td>
70 <?php
71 if ($license->activated) {
72 ?>
73 <p><span class="status positive"><?php esc_html_e('ACTIVE', 'boxzilla'); ?></span> - <?php esc_html_e('you are receiving plugin updates', 'boxzilla'); ?></p>
74 <?php
75 } else {
76 ?>
77 <p><span class="status negative"><?php esc_html_e('INACTIVE', 'boxzilla'); ?></span> - <?php echo wp_kses(__('you are <strong>not</strong> receiving plugin updates', 'boxzilla'), [ 'strong' => [] ]); ?></p>
78 <?php
79 }
80 ?>
81 </td>
82 </tr>
83 </table>
84 <p>
85 <input type="submit" class="button button-primary" name="action" value="<?php esc_attr_e('Save Changes', 'boxzilla'); ?>" />
86 </p>
87
88 <input type="hidden" name="boxzilla_license_form" value="1" />
89 </form>
90