Add Layout Selection and modify the Event Filtering

This commit is contained in:
savvasha
2018-09-07 11:48:42 +03:00
parent cfc62c93c4
commit 013383fb2d
4 changed files with 78 additions and 8 deletions

View File

@@ -25,6 +25,8 @@ $defaults = array(
'season' => null,
'venue' => null,
'team' => null,
'teams_past' => null,
'date_before' => null,
'player' => null,
'number' => -1,
'show_team_logo' => get_option( 'sportspress_event_list_show_logos', 'no' ) == 'yes' ? true : false,
@@ -71,6 +73,10 @@ if ( $venue )
$calendar->venue = $venue;
if ( $team )
$calendar->team = $team;
if ( $teams_past )
$calendar->teams_past = $teams_past;
if ( $date_before )
$calendar->date_before = $date_before;
if ( $player )
$calendar->player = $player;
if ( $order != 'default' )