Add Layout Selection and modify the Event Filtering
This commit is contained in:
@@ -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' )
|
||||
|
||||
Reference in New Issue
Block a user