diff --git a/modules/sportspress-countdowns.php b/modules/sportspress-countdowns.php index 0c408efec..d1b42872e 100644 --- a/modules/sportspress-countdowns.php +++ b/modules/sportspress-countdowns.php @@ -88,6 +88,13 @@ public function add_settings( $settings ) { 'default' => 'no', 'type' => 'checkbox', ), + array( + 'title' => __( 'Featured Image', 'sportspress' ), + 'desc' => __( 'Display featured image of event', 'sportspress' ), + 'id' => 'sportspress_countdown_show_featured_image', + 'default' => 'no', + 'type' => 'checkbox', + ), )), array( diff --git a/templates/countdown.php b/templates/countdown.php index e307796ce..194b9336d 100644 --- a/templates/countdown.php +++ b/templates/countdown.php @@ -21,6 +21,7 @@ 'link_teams' => get_option( 'sportspress_link_teams', 'no' ) == 'yes' ? true : false, 'link_venues' => get_option( 'sportspress_link_venues', 'no' ) == 'yes' ? true : false, 'show_logos' => get_option( 'sportspress_countdown_show_logos', 'no' ) == 'yes' ? true : false, + 'show_feat_image' => get_option( 'sportspress_countdown_show_featured_image', 'no' ) == 'yes' ? true : false, ); if ( isset( $id ) ): $post = get_post( $id ); @@ -75,6 +76,13 @@ ?>
+ +

+ +

+