Responsive tables and individual content filters

This commit is contained in:
Brian Miyaji
2014-01-24 00:05:45 +11:00
parent f21ed7f522
commit ef3136801f
17 changed files with 339 additions and 196 deletions

View File

@@ -7,7 +7,8 @@ if ( !function_exists( 'sportspress_player_list' ) ) {
$data = sportspress_get_player_list_data( $id );
$output = '<table class="sp-player-list sp-data-table">' . '<thead>' . '<tr>';
$output = '<div class="sp-table-wrapper">' .
'<table class="sp-player-list sp-data-table sp-responsive-table">' . '<thead>' . '<tr>';
// The first row should be column labels
$labels = $data[0];
@@ -49,7 +50,7 @@ if ( !function_exists( 'sportspress_player_list' ) ) {
endforeach;
$output .= '</tbody>' . '</table>';
$output .= '</tbody>' . '</table>' . '</div>';
return apply_filters( 'sportspress_player_list', $output );