data( $league_id, $admin ); } } if ( ! function_exists( 'sp_get_league_table_data' ) ) { function sp_get_league_table_data( $post_id, $admin = false ) { $table = new SP_League_Table( $post_id ); return $table->data( $admin ); } } if ( ! function_exists( 'sp_get_player_statistics_data' ) ) { function sp_get_player_statistics_data( $post_id, $league_id, $admin = false ) { $list = new SP_Player_List( $post_id ); return $list->data( $league_id, $admin ); } } if ( ! function_exists( 'sp_get_player_list_data' ) ) { function sp_get_player_list_data( $post_id, $admin = false ) { $list = new SP_Player_List( $post_id ); return $list->data( $admin ); } } if ( ! function_exists( 'sp_get_short_name' ) ) { function sp_get_short_name( $post = 0 ) { $abbreviation = sp_get_abbreviation( $post, 'sp_abbreviation', true ); if ( $abbreviation ) { return $abbreviation; } else { return get_the_title( $post ); } } } if ( ! function_exists( 'sp_short_name' ) ) { function sp_short_name( $post = 0 ) { echo wp_kses_post( sp_get_short_name( $post ) ); } } if ( ! function_exists( 'sp_get_team_name' ) ) { function sp_get_team_name( $post = 0, $short = true ) { if ( $short ) { return sp_team_abbreviation( $post ); } else { return get_the_title( $post ); } } }