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

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