Show recent events first in player and team profiles

This commit is contained in:
Brian Miyaji
2016-12-19 21:24:53 +11:00
parent 8771fe192e
commit f4f1ce79a4
2 changed files with 2 additions and 2 deletions

View File

@@ -16,6 +16,6 @@ $format = get_option( 'sportspress_player_events_format', 'blocks' );
if ( 'calendar' === $format )
sp_get_template( 'event-calendar.php', array( 'player' => $id ) );
elseif ( 'list' === $format )
sp_get_template( 'event-list.php', array( 'player' => $id, 'title_format' => 'homeaway', 'time_format' => 'separate', 'columns' => array( 'event', 'time', 'results' ) ) );
sp_get_template( 'event-list.php', array( 'player' => $id, 'order' => 'DESC', 'title_format' => 'homeaway', 'time_format' => 'separate', 'columns' => array( 'event', 'time', 'results' ) ) );
else
sp_get_template( 'event-fixtures-results.php', array( 'player' => $id ) );

View File

@@ -16,6 +16,6 @@ $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, 'title_format' => 'homeaway', 'time_format' => 'separate', 'columns' => array( 'event', 'time', 'results' ) ) );
sp_get_template( 'event-list.php', array( 'team' => $id, 'order' => 'DESC', 'title_format' => 'homeaway', 'time_format' => 'separate', 'columns' => array( 'event', 'time', 'results' ) ) );
else
sp_get_template( 'event-fixtures-results.php', array( 'team' => $id ) );