Merge pull request #305 from ThemeBoy/feature-past-meetings

Feature past meetings
This commit is contained in:
Brian Miyaji
2018-10-12 15:50:44 +11:00
committed by GitHub
4 changed files with 189 additions and 0 deletions

View File

@@ -26,6 +26,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_blocks_show_logos', 'yes' ) == 'yes' ? true : false,
@@ -73,6 +75,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' )

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' )