Update league-table.php
numbering rows
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user