Don't show minutes in box score by default

This commit is contained in:
Brian Miyaji
2017-01-08 18:25:11 +11:00
parent b61d2e1cc8
commit 9451293b94
4 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -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',
),

View File

@@ -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 ):