| @@ -1,60 +1,56 @@ | ||
| 1 | -<?php defined('ABSPATH') or exit; | |
| 1 | +<?php defined( 'ABSPATH' ) or exit; ?> | |
| 2 | +<div class="wrap" id="boxzilla-admin" class="boxzilla-settings"> | |
| 2 | 3 | |
| 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"> | |
| 4 | + <div class="boxzilla-row"> | |
| 5 | + <div class="boxzilla-col-two-third"> | |
| 12 | 6 | |
| 13 | - <h2><?php esc_html_e('Settings', 'boxzilla'); ?></h2> | |
| 7 | + <h2><?php _e( 'Settings', 'boxzilla' ); ?></h2> | |
| 14 | 8 | |
| 15 | - <?php do_action('boxzilla_before_settings'); ?> | |
| 9 | + <?php do_action( 'boxzilla_before_settings' ); ?> | |
| 16 | 10 | |
| 17 | - <form action="<?php echo admin_url('options.php'); ?>" method="post"> | |
| 11 | + <form action="<?php echo admin_url( 'options.php' ); ?>" method="post"> | |
| 18 | 12 | |
| 19 | - <?php settings_fields('boxzilla_settings'); ?> | |
| 13 | + <?php settings_fields( 'boxzilla_settings' ); ?> | |
| 20 | 14 | |
| 21 | - <table class="form-table"> | |
| 15 | + <table class="form-table"> | |
| 22 | 16 | |
| 23 | - <?php do_action('boxzilla_before_settings_rows'); ?> | |
| 17 | + <?php do_action( 'boxzilla_before_settings_rows' ); ?> | |
| 24 | 18 | |
| 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> | |
| 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> | |
| 33 | 27 | |
| 34 | - <?php do_action('boxzilla_after_settings_rows'); ?> | |
| 35 | - </table> | |
| 28 | + <?php do_action( 'boxzilla_after_settings_rows' ); ?> | |
| 29 | + </table> | |
| 36 | 30 | |
| 37 | - <?php submit_button(); ?> | |
| 38 | - </form> | |
| 31 | + <?php submit_button(); ?> | |
| 32 | + </form> | |
| 39 | 33 | |
| 40 | - <?php do_action('boxzilla_after_settings'); ?> | |
| 41 | - </div> | |
| 34 | + <?php do_action( 'boxzilla_after_settings' ); ?> | |
| 35 | + </div> | |
| 42 | 36 | |
| 43 | - <div class="boxzilla-sidebar boxzilla-col-one-third"> | |
| 37 | + <div class="boxzilla-sidebar boxzilla-col-one-third"> | |
| 44 | 38 | |
| 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> | |
| 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--> | |
| 49 | 45 | |
| 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> | |
| 46 | + <div class="boxzilla-box"> | |
| 47 | + <h3>Looking for help?</h3> | |
| 48 | + <?php include __DIR__ . '/metaboxes/need-help.php'; ?> | |
| 49 | + </div> | |
| 54 | 50 | |
| 55 | - </div> | |
| 56 | - </div> | |
| 51 | + </div> | |
| 52 | + </div> | |
| 57 | 53 | |
| 58 | - <br style="clear: both;" /> | |
| 54 | + <br style="clear: both;" /> | |
| 59 | 55 | |
| 60 | -</div> | |
| 56 | +</div> | |