Don't show minutes in box score by default
This commit is contained in:
@@ -22,7 +22,7 @@ class SP_Meta_Box_Event_Performance {
|
||||
$event = new SP_Event( $post );
|
||||
list( $labels, $columns, $stats, $teams, $formats, $order, $timed ) = $event->performance( true );
|
||||
|
||||
if ( 'yes' == get_option( 'sportspress_event_performance_show_minutes', 'yes' ) )
|
||||
if ( 'yes' == get_option( 'sportspress_event_performance_show_minutes', 'no' ) )
|
||||
$timeline = $event->timeline( true );
|
||||
else
|
||||
$timeline = false;
|
||||
|
||||
@@ -388,7 +388,7 @@ class SP_Settings_Events extends SP_Settings_Page {
|
||||
array(
|
||||
'desc' => __( 'Minutes', 'sportspress' ),
|
||||
'id' => 'sportspress_event_performance_show_minutes',
|
||||
'default' => 'yes',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
'checkboxgroup' => 'end',
|
||||
),
|
||||
|
||||
@@ -217,7 +217,7 @@ class SP_Event extends SP_Custom_Post{
|
||||
endif;
|
||||
|
||||
// Add minutes to box score values
|
||||
if ( in_array( 'number', $formats ) && 'yes' == get_option( 'sportspress_event_performance_show_minutes', 'yes' ) ):
|
||||
if ( in_array( 'number', $formats ) && 'yes' == get_option( 'sportspress_event_performance_show_minutes', 'no' ) ):
|
||||
$timeline = $this->timeline();
|
||||
if ( ! empty( $timeline ) ):
|
||||
foreach ( $performance as $team => $players ):
|
||||
|
||||
@@ -14,7 +14,7 @@ $show_players = get_option( 'sportspress_event_show_players', 'yes' ) === 'yes'
|
||||
$show_staff = get_option( 'sportspress_event_show_staff', 'yes' ) === 'yes' ? true : false;
|
||||
$show_total = get_option( 'sportspress_event_show_total', 'yes' ) === 'yes' ? true : false;
|
||||
$show_numbers = get_option( 'sportspress_event_show_player_numbers', 'yes' ) === 'yes' ? true : false;
|
||||
$show_minutes = get_option( 'sportspress_event_performance_show_minutes', 'yes' ) === 'yes' ? true : false;
|
||||
$show_minutes = get_option( 'sportspress_event_performance_show_minutes', 'no' ) === 'yes' ? true : false;
|
||||
$sections = get_option( 'sportspress_event_performance_sections', -1 );
|
||||
$abbreviate_teams = get_option( 'sportspress_abbreviate_teams', 'yes' ) === 'yes' ? true : false;
|
||||
$reverse_teams = get_option( 'sportspress_event_reverse_teams', 'no' ) === 'yes' ? true : false;
|
||||
|
||||
Reference in New Issue
Block a user