Add event result filters

This commit is contained in:
Brian Miyaji
2015-10-07 01:14:12 +11:00
parent cf16de8d30
commit f0b30f4048
6 changed files with 20 additions and 30 deletions

View File

@@ -48,10 +48,12 @@ if ( $teams ):
// Add result
if ( $show_results ) {
$team_result = array_shift( $results );
$team_result = apply_filters( 'sportspress_event_logos_team_result', $team_result, $id, $team );
if ( $alt ) {
$logo = '<strong class="sp-team-result">' . array_shift( $results ) . '</strong> ' . $logo;
$logo = '<strong class="sp-team-result">' . $team_result . '</strong> ' . $logo;
} else {
$logo .= ' <strong class="sp-team-result">' . array_shift( $results ) . '</strong>';
$logo .= ' <strong class="sp-team-result">' . $team_result . '</strong>';
}
}