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 .= '
'; + foreach ( $teams as $team ): + $title .= get_the_post_thumbnail( $team, 'sportspress-fit-icon' ) . ' '; + endforeach; + $title .= '
'; + endif; endif; endif; return $title; diff --git a/templates/player-gallery.php b/templates/player-gallery.php index 7404a2aa..9361d94a 100644 --- a/templates/player-gallery.php +++ b/templates/player-gallery.php @@ -45,7 +45,6 @@ $float = is_rtl() ? 'right' : 'left'; $selector = 'sp-player-gallery-' . $id; $list = new SP_Player_List( $id ); -$list->columns = $performance; $data = $list->data(); // Remove the first row to leave us with the actual data