Add multiple league tables

This commit is contained in:
Takumi
2013-07-29 17:51:58 +10:00
parent 1e57d60e08
commit b12e4a7043
3 changed files with 39 additions and 13 deletions

View File

@@ -84,7 +84,6 @@ function sp_event_stats_meta( $post ) {
</p>
<?php
$ids = sp_array_between( (array)get_post_meta( $post->ID, 'sp_player', false ), 0, $key );
$size = sizeof( $ids );
if ( array_key_exists( $value, $stats ) )
$team_stats = (array)$stats[ $value ];
$data = array();
@@ -94,7 +93,7 @@ function sp_event_stats_meta( $post ) {
else
$data[ $id ] = array();
endforeach;
sp_data_table( $data, $value );
sp_data_table( $data, $value, array( 'Player', 'Goals', 'Assists', 'Yellow Cards', 'Red Cards' ) );
?>
</div>
<?php