diff --git a/includes/admin/class-sp-admin-welcome.php b/includes/admin/class-sp-admin-welcome.php index 3c4dd5bb..32061d18 100644 --- a/includes/admin/class-sp-admin-welcome.php +++ b/includes/admin/class-sp-admin-welcome.php @@ -236,7 +236,7 @@ class SP_Admin_Welcome {
Translate SportsPress.', 'sportspress' ); ?>
' . $handle . ''; diff --git a/includes/admin/settings/class-sp-settings-events.php b/includes/admin/settings/class-sp-settings-events.php index 96103385..ef7ca5e6 100644 --- a/includes/admin/settings/class-sp-settings-events.php +++ b/includes/admin/settings/class-sp-settings-events.php @@ -56,6 +56,14 @@ class SP_Settings_Events extends SP_Settings_Page { array( 'type' => 'delimiter' ), + array( + 'title' => __( 'Teams', 'sportspress' ), + 'desc' => __( 'Display logos', 'sportspress' ), + 'id' => 'sportspress_event_show_logos', + 'default' => 'yes', + 'type' => 'checkbox', + ), + array( 'title' => __( 'Venue', 'sportspress' ), 'desc' => __( 'Display maps', 'sportspress' ), diff --git a/includes/sp-template-hooks.php b/includes/sp-template-hooks.php index 818ca5f3..181c4255 100644 --- a/includes/sp-template-hooks.php +++ b/includes/sp-template-hooks.php @@ -98,6 +98,15 @@ function sportspress_the_title( $title, $id ) { if ( $role != null ): $title = '' . $role . ' ' . $title; endif; + elseif ( is_singular( 'sp_event' ) && get_option( 'sportspress_event_show_logos', 'yes' ) == 'yes' ): + $teams = get_post_meta( $id, 'sp_team' ); + if ( $teams ): + $title .= '