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