diff --git a/assets/css/sportspress.css b/assets/css/sportspress.css index 0ec66c6d..1b580ce0 100644 --- a/assets/css/sportspress.css +++ b/assets/css/sportspress.css @@ -203,7 +203,8 @@ line-height: 2em; } .sp-player-list .data-name .player-photo, -.sp-player-list .data-name .player-flag { +.sp-player-list .data-name .player-flag, +.sp-player-list .data-team .team-logo { width: 2em; height: 2em; margin-right: 0.5em; @@ -212,7 +213,8 @@ text-align: center; } .sp-player-list .data-name .player-photo img, -.sp-player-list .data-name .player-flag img { +.sp-player-list .data-name .player-flag img, +.sp-player-list .data-team .team-logo img { width: auto; height: auto; max-width: 2em; diff --git a/modules/sportspress-player-lists.php b/modules/sportspress-player-lists.php index 4adecbc6..8d3ab8bb 100644 --- a/modules/sportspress-player-lists.php +++ b/modules/sportspress-player-lists.php @@ -266,6 +266,14 @@ class SportsPress_Player_Lists { 'type' => 'checkbox', 'checkboxgroup' => 'end', ), + + array( + 'title' => __( 'Teeams', 'sportspress' ), + 'desc' => __( 'Display Teams Logos', 'sportspress' ), + 'id' => 'sportspress_list_show_logos', + 'default' => 'no', + 'type' => 'checkbox', + ), array( 'title' => __( 'Pagination', 'sportspress' ), diff --git a/templates/player-list.php b/templates/player-list.php index 46fac369..c9f5b637 100644 --- a/templates/player-list.php +++ b/templates/player-list.php @@ -22,6 +22,7 @@ $defaults = array( 'show_title' => get_option( 'sportspress_list_show_title', 'yes' ) == 'yes' ? true : false, 'show_player_photo' => get_option( 'sportspress_list_show_photos', 'no' ) == 'yes' ? true : false, 'show_player_flag' => get_option( 'sportspress_list_show_flags', 'no' ) == 'yes' ? true : false, + 'show_teams_logo' => get_option( 'sportspress_list_show_logos', 'no' ) == 'yes' ? true : false, 'link_posts' => get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false, 'link_teams' => get_option( 'sportspress_link_teams', 'no' ) == 'yes' ? true : false, 'responsive' => get_option( 'sportspress_enable_responsive_tables', 'no' ) == 'yes' ? true : false, @@ -193,8 +194,12 @@ foreach ( $groups as $group ): $tbody .= '