Responsive tables and individual content filters
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user