From 9f60c87231ccee1fdff213b3108385fff4bab09d Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Mon, 5 May 2014 17:16:43 +1000 Subject: [PATCH] Enable displaying league in countdown --- templates/countdown.php | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/templates/countdown.php b/templates/countdown.php index 9fa426b5..76c04594 100644 --- a/templates/countdown.php +++ b/templates/countdown.php @@ -25,18 +25,23 @@ endif; extract( $defaults, EXTR_SKIP ); -$output = ''; - -if ( isset( $post ) ): - $output .= '
'; - $output .= '

' . $post->post_title . '

'; +if ( ! isset( $post ) ) return; +?> +
+

post_title; ?>

+ ID, 'sp_venue' ); + endif; if ( isset( $show_league ) && $show_league ): $leagues = get_the_terms( $post->ID, 'sp_league' ); if ( $leagues ): foreach( $leagues as $league ): $term = get_term( $league->term_id, 'sp_league' ); - $output .= '
' . $term->name . '
'; + ?> +
name; ?>
+ post_date ); $interval = date_diff( $now, $date ); - - $output .= '

'; - - $output .= '
'; -else: - return false; -endif; - -echo apply_filters( 'sportspress_countdown', $output ); + ?> +

+