Add Countdown Timer widget

This commit is contained in:
Brian Miyaji
2014-02-03 09:04:23 +11:00
parent 39d7bbac7f
commit fd859eef3d
9 changed files with 268 additions and 56 deletions

View File

@@ -13,8 +13,9 @@ if ( !function_exists( 'sportspress_events' ) ) {
$options['posts_per_page'] = $args['number'];
endif;
if ( isset( $args['status'] ) && $args['status'] == 'any' || $args['status'] == 'scheduled' ):
$options['post_status'] = array( 'publish', 'future' );
if ( isset( $args['status'] ) && $args['status'] == 'future' ):
$options['post_status'] = array( 'future' );
$options['order'] = 'ASC';
endif;
if ( isset( $args['league'] ) ):