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'; $td_class = ' sp-highlight';
endif; 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 // Rank
$output .= '<td class="data-rank' . $td_class . '">' . sp_array_value( $row, 'pos' ) . '</td>'; $output .= '<td class="data-rank' . $td_class . '">' . sp_array_value( $row, 'pos' ) . '</td>';
@@ -154,4 +154,4 @@ if ( $show_full_table_link )
?> ?>
<div class="sp-template sp-template-league-table"> <div class="sp-template sp-template-league-table">
<?php echo $output; ?> <?php echo $output; ?>
</div> </div>