Display player stats per team per league

This commit is contained in:
Takumi
2013-08-06 23:02:18 +10:00
parent b4162f156b
commit d704c6bc1b
3 changed files with 157 additions and 54 deletions

View File

@@ -55,19 +55,28 @@ $sportspress_options = array(
'settings' => array(
'sp_event_team_count' => 2,
'sp_team_stats_columns' => 'P: $played
W: $wins
D: $ties
L: $losses
F: $for
A: $against
GD: $for-$against
PTS: 3$wins+$ties'
W: $wins
D: $ties
L: $losses
F: $for
A: $against
GD: $for-$against
PTS: 3$wins+$ties',
'sp_event_stats_columns' => 'Goals: $statsa
Assists: $statsb
Yellow Cards: $statsc
Red Cards: $statsd',
'sp_player_stats_columns' => 'Attendances: $played
Goals: $statsa
Assists: $statsb
Yellow Cards: $statsc
Red Cards: $statsd',
)
);
foreach( $sportspress_options as $optiongroupkey => $optiongroup ) {
foreach( $optiongroup as $key => $value ) {
if ( get_option( $key ) === false )
//if ( get_option( $key ) === false )
update_option( $key, $value );
}
}