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>

View File

@@ -4,7 +4,7 @@
*
* @author ThemeBoy
* @package SportsPress/Templates
* @version 1.3
* @version 1.3.2
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -214,7 +214,6 @@ if ( is_array( $teams ) ):
</table>
</div>
</div>
<br>
<?php
endforeach;
endif;

View File

@@ -103,5 +103,4 @@ endif;
?>
<div class="sp-template sp-template-event-results">
<?php echo $output; ?>
</div>
<br>
</div>

View File

@@ -56,5 +56,4 @@ foreach( $venues as $venue ):
</div>
<?php
endforeach;
?>
<br>
?>

View File

@@ -23,5 +23,4 @@ if ( $video_url ):
</div>
<?php
endif;
?>
<br>
?>

View File

@@ -14,6 +14,7 @@ if ( ! isset( $id ) )
$defaults = array(
'show_nationality_flags' => get_option( 'sportspress_player_show_flags', 'yes' ) == 'yes' ? true : false,
'link_teams' => get_option( 'sportspress_link_teams', 'no' ) == 'yes' ? true : false,
);
extract( $defaults, EXTR_SKIP );
@@ -49,7 +50,7 @@ if ( $current_teams ):
foreach ( $current_teams as $team ):
$teams[] = '<a href="' . get_post_permalink( $team ) . '">' . get_the_title( $team ) . '</a>';
endforeach;
$label = _n( 'Current Team', 'Current Teams', count( $teams ) );
$label = _n( 'Current Team', 'Current Teams', count( $teams ), 'sportspress' );
$data[ $label ] = implode( ', ', $teams );
endif;
@@ -71,6 +72,5 @@ foreach( $data as $label => $value ):
endforeach;
$output .= '</dl></div>';
?>
<?php echo $output; ?>
<br>
echo $output;

View File

@@ -67,5 +67,3 @@ if ( is_array( $leagues ) ):
<?php
endforeach;
endif;
?>
<br>

View File

@@ -56,5 +56,4 @@ $output .= '</dl></div>';
?>
<div class="sp-template sp-template-staff-details">
<?php echo $output; ?>
</div>
<br>
</div>

View File

@@ -31,5 +31,3 @@ foreach ( $lists as $list ):
else
sp_get_template( 'player-list.php', array( 'id' => $id ) );
endforeach;
?>
<br>

View File

@@ -26,5 +26,3 @@ foreach ( $tables as $table ):
sp_get_template( 'league-table.php', array( 'id' => $table->ID, 'highlight' => $id ) );
endforeach;
?>
<br>