From 104cfcf99b4743ae0a8898a80a6c1b7797e0c40e Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sat, 24 Jan 2015 12:46:48 +1100 Subject: [PATCH] Countdown widget should honor event link option --- templates/countdown.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/countdown.php b/templates/countdown.php index 74afb8a8..fc55d1e2 100644 --- a/templates/countdown.php +++ b/templates/countdown.php @@ -13,6 +13,7 @@ $defaults = array( 'team' => null, 'id' => null, 'live' => get_option( 'sportspress_enable_live_countdowns', 'yes' ) == 'yes' ? true : false, + 'link_events' => get_option( 'sportspress_link_events', 'yes' ) == 'yes' ? true : false, ); if ( isset( $id ) ): @@ -27,10 +28,13 @@ endif; extract( $defaults, EXTR_SKIP ); if ( ! isset( $post ) ) return; + +$title = $post->post_title; +if ( $link_events ) $title = '' . $title . ''; ?>
-

post_title; ?>

+

ID, 'sp_venue' );