Do not require team logos in event

This commit is contained in:
ThemeBoy
2015-10-21 14:18:06 +09:00
parent c474037ecb
commit fa4ae22a17

View File

@@ -29,8 +29,11 @@ if ( $teams ):
$team_logos = array();
$i = 0;
foreach ( $teams as $team ):
if ( ! has_post_thumbnail( $team ) ) continue;
if ( ! has_post_thumbnail( $team ) ) {
$logo = '';
} else {
$logo = get_the_post_thumbnail( $team, 'sportspress-fit-icon' );
}
$alt = sizeof( $teams ) == 2 && $i % 2;