diff --git a/modules/sportspress-calendars.php b/modules/sportspress-calendars.php index afdacd03..f13dc71e 100644 --- a/modules/sportspress-calendars.php +++ b/modules/sportspress-calendars.php @@ -191,6 +191,14 @@ class SportsPress_Calendars { ), apply_filters( 'sportspress_event_list_options', array( + array( + 'title' => __( 'Title', 'sportspress' ), + 'desc' => __( 'Display calendar title', 'sportspress' ), + 'id' => 'sportspress_event_list_show_title', + 'default' => 'yes', + 'type' => 'checkbox', + ), + array( 'title' => __( 'Teams', 'sportspress' ), 'desc' => __( 'Display logos', 'sportspress' ), diff --git a/templates/event-list.php b/templates/event-list.php index 311e6b96..18614718 100644 --- a/templates/event-list.php +++ b/templates/event-list.php @@ -27,6 +27,7 @@ $defaults = array( 'order' => 'default', 'columns' => null, 'show_all_events_link' => false, + 'show_title' => get_option( 'sportspress_event_list_show_title', 'yes' ) == 'yes' ? true : false, ); extract( $defaults, EXTR_SKIP ); @@ -54,7 +55,7 @@ if ( isset( $columns ) ): $usecolumns = explode( ',', $columns ); endif; -if ( $id ) { +if ( $show_title && $id ) { echo '