Link event blocks team logos to team pages
This commit is contained in:
@@ -57,7 +57,7 @@ if ( isset( $columns ) )
|
|||||||
if ( ! has_post_thumbnail ( $team ) )
|
if ( ! has_post_thumbnail ( $team ) )
|
||||||
continue;
|
continue;
|
||||||
$j++;
|
$j++;
|
||||||
$logo = get_the_post_thumbnail( $team, 'sportspress-fit-icon', array( 'class' => 'team-logo logo-' . ( $j % 2 ? 'odd' : 'even' ) ) );
|
$logo = '<a href="' . get_post_permalink( $team ) . '" title="' . get_the_title( $team ) . '">' . get_the_post_thumbnail( $team, 'sportspress-fit-icon', array( 'class' => 'team-logo logo-' . ( $j % 2 ? 'odd' : 'even' ) ) ) . '</a>';
|
||||||
$logos[] = $logo;
|
$logos[] = $logo;
|
||||||
$team_results = sp_array_value( $results, $team, null );
|
$team_results = sp_array_value( $results, $team, null );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user