From f685193c407b13d13037199e600ac23fc772c893 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Mon, 13 Mar 2017 12:08:05 +1100 Subject: [PATCH] Fix tab spacing --- modules/sportspress-user-registration.php | 198 +++++++++++----------- 1 file changed, 99 insertions(+), 99 deletions(-) diff --git a/modules/sportspress-user-registration.php b/modules/sportspress-user-registration.php index 12882485..7adc85fa 100644 --- a/modules/sportspress-user-registration.php +++ b/modules/sportspress-user-registration.php @@ -17,123 +17,123 @@ if ( ! class_exists( 'SportsPress_User_Registration' ) ) : * Main SportsPress User Registration Class * * @class SportsPress_User_Registration - * @version 2.2 + * @version 2.2 */ class SportsPress_User_Registration { - /** - * Constructor - */ - public function __construct() { - // Define constants - $this->define_constants(); + /** + * Constructor + */ + public function __construct() { + // Define constants + $this->define_constants(); - // Hooks - add_filter( 'sportspress_player_options', array( $this, 'add_player_options' ) ); - add_action( 'register_form', array( $this, 'register_form' ) ); - add_action( 'user_register', array( $this, 'user_register' ) ); - } + // Hooks + add_filter( 'sportspress_player_options', array( $this, 'add_player_options' ) ); + add_action( 'register_form', array( $this, 'register_form' ) ); + add_action( 'user_register', array( $this, 'user_register' ) ); + } - /** - * Define constants. - */ - private function define_constants() { - if ( !defined( 'SP_USER_REGISTRATION_VERSION' ) ) - define( 'SP_USER_REGISTRATION_VERSION', '2.2' ); + /** + * Define constants. + */ + private function define_constants() { + if ( !defined( 'SP_USER_REGISTRATION_VERSION' ) ) + define( 'SP_USER_REGISTRATION_VERSION', '2.2' ); - if ( !defined( 'SP_USER_REGISTRATION_URL' ) ) - define( 'SP_USER_REGISTRATION_URL', plugin_dir_url( __FILE__ ) ); + if ( !defined( 'SP_USER_REGISTRATION_URL' ) ) + define( 'SP_USER_REGISTRATION_URL', plugin_dir_url( __FILE__ ) ); - if ( !defined( 'SP_USER_REGISTRATION_DIR' ) ) - define( 'SP_USER_REGISTRATION_DIR', plugin_dir_path( __FILE__ ) ); - } + if ( !defined( 'SP_USER_REGISTRATION_DIR' ) ) + define( 'SP_USER_REGISTRATION_DIR', plugin_dir_path( __FILE__ ) ); + } - /** - * Add options to player settings page. - * - * @return array - */ - public function add_player_options( $options ) { - $options = array_merge( $options, array( - array( - 'title' => __( 'User Registration', 'sportspress' ), - 'desc' => __( 'Add name fields to signup form', 'sportspress' ), - 'id' => 'sportspress_registration_name_inputs', - 'default' => 'yes', - 'type' => 'checkbox', - 'checkboxgroup' => 'start', - ), + /** + * Add options to player settings page. + * + * @return array + */ + public function add_player_options( $options ) { + $options = array_merge( $options, array( + array( + 'title' => __( 'User Registration', 'sportspress' ), + 'desc' => __( 'Add name fields to signup form', 'sportspress' ), + 'id' => 'sportspress_registration_name_inputs', + 'default' => 'yes', + 'type' => 'checkbox', + 'checkboxgroup' => 'start', + ), - array( - 'desc' => __( 'Create player profiles for new users', 'sportspress' ), - 'id' => 'sportspress_registration_add_player', - 'default' => 'yes', - 'type' => 'checkbox', - 'checkboxgroup' => 'end', - ), - ) ); + array( + 'desc' => __( 'Create player profiles for new users', 'sportspress' ), + 'id' => 'sportspress_registration_add_player', + 'default' => 'yes', + 'type' => 'checkbox', + 'checkboxgroup' => 'end', + ), + ) ); - return $options; - } + return $options; + } - /** - * Add name fields to user registration form. - */ - public static function register_form() { - if ( 'yes' === get_option( 'sportspress_registration_name_inputs', 'yes' ) ) { - $first_name = ( ! empty( $_POST['first_name'] ) ) ? trim( $_POST['first_name'] ) : ''; - $last_name = ( ! empty( $_POST['last_name'] ) ) ? trim( $_POST['last_name'] ) : ''; - ?> -

- -

+ /** + * Add name fields to user registration form. + */ + public static function register_form() { + if ( 'yes' === get_option( 'sportspress_registration_name_inputs', 'yes' ) ) { + $first_name = ( ! empty( $_POST['first_name'] ) ) ? trim( $_POST['first_name'] ) : ''; + $last_name = ( ! empty( $_POST['last_name'] ) ) ? trim( $_POST['last_name'] ) : ''; + ?> +

+ +

-

- -

- + +

+