Do not require team logos in event
This commit is contained in:
@@ -29,8 +29,11 @@ if ( $teams ):
|
||||
$team_logos = array();
|
||||
$i = 0;
|
||||
foreach ( $teams as $team ):
|
||||
if ( ! has_post_thumbnail( $team ) ) continue;
|
||||
$logo = get_the_post_thumbnail( $team, 'sportspress-fit-icon' );
|
||||
if ( ! has_post_thumbnail( $team ) ) {
|
||||
$logo = '';
|
||||
} else {
|
||||
$logo = get_the_post_thumbnail( $team, 'sportspress-fit-icon' );
|
||||
}
|
||||
|
||||
$alt = sizeof( $teams ) == 2 && $i % 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user