Merge pull request #232 from d-r-g/event_player_sort

Event Player Checklist Sort Options
This commit is contained in:
Brian Miyaji
2018-01-17 10:19:36 +11:00
committed by GitHub
3 changed files with 76 additions and 8 deletions

View File

@@ -272,6 +272,31 @@ class SP_Settings_Events extends SP_Settings_Page {
array( 'type' => 'sectionend', 'id' => 'event_logo_options' ),
),
array(
array( 'title' => __( 'Players', 'sportspress' ), 'type' => 'title', 'desc' => '', 'id' => 'eventplayer_options' ),
),
apply_filters( 'sportspress_eventplayer_options', array(
array(
'title' => __( 'Player Sorting', 'sportspress' ),
'id' => 'sportspress_event_player_sort',
'default' => 'jersey',
'type' => 'radio',
'options' => array(
'jersey'=> __( 'Jersey (e.g. "33. John Doe")', 'sportspress' ),
'name' => __( 'Name (e.g. "John Doe (33)")', 'sportspress' ),
),
'desc_tip' => _x( 'When editing an event, this determines how the checklist of players are sorted in the Teams metabox. This does not affect the Box Score section.', 'event player sort setting description', 'sportspress' ),
),
) ),
array(
array( 'type' => 'sectionend', 'id' => 'eventplayer_options' ),
),
array(
array( 'title' => __( 'Event Results', 'sportspress' ), 'type' => 'title', 'desc' => '', 'id' => 'result_options' ),
),