PluginProbe
Boxzilla – WordPress Popup Builder / 3.4.3
Boxzilla – WordPress Popup Builder v3.4.3
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.3, at src/licensing/views/license-form.php

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