Give teams option to show and hide seasons

This commit is contained in:
Brian Miyaji
2014-01-15 14:55:30 +11:00
parent d198a2cea1
commit e3a04bc8c9
5 changed files with 56 additions and 45 deletions

View File

@@ -213,11 +213,14 @@ if ( !function_exists( 'sportspress_team_columns' ) ) {
// Loop through data for each league
foreach ( $leagues as $league ):
$data = sportspress_get_team_columns_data( $id, $league->term_id );
if ( sizeof( $data ) <= 1 )
continue;
if ( sizeof( $leagues ) > 1 )
$output .= '<h4 class="sp-team-league-name">' . $league->name . '</h4>';
$data = sportspress_get_team_columns_data( $id, $league->term_id );
// The first row should be column labels
$labels = $data[0];