Merge pull request #279 from kadimi/patch-15
Add filter for league in teams event lists
This commit is contained in:
@@ -16,6 +16,14 @@ $format = get_option( 'sportspress_team_events_format', 'blocks' );
|
||||
if ( 'calendar' === $format )
|
||||
sp_get_template( 'event-calendar.php', array( 'team' => $id ) );
|
||||
elseif ( 'list' === $format )
|
||||
sp_get_template( 'event-list.php', array( 'team' => $id, 'order' => 'DESC', 'title_format' => 'homeaway', 'time_format' => 'separate', 'columns' => array( 'event', 'time', 'results' ) ) );
|
||||
sp_get_template( 'event-list.php', 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',
|
||||
) );
|
||||
else
|
||||
sp_get_template( 'event-fixtures-results.php', array( 'team' => $id ) );
|
||||
|
||||
Reference in New Issue
Block a user