Add current team indicator in player admin screen
This commit is contained in:
@@ -69,12 +69,15 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) {
|
|||||||
echo '<br>';
|
echo '<br>';
|
||||||
endforeach;
|
endforeach;
|
||||||
elseif ( $post_type == 'sp_player' ):
|
elseif ( $post_type == 'sp_player' ):
|
||||||
$results = get_post_meta( $post_id, 'sp_results', true );
|
$current_team = get_post_meta( $post_id, 'sp_current_team', true );
|
||||||
foreach( $teams as $team_id ):
|
foreach( $teams as $team_id ):
|
||||||
if ( ! $team_id ) continue;
|
if ( ! $team_id ) continue;
|
||||||
$team = get_post( $team_id );
|
$team = get_post( $team_id );
|
||||||
$outcome_slug = sportspress_array_value( sportspress_array_value( $results, $team_id, null ), 'outcome', null );
|
echo $team->post_title;
|
||||||
echo $team->post_title . '<br>';
|
if ( $team_id == $current_team ):
|
||||||
|
echo ' (' . __( 'Current Team', 'sportspress' ) . ')';
|
||||||
|
endif;
|
||||||
|
echo '<br>';
|
||||||
endforeach;
|
endforeach;
|
||||||
else:
|
else:
|
||||||
foreach( $teams as $team_id ):
|
foreach( $teams as $team_id ):
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ Tags: sports, sports journalism, teams, team management, fixtures, results, stan
|
|||||||
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=support@themeboy.com&item_name=Donation+for+SportsPress
|
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=support@themeboy.com&item_name=Donation+for+SportsPress
|
||||||
Requires at least: 3.8
|
Requires at least: 3.8
|
||||||
Tested up to: 3.8.1
|
Tested up to: 3.8.1
|
||||||
Stable tag: 0.2.10
|
Stable tag: 0.3
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||||
|
|
||||||
@@ -94,6 +94,10 @@ SportsPress is currently in beta and is undergoing testing. We are still activel
|
|||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 0.3 =
|
||||||
|
* Feature - Import tool added for importing players from CSV file.
|
||||||
|
* Tweak - Display current team indicator in players admin screen.
|
||||||
|
|
||||||
= 0.2.10 =
|
= 0.2.10 =
|
||||||
* Fix - Team filtering in events, tables, players, and lists.
|
* Fix - Team filtering in events, tables, players, and lists.
|
||||||
* Tweak - Display statistics for all league/season events played in player profiles and player lists.
|
* Tweak - Display statistics for all league/season events played in player profiles and player lists.
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
Plugin Name: SportsPress
|
Plugin Name: SportsPress
|
||||||
Plugin URI: http://themeboy.com/sportspress
|
Plugin URI: http://themeboy.com/sportspress
|
||||||
Description: Manage your club and its players, staff, events, league tables, and player lists.
|
Description: Manage your club and its players, staff, events, league tables, and player lists.
|
||||||
Version: 0.2.10
|
Version: 0.3
|
||||||
Author: ThemeBoy
|
Author: ThemeBoy
|
||||||
Author URI: http://themeboy.com/
|
Author URI: http://themeboy.com/
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
@@ -18,7 +18,7 @@ if ( !function_exists( 'add_action' ) ) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
define( 'SPORTSPRESS_VERSION', '0.2.10' );
|
define( 'SPORTSPRESS_VERSION', '0.3' );
|
||||||
define( 'SPORTSPRESS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
define( 'SPORTSPRESS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
||||||
define( 'SPORTSPRESS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
define( 'SPORTSPRESS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
||||||
define( 'SPORTSPRESS_PLUGIN_FILE', __FILE__ );
|
define( 'SPORTSPRESS_PLUGIN_FILE', __FILE__ );
|
||||||
|
|||||||
Reference in New Issue
Block a user