Highlight total row in player statistics

This commit is contained in:
Brian Miyaji
2016-03-31 04:02:51 +11:00
parent 1f28b652c8
commit 46b579bded

View File

@@ -26,7 +26,7 @@ foreach( $data as $season_id => $row ):
$output .= '<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">'; $output .= '<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">';
foreach( $labels as $key => $value ): foreach( $labels as $key => $value ):
$output .= '<td class="data-' . $key . '">' . sp_array_value( $row, $key, '&mdash;' ) . '</td>'; $output .= '<td class="data-' . $key . ( -1 === $season_id ? ' sp-highlight' : '' ) . '">' . sp_array_value( $row, $key, '&mdash;' ) . '</td>';
endforeach; endforeach;
$output .= '</tr>'; $output .= '</tr>';