| 1 |
<?php defined( 'ABSPATH' ) or exit; ?> |
| 2 |
<div class="wrap" id="boxzilla-admin" class="boxzilla-settings"> |
| 3 |
|
| 4 |
<div class="boxzilla-row"> |
| 5 |
<div class="boxzilla-col-two-third"> |
| 6 |
|
| 7 |
<h2><?php _e( 'Settings', 'boxzilla' ); ?></h2> |
| 8 |
|
| 9 |
<?php do_action( 'boxzilla_before_settings' ); ?> |
| 10 |
|
| 11 |
<form action="<?php echo admin_url( 'options.php' ); ?>" method="post"> |
| 12 |
|
| 13 |
<?php settings_fields( 'boxzilla_settings' ); ?> |
| 14 |
|
| 15 |
<table class="form-table"> |
| 16 |
|
| 17 |
<?php do_action( 'boxzilla_before_settings_rows' ); ?> |
| 18 |
|
| 19 |
<tr valign="top"> |
| 20 |
<th><label for="boxzilla_test_mode"><?php _e( 'Enable test mode?', 'boxzilla' ); ?></label></th> |
| 21 |
<td> |
| 22 |
<label><input type="radio" id="boxzilla_test_mode_1" name="boxzilla_settings[test_mode]" value="1" <?php checked( $opts['test_mode'], 1 ); ?> /> <?php _e( 'Yes' ); ?></label> |
| 23 |
<label><input type="radio" id="boxzilla_test_mode_0" name="boxzilla_settings[test_mode]" value="0" <?php checked( $opts['test_mode'], 0 ); ?> /> <?php _e( 'No' ); ?></label> |
| 24 |
<p class="help"><?php _e( 'If test mode is enabled, all boxes will show up regardless of whether a cookie has been set.', 'boxzilla' ); ?></p> |
| 25 |
</td> |
| 26 |
</tr> |
| 27 |
|
| 28 |
<?php do_action( 'boxzilla_after_settings_rows' ); ?> |
| 29 |
</table> |
| 30 |
|
| 31 |
<?php submit_button(); ?> |
| 32 |
</form> |
| 33 |
|
| 34 |
<?php do_action( 'boxzilla_after_settings' ); ?> |
| 35 |
</div> |
| 36 |
|
| 37 |
<div class="boxzilla-sidebar boxzilla-col-one-third"> |
| 38 |
|
| 39 |
<!-- Begin MailChimp Signup Form --> |
| 40 |
<div class="boxzilla-box"> |
| 41 |
<h3>Subscribe to our mailing list</h3> |
| 42 |
<?php include __DIR__ . '/metaboxes/email-optin.php'; ?> |
| 43 |
</div> |
| 44 |
<!--End mc_embed_signup--> |
| 45 |
|
| 46 |
<div class="boxzilla-box"> |
| 47 |
<h3>Looking for help?</h3> |
| 48 |
<?php include __DIR__ . '/metaboxes/need-help.php'; ?> |
| 49 |
</div> |
| 50 |
|
| 51 |
</div> |
| 52 |
</div> |
| 53 |
|
| 54 |
<br style="clear: both;" /> |
| 55 |
|
| 56 |
</div> |