Change sum to total

This commit is contained in:
Brian Miyaji
2014-02-15 23:48:02 +11:00
parent e800084fc4
commit 83f503cf7f
6 changed files with 95 additions and 64 deletions

View File

@@ -168,12 +168,12 @@ if ( !function_exists( 'sportspress_get_post_calculate' ) ) {
$calculate = get_post_meta ( $post_id, 'sp_calculate', true ); $calculate = get_post_meta ( $post_id, 'sp_calculate', true );
if ( $calculate ): if ( $calculate ):
return str_replace( return str_replace(
array( 'sum', 'average' ), array( 'total', 'average' ),
array( __( 'Sum', 'sportspress' ), __( 'Average', 'sportspress' ) ), array( __( 'Total', 'sportspress' ), __( 'Average', 'sportspress' ) ),
$calculate $calculate
); );
else: else:
return __( 'Sum', 'sportspress' ); return __( 'Total', 'sportspress' );
endif; endif;
} }
} }
@@ -426,7 +426,7 @@ if ( !function_exists( 'sportspress_post_checklist' ) ) {
if ( !function_exists( 'sportspress_calculate_selector' ) ) { if ( !function_exists( 'sportspress_calculate_selector' ) ) {
function sportspress_calculate_selector( $postid, $selected = null ) { function sportspress_calculate_selector( $postid, $selected = null ) {
$options = array( $options = array(
'sum' => __( 'Sum', 'sportspress' ), 'total' => __( 'Total', 'sportspress' ),
'average' => __( 'Average', 'sportspress' ), 'average' => __( 'Average', 'sportspress' ),
); );
?> ?>
@@ -867,7 +867,21 @@ if ( !function_exists( 'sportspress_edit_player_statistics_table' ) ) {
), ),
), ),
); );
sportspress_dropdown_pages( $args ); if ( ! sportspress_dropdown_pages( $args ) ):
$args = array(
'post_type' => 'sp_team',
'name' => 'sp_leagues[' . $league_id . '][' . $div_id . ']',
'show_option_none' => __( '-- Not set --', 'sportspress' ),
'sort_order' => 'ASC',
'sort_column' => 'menu_order',
'selected' => $value,
'values' => 'ID',
'include' => $teams,
);
if ( ! sportspress_dropdown_pages( $args ) ):
echo '—';
endif;
endif;
?> ?>
</td> </td>
<?php foreach( $columns as $column => $label ): <?php foreach( $columns as $column => $label ):
@@ -1997,7 +2011,7 @@ if ( !function_exists( 'sportspress_get_player_list_data' ) ) {
if ( sportspress_array_value( $placeholders[ $player_id ], $statistic->post_name, '' ) == '' ): if ( sportspress_array_value( $placeholders[ $player_id ], $statistic->post_name, '' ) == '' ):
if ( $statistic->post_name == 'eventsplayed' ): if ( $statistic->post_name == 'eventsplayed' ):
$calculate = 'sum'; $calculate = 'total';
else: else:
$calculate = get_post_meta( $statistic->ID, 'sp_calculate', true ); $calculate = get_post_meta( $statistic->ID, 'sp_calculate', true );
endif; endif;
@@ -2145,7 +2159,7 @@ if ( !function_exists( 'sportspress_get_player_statistics_data' ) ) {
$statistics = get_posts( $args ); $statistics = get_posts( $args );
$statistic_labels = array(); $statistic_labels = array();
$equations = array( 'eventsplayed' => 'sum' ); $equations = array( 'eventsplayed' => 'total' );
foreach ( $statistics as $statistic ): foreach ( $statistics as $statistic ):
$statistic_labels[ $statistic->post_name ] = $statistic->post_title; $statistic_labels[ $statistic->post_name ] = $statistic->post_title;
$equations[ $statistic->post_name ] = get_post_meta( $statistic->ID, 'sp_calculate', true ); $equations[ $statistic->post_name ] = get_post_meta( $statistic->ID, 'sp_calculate', true );

View File

@@ -189,7 +189,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Comp', 'post_title' => 'Comp',
'post_name' => 'comp', 'post_name' => 'comp',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -201,7 +201,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Att', 'post_title' => 'Att',
'post_name' => 'att', 'post_name' => 'att',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -227,7 +227,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Att/G', 'post_title' => 'Att/G',
'post_name' => 'attg', 'post_name' => 'attg',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -240,7 +240,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Rec', 'post_title' => 'Rec',
'post_name' => 'rec', 'post_name' => 'rec',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -253,7 +253,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Comb', 'post_title' => 'Comb',
'post_name' => 'comb', 'post_name' => 'comb',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -267,7 +267,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Total', 'post_title' => 'Total',
'post_name' => 'total', 'post_name' => 'total',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -281,7 +281,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Ast', 'post_title' => 'Ast',
'post_name' => 'ast', 'post_name' => 'ast',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -295,7 +295,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Sck', 'post_title' => 'Sck',
'post_name' => 'scktackles', 'post_name' => 'scktackles',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -309,7 +309,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'SFTY', 'post_title' => 'SFTY',
'post_name' => 'sfty', 'post_name' => 'sfty',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -323,7 +323,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'PDef', 'post_title' => 'PDef',
'post_name' => 'pdef', 'post_name' => 'pdef',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -337,7 +337,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'TDs', 'post_title' => 'TDs',
'post_name' => 'tds', 'post_name' => 'tds',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -351,7 +351,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'KO', 'post_title' => 'KO',
'post_name' => 'ko', 'post_name' => 'ko',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -363,7 +363,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Ret', 'post_title' => 'Ret',
'post_name' => 'ret', 'post_name' => 'ret',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -376,7 +376,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Punts', 'post_title' => 'Punts',
'post_name' => 'punts', 'post_name' => 'punts',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -388,7 +388,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Yds', 'post_title' => 'Yds',
'post_name' => 'yds', 'post_name' => 'yds',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -410,7 +410,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Net Yds', 'post_title' => 'Net Yds',
'post_name' => 'netyds', 'post_name' => 'netyds',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -453,7 +453,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Blk', 'post_title' => 'Blk',
'post_name' => 'blk', 'post_name' => 'blk',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -465,7 +465,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'OOB', 'post_title' => 'OOB',
'post_name' => 'oob', 'post_name' => 'oob',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -478,7 +478,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Dn', 'post_title' => 'Dn',
'post_name' => 'dn', 'post_name' => 'dn',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -490,7 +490,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'IN 20', 'post_title' => 'IN 20',
'post_name' => 'in20', 'post_name' => 'in20',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -502,7 +502,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'TB', 'post_title' => 'TB',
'post_name' => 'tb', 'post_name' => 'tb',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -514,7 +514,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'FC', 'post_title' => 'FC',
'post_name' => 'fc', 'post_name' => 'fc',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -528,7 +528,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Ret', 'post_title' => 'Ret',
'post_name' => 'retpunt', 'post_name' => 'retpunt',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -543,7 +543,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'RetY', 'post_title' => 'RetY',
'post_name' => 'rety', 'post_name' => 'rety',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -557,7 +557,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Yds/G', 'post_title' => 'Yds/G',
'post_name' => 'ydsg', 'post_name' => 'ydsg',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -572,7 +572,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'TD', 'post_title' => 'TD',
'post_name' => 'TD', 'post_name' => 'TD',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -592,7 +592,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Int', 'post_title' => 'Int',
'post_name' => 'int', 'post_name' => 'int',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -607,7 +607,7 @@ $sportspress_sports['football'] = array(
'post_title' => '1st', 'post_title' => '1st',
'post_name' => 'first', 'post_name' => 'first',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -637,7 +637,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Lng', 'post_title' => 'Lng',
'post_name' => 'lng', 'post_name' => 'lng',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -658,7 +658,7 @@ $sportspress_sports['football'] = array(
'post_title' => '20+', 'post_title' => '20+',
'post_name' => 'twentyplus', 'post_name' => 'twentyplus',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -675,7 +675,7 @@ $sportspress_sports['football'] = array(
'post_title' => '40+', 'post_title' => '40+',
'post_name' => 'fourtyplus', 'post_name' => 'fourtyplus',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -692,7 +692,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Sck', 'post_title' => 'Sck',
'post_name' => 'sck', 'post_name' => 'sck',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -704,7 +704,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Rate', 'post_title' => 'Rate',
'post_name' => 'rate', 'post_name' => 'rate',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -716,7 +716,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'FUM', 'post_title' => 'FUM',
'post_name' => 'fum', 'post_name' => 'fum',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -732,7 +732,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'FF', 'post_title' => 'FF',
'post_name' => 'ff', 'post_name' => 'ff',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -746,7 +746,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Rec', 'post_title' => 'Rec',
'post_name' => 'recfum', 'post_name' => 'recfum',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -760,7 +760,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'TD', 'post_title' => 'TD',
'post_name' => 'tdfum', 'post_name' => 'tdfum',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -786,7 +786,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'Lng', 'post_title' => 'Lng',
'post_name' => 'lngpunt', 'post_name' => 'lngpunt',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -799,7 +799,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'TD', 'post_title' => 'TD',
'post_name' => 'tdpunt', 'post_name' => 'tdpunt',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -814,7 +814,7 @@ $sportspress_sports['football'] = array(
'post_title' => '20+', 'post_title' => '20+',
'post_name' => 'twentypluspunt', 'post_name' => 'twentypluspunt',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -827,7 +827,7 @@ $sportspress_sports['football'] = array(
'post_title' => '40+', 'post_title' => '40+',
'post_name' => 'fourtypluspunt', 'post_name' => 'fourtypluspunt',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -840,7 +840,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'FC', 'post_title' => 'FC',
'post_name' => 'fcpunt', 'post_name' => 'fcpunt',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -853,7 +853,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'FUM', 'post_title' => 'FUM',
'post_name' => 'fumpunt', 'post_name' => 'fumpunt',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -866,7 +866,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'OSK', 'post_title' => 'OSK',
'post_name' => 'osk', 'post_name' => 'osk',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -878,7 +878,7 @@ $sportspress_sports['football'] = array(
'post_title' => 'OSKR', 'post_title' => 'OSKR',
'post_name' => 'oskr', 'post_name' => 'oskr',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(

View File

@@ -124,35 +124,35 @@ $sportspress_sports['rugby'] = array(
'post_title' => 'Points', 'post_title' => 'Points',
'post_name' => 'points', 'post_name' => 'points',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
), ),
array( array(
'post_title' => 'Tries', 'post_title' => 'Tries',
'post_name' => 'tries', 'post_name' => 'tries',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
), ),
array( array(
'post_title' => 'Conversions', 'post_title' => 'Conversions',
'post_name' => 'conversions', 'post_name' => 'conversions',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
), ),
array( array(
'post_title' => 'Penalty Goals', 'post_title' => 'Penalty Goals',
'post_name' => 'penaltygoals', 'post_name' => 'penaltygoals',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
), ),
array( array(
'post_title' => 'Drop Goals', 'post_title' => 'Drop Goals',
'post_name' => 'dropgoals', 'post_name' => 'dropgoals',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
), ),
), ),

View File

@@ -133,10 +133,26 @@ $sportspress_sports['soccer'] = array(
array( array(
'post_title' => 'Height', 'post_title' => 'Height',
'post_name' => 'height', 'post_name' => 'height',
'tax_input' => array(
'sp_position' => array(
'goalkeeper',
'defender',
'midfielder',
'forward',
),
),
), ),
array( array(
'post_title' => 'Weight', 'post_title' => 'Weight',
'post_name' => 'weight', 'post_name' => 'weight',
'tax_input' => array(
'sp_position' => array(
'goalkeeper',
'defender',
'midfielder',
'forward',
),
),
), ),
), ),
// Player Statistics // Player Statistics
@@ -145,7 +161,7 @@ $sportspress_sports['soccer'] = array(
'post_title' => 'Goals', 'post_title' => 'Goals',
'post_name' => 'goals', 'post_name' => 'goals',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -160,7 +176,7 @@ $sportspress_sports['soccer'] = array(
'post_title' => 'Assists', 'post_title' => 'Assists',
'post_name' => 'assists', 'post_name' => 'assists',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -175,7 +191,7 @@ $sportspress_sports['soccer'] = array(
'post_title' => 'Yellow Cards', 'post_title' => 'Yellow Cards',
'post_name' => 'yellowcards', 'post_name' => 'yellowcards',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(
@@ -190,7 +206,7 @@ $sportspress_sports['soccer'] = array(
'post_title' => 'Red Cards', 'post_title' => 'Red Cards',
'post_name' => 'redcards', 'post_name' => 'redcards',
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'total',
), ),
'tax_input' => array( 'tax_input' => array(
'sp_position' => array( 'sp_position' => array(

View File

@@ -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.3 Stable tag: 0.3.1
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
@@ -96,6 +96,7 @@ SportsPress is currently in beta and is undergoing testing. We are still activel
= 0.3 = = 0.3 =
* Feature - Import tool added for importing players from CSV file. * Feature - Import tool added for importing players from CSV file.
* Feature - Add ability to select
* Tweak - Display current team indicator in players admin screen. * Tweak - Display current team indicator in players admin screen.
= 0.2.10 = = 0.2.10 =

View File

@@ -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.3 Version: 0.3.1
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.3' ); define( 'SPORTSPRESS_VERSION', '0.3.1' );
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__ );