<tr valign="top"> <th scope="row"><?php _e('Discount Amount', 'em-pro'); ?> </th> <td><input type="text" name="coupon_discount" value="<?php echo esc_attr($EM_Coupon->coupon_discount); ?> " /> <br /> <em><?php _e('Enter a number here only, decimals accepted.', 'em-pro'); ?> </em> </td> </tr> </tbody> </table> <p class="submit"> <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes'); ?> " /> </p> </form> </div> <!-- wrap --> <?php } } EM_Coupons_Admin::init();
/** * @param EM_Event $EM_Event */ public static function admin_meta_box($EM_Event) { //load this only when needed, so moved into the EM_Coupons_Admin object, include_once 'coupons-admin.php'; EM_Coupons_Admin::admin_meta_box($EM_Event); }