Remove duplicate teams checkbox in player

This commit is contained in:
Brian Miyaji
2014-06-26 17:59:29 +10:00
parent 2fccc4ec04
commit 74c924f1a9

View File

@@ -65,10 +65,8 @@ class SP_Meta_Box_Player_Statistics {
<input type="checkbox" name="sp_columns[]" value="team" id="sp_columns_team" <?php checked( ! is_array( $columns ) || array_key_exists( 'team', $columns ) ); ?>> <input type="checkbox" name="sp_columns[]" value="team" id="sp_columns_team" <?php checked( ! is_array( $columns ) || array_key_exists( 'team', $columns ) ); ?>>
<?php _e( 'Team', 'sportspress' ); ?> <?php _e( 'Team', 'sportspress' ); ?>
</label></th> </label></th>
<?php foreach ( $columns as $key => $label ): ?> <?php foreach ( $columns as $key => $label ): if ( $key == 'team' ) continue; ?>
<th><label for="sp_columns_<?php echo $key; ?>"> <th><?php echo $label; ?></th>
<?php echo $label; ?>
</label></th>
<?php endforeach; ?> <?php endforeach; ?>
</tr> </tr>
</thead> </thead>
@@ -114,7 +112,7 @@ class SP_Meta_Box_Player_Statistics {
endif; endif;
?> ?>
</td> </td>
<?php foreach( $columns as $column => $label ): <?php foreach ( $columns as $column => $label ): if ( $column == 'team' ) continue;
?> ?>
<td><?php <td><?php
$value = sp_array_value( sp_array_value( $data, $div_id, array() ), $column, null ); $value = sp_array_value( sp_array_value( $data, $div_id, array() ), $column, null );