add the class with team index to event list
This commit is contained in:
@@ -253,6 +253,7 @@ $identifier = uniqid( 'eventlist_' );
|
||||
$reverse_teams = get_option( 'sportspress_event_reverse_teams', 'no' ) === 'yes' ? true : false;
|
||||
if ( $reverse_teams ) {
|
||||
$main_results = array_reverse( $main_results, true );
|
||||
$teams = array_reverse( $teams, true );
|
||||
}
|
||||
|
||||
$teams_output = '';
|
||||
@@ -282,9 +283,9 @@ $identifier = uniqid( 'eventlist_' );
|
||||
endif;
|
||||
|
||||
if ( $link_teams ) :
|
||||
$team_output = '<a href="' . get_post_permalink( $team ) . '" itemprop="url">' . $name . '</a>';
|
||||
$team_output = '<span class="team-'.$t .'"><a href="' . get_post_permalink( $team ) . '" itemprop="url">' . $name . '</a></span>';
|
||||
else :
|
||||
$team_output = $name;
|
||||
$team_output = '<span class="team-'.$t .'">'.$name.'</span>';
|
||||
endif;
|
||||
|
||||
$team_result = sp_array_value( $main_results, $team, null );
|
||||
|
||||
Reference in New Issue
Block a user