Display delimiter between event team logos

This commit is contained in:
Brian Miyaji
2014-05-31 13:19:14 +10:00
parent 68436b5c9c
commit 3bf0c0fbb8
2 changed files with 10 additions and 1 deletions

View File

@@ -6,6 +6,12 @@
overflow: visible;
}
/* Title */
.sp-event-teams {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
/* Data Tables */
.sp-scrollable-table-wrapper {
overflow: auto;

View File

@@ -108,9 +108,12 @@ function sportspress_the_title( $title, $id ) {
$teams = get_post_meta( $id, 'sp_team' );
if ( $teams ):
$title .= '<div class="sp-event-teams">';
$delimiter = get_option( 'sportspress_event_teams_delimiter', 'vs' );
$team_logos = array();
foreach ( $teams as $team ):
$title .= get_the_post_thumbnail( $team, 'sportspress-fit-icon' ) . ' ';
$team_logos[] = get_the_post_thumbnail( $team, 'sportspress-fit-icon' );
endforeach;
$title .= implode( ' ' . $delimiter . ' ', $team_logos );
$title .= '</div>';
endif;
endif;