diff --git a/assets/css/sportspress.css b/assets/css/sportspress.css index 3d3f772c..3372d94d 100644 --- a/assets/css/sportspress.css +++ b/assets/css/sportspress.css @@ -493,6 +493,10 @@ } /* Countdowns */ +.sp-template-countdown .event-image img { + display: block; + margin: 0 auto; +} .sp-template-countdown .event-name { clear: both; overflow: hidden; diff --git a/modules/sportspress-countdowns.php b/modules/sportspress-countdowns.php index d1b42872..51585905 100644 --- a/modules/sportspress-countdowns.php +++ b/modules/sportspress-countdowns.php @@ -82,18 +82,19 @@ class SportsPress_Countdowns { apply_filters( 'sportspress_countdown_options', array( array( - 'title' => __( 'Teams', 'sportspress' ), - 'desc' => __( 'Display logos', 'sportspress' ), + 'title' => __( 'Display', 'sportspress' ), + 'desc' => __( 'Logos', 'sportspress' ), 'id' => 'sportspress_countdown_show_logos', 'default' => 'no', 'type' => 'checkbox', + 'checkboxgroup' => 'start', ), array( - 'title' => __( 'Featured Image', 'sportspress' ), - 'desc' => __( 'Display featured image of event', 'sportspress' ), - 'id' => 'sportspress_countdown_show_featured_image', + 'desc' => __( 'Featured Image', 'sportspress' ), + 'id' => 'sportspress_countdown_show_thumbnail', 'default' => 'no', 'type' => 'checkbox', + 'checkboxgroup' => 'end', ), )), diff --git a/templates/countdown.php b/templates/countdown.php index 194b9336..e8a5ccfa 100644 --- a/templates/countdown.php +++ b/templates/countdown.php @@ -21,7 +21,7 @@ $defaults = array( '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, + 'show_thumbnail' => get_option( 'sportspress_countdown_show_thumbnail', 'no' ) == 'yes' ? true : false, ); if ( isset( $id ) ): $post = get_post( $id ); @@ -77,10 +77,10 @@ if ( $link_events ) $title = '
-

- +
+