Remove line break after templates

This commit is contained in:
Brian Miyaji
2014-09-05 22:04:34 +10:00
parent 4fa41fcb59
commit eda0b37a2b
10 changed files with 19 additions and 32 deletions

View File

@@ -15,20 +15,19 @@ if ( ! isset( $id ) )
$scrollable = get_option( 'sportspress_enable_scrollable_tables', 'yes' ) == 'yes' ? true : false;
$date = get_the_time( get_option('date_format'), $id );
$time = get_the_time( get_option('time_format'), $id );
$leagues = get_the_terms( $id, 'sp_league' );
$seasons = get_the_terms( $id, 'sp_season' );
$data = array( __( 'Date', 'sportspress' ) => $date, __( 'Time', 'sportspress' ) => $time );
if ( $leagues ):
$league = array_shift( $leagues );
$data[ __( 'League', 'sportspress' ) ] = $league->name;
endif;
$taxonomies = apply_filters( 'sportspress_event_taxonomies', array( 'sp_league' => null, 'sp_season' => null ) );
if ( $seasons ):
$season = array_shift( $seasons );
$data[ __( 'Season', 'sportspress' ) ] = $season->name;
endif;
foreach ( $taxonomies as $taxonomy => $post_type ):
$terms = get_the_terms( $id, $taxonomy );
if ( $terms ):
$obj = get_taxonomy( $taxonomy );
$term = array_shift( $terms );
$data[ $obj->labels->singular_name ] = $term->name;
endif;
endforeach;
?>
<div class="sp-template sp-template-event-details">
<h4 class="sp-table-caption"><?php _e( 'Details', 'sportspress' ); ?></h4>
@@ -50,5 +49,4 @@ endif;
</tbody>
</table>
</div>
</div>
<br>
</div>