$id ) ); } elseif ( 'list' === $format ) { $args = array( 'team' => $id, 'league' => apply_filters( 'sp_team_events_league', 0 ), 'season' => apply_filters( 'sp_team_events_season', 0 ), 'title_format' => 'homeaway', 'time_format' => 'separate', 'columns' => array( 'event', 'time', 'results' ), 'order' => 'DESC', ); $args = apply_filters( 'sp_team_events_list_args', $args ); sp_get_template( 'event-list.php', $args ); } else { sp_get_template( 'event-fixtures-results.php', array( 'team' => $id ) ); }