Add offense and defense option to player performance

This commit is contained in:
Brian Miyaji
2016-02-17 01:58:46 +11:00
parent ab30b88785
commit 3dfb3f9f92
8 changed files with 305 additions and 221 deletions

View File

@@ -371,19 +371,15 @@ class SP_Settings_Events extends SP_Settings_Page {
),
array(
'desc' => __( 'Split players by team', 'sportspress' ),
'id' => 'sportspress_event_split_players_by_team',
'default' => 'yes',
'type' => 'checkbox',
'checkboxgroup' => '',
),
array(
'desc' => __( 'Split players by position', 'sportspress' ),
'id' => 'sportspress_event_split_players_by_position',
'default' => 'no',
'type' => 'checkbox',
'checkboxgroup' => 'end',
'title' => __( 'Performance', 'sportspress' ),
'id' => 'sportspress_event_performance_sections',
'default' => -1,
'type' => 'radio',
'options' => array(
-1 => __( 'Combined', 'sportspress' ),
0 => __( 'Offense', 'sportspress' ) . ' → ' . __( 'Defense', 'sportspress' ),
1 => __( 'Defense', 'sportspress' ) . ' → ' . __( 'Offense', 'sportspress' ),
),
),
array(