Add option to display full time in event details

This commit is contained in:
Brian Miyaji
2016-09-01 22:40:56 +10:00
parent 12ce980821
commit 9fd6ed0d51
2 changed files with 19 additions and 3 deletions

View File

@@ -45,6 +45,14 @@ if ( 'yes' === get_option( 'sportspress_event_show_day', 'yes' ) ) {
}
}
if ( 'yes' === get_option( 'sportspress_event_show_full_time', 'yes' ) ) {
$full_time = get_post_meta( $id, 'sp_minutes', true );
if ( '' === $full_time ) {
$full_time = get_option( 'sportspress_minutes', 90 );
}
$data[ __( 'Full Time', 'sportspress' ) ] = $full_time . '\'';
}
$data = apply_filters( 'sportspress_event_details', $data, $id );
if ( ! sizeof( $data ) ) return;