Update league-table.php

numbering rows
This commit is contained in:
Mirek
2015-06-03 22:54:27 +02:00
parent e0556974f1
commit 96944360c3

View File

@@ -108,7 +108,7 @@ foreach ( $data as $team_id => $row ):
$td_class = ' sp-highlight';
endif;
$output .= '<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . $tr_class . '">';
$output .= '<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . $tr_class . ' row-no-' . $i . '">';
// Rank
$output .= '<td class="data-rank' . $td_class . '">' . sp_array_value( $row, 'pos' ) . '</td>';