diff --git a/includes/admin/settings/class-sp-settings-events.php b/includes/admin/settings/class-sp-settings-events.php index c3c9db2a..e47e1061 100644 --- a/includes/admin/settings/class-sp-settings-events.php +++ b/includes/admin/settings/class-sp-settings-events.php @@ -246,6 +246,14 @@ class SP_Settings_Events extends SP_Settings_Page { 'id' => 'sportspress_event_blocks_show_season', 'default' => 'no', 'type' => 'checkbox', + 'checkboxgroup' => '', + ), + + array( + 'desc' => __( 'Display venue', 'sportspress' ), + 'id' => 'sportspress_event_blocks_show_venue', + 'default' => 'no', + 'type' => 'checkbox', 'checkboxgroup' => 'end', ), diff --git a/templates/event-blocks.php b/templates/event-blocks.php index d8edbfa0..a44947d2 100644 --- a/templates/event-blocks.php +++ b/templates/event-blocks.php @@ -25,6 +25,7 @@ $defaults = array( 'show_all_events_link' => false, 'show_league' => get_option( 'sportspress_event_blocks_show_league', 'no' ) == 'yes' ? true : false, 'show_season' => get_option( 'sportspress_event_blocks_show_season', 'no' ) == 'yes' ? true : false, + 'show_venue' => get_option( 'sportspress_event_blocks_show_venue', 'no' ) == 'yes' ? true : false, ); extract( $defaults, EXTR_SKIP ); @@ -114,6 +115,9 @@ if ( $id ) {