Link event blocks team logos to team pages

This commit is contained in:
Brian Miyaji
2014-05-12 11:22:54 +10:00
parent 0463c61dee
commit 1f9ab06757

View File

@@ -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 );