PluginProbe
Boxzilla – WordPress Popup Builder / trunk
Boxzilla – WordPress Popup Builder vtrunk
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 / admin / views / settings.php

settings.php in Boxzilla – WordPress Popup Builder trunk, at src/admin/views/settings.php

61 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php defined('ABSPATH') or exit;
2
3 /**
4 * Settings page
5 *
6 * @var array $opts
7 */
8 ?>
9 <div class="wrap boxzilla-settings" id="boxzilla-admin">
10 <div class="boxzilla-row">
11 <div class="boxzilla-col-two-third">
12
13 <h2><?php esc_html_e('Settings', 'boxzilla'); ?></h2>
14
15 <?php do_action('boxzilla_before_settings'); ?>
16
17 <form action="<?php echo esc_url(admin_url('options.php')); ?>" method="post">
18
19 <?php settings_fields('boxzilla_settings'); ?>
20
21 <table class="form-table">
22
23 <?php do_action('boxzilla_before_settings_rows'); ?>
24
25 <tr valign="top">
26 <th><label for="boxzilla_test_mode"><?php esc_html_e('Enable test mode?', 'boxzilla'); ?></label></th>
27 <td>
28 <label><input type="radio" id="boxzilla_test_mode_1" name="boxzilla_settings[test_mode]" value="1" <?php checked($opts['test_mode'], 1); ?> /> <?php esc_html_e('Yes', 'boxzilla'); ?></label> &nbsp;
29 <label><input type="radio" id="boxzilla_test_mode_0" name="boxzilla_settings[test_mode]" value="0" <?php checked($opts['test_mode'], 0); ?> /> <?php esc_html_e('No', 'boxzilla'); ?></label> &nbsp;
30 <p class="help"><?php esc_html_e('If test mode is enabled, all boxes will show up regardless of whether a cookie has been set.', 'boxzilla'); ?></p>
31 </td>
32 </tr>
33
34 <?php do_action('boxzilla_after_settings_rows'); ?>
35 </table>
36
37 <?php submit_button(); ?>
38 </form>
39
40 <?php do_action('boxzilla_after_settings'); ?>
41 </div>
42
43 <div class="boxzilla-sidebar boxzilla-col-one-third">
44
45 <div class="boxzilla-box">
46 <h3><?php esc_html_e('Looking for help?', 'boxzilla'); ?></h3>
47 <?php include __DIR__ . '/metaboxes/need-help.php'; ?>
48 </div>
49
50 <div class="boxzilla-box">
51 <h3><?php esc_html_e('Our other plugins', 'boxzilla'); ?></h3>
52 <?php include __DIR__ . '/metaboxes/our-other-plugins.php'; ?>
53 </div>
54
55 </div>
56 </div>
57
58 <br style="clear: both;" />
59
60 </div>
61