Add tiebreaker setting for head-to-head league table sorting

This commit is contained in:
Brian Miyaji
2016-12-09 18:32:54 +11:00
parent 45b8424c0b
commit 83b5756dd0
2 changed files with 136 additions and 46 deletions

View File

@@ -276,6 +276,17 @@ class SportsPress_League_Tables {
'default' => 'no',
'type' => 'checkbox',
),
array(
'title' => __( 'Tiebreaker', 'sportspress' ),
'id' => 'sportspress_table_tiebreaker',
'default' => 'none',
'type' => 'select',
'options' => array(
'none' => __( 'None', 'sportspress' ),
'h2h' => __( 'Head to head', 'sportspress' ),
),
),
) ),
array(