Adjust option for box score minutes
This commit is contained in:
@@ -22,7 +22,7 @@ class SP_Meta_Box_Event_Performance {
|
|||||||
$event = new SP_Event( $post );
|
$event = new SP_Event( $post );
|
||||||
list( $labels, $columns, $stats, $teams, $formats, $order ) = $event->performance( true );
|
list( $labels, $columns, $stats, $teams, $formats, $order ) = $event->performance( true );
|
||||||
|
|
||||||
if ( 'yes' == get_option( 'sportspress_event_performance_show_time', 'yes' ) )
|
if ( 'yes' == get_option( 'sportspress_event_performance_show_minutes', 'yes' ) )
|
||||||
$timeline = $event->timeline( true );
|
$timeline = $event->timeline( true );
|
||||||
else
|
else
|
||||||
$timeline = false;
|
$timeline = false;
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ class SP_Event extends SP_Custom_Post{
|
|||||||
unset( $labels['number'] );
|
unset( $labels['number'] );
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
if ( 'yes' == get_option( 'sportspress_event_performance_show_time', 'yes' ) ):
|
if ( 'yes' == get_option( 'sportspress_event_performance_show_minutes', 'yes' ) ):
|
||||||
$timeline = $this->timeline();
|
$timeline = $this->timeline();
|
||||||
if ( ! empty( $timeline ) ):
|
if ( ! empty( $timeline ) ):
|
||||||
foreach ( $performance as $team => $players ):
|
foreach ( $performance as $team => $players ):
|
||||||
|
|||||||
@@ -407,7 +407,7 @@ class SP_Install {
|
|||||||
|
|
||||||
if ( version_compare( $version, '2.1', '<' ) ) {
|
if ( version_compare( $version, '2.1', '<' ) ) {
|
||||||
update_option( 'sportspress_player_show_selector', 'no' );
|
update_option( 'sportspress_player_show_selector', 'no' );
|
||||||
update_option( 'sportspress_event_performance_show_time', 'no' );
|
update_option( 'sportspress_event_performance_show_minutes', 'no' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user