| 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 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> |
| 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> |
| 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 |
|