David Valentine commited on 2025-04-05 02:43:22
Showing 2 changed files, with 6 additions and 4 deletions.
| ... | ... |
@@ -71,7 +71,7 @@ $args = array( |
| 71 | 71 |
'link_events' => $link_events, |
| 72 | 72 |
'paginated' => $paginated, |
| 73 | 73 |
'rows' => $rows, |
| 74 |
- 'order' => 'ASC', // MODIF |
|
| 74 |
+ 'order' => 'ASC', // Modification |
|
| 75 | 75 |
'show_all_events_link' => false, |
| 76 | 76 |
'show_title' => true, |
| 77 | 77 |
'show_league' => $show_league, |
| ... | ... |
@@ -145,8 +145,8 @@ foreach ( $groups as $group ) : |
| 145 | 145 |
if ( in_array( $orderby, array( 'number', 'name' ) ) ) : |
| 146 | 146 |
$thead .= '<th class="data-number">#</th>'; |
| 147 | 147 |
else : |
| 148 |
-// $thead .= '<th class="data-rank">' . esc_attr__( 'Rank', 'sportspress' ) . '</th>'; |
|
| 149 |
- $thead .= '<th class="data-number">#</th>'; // MODIF |
|
| 148 |
+ // Modification |
|
| 149 |
+ $thead .= '<th class="data-number">#</th>'; |
|
| 150 | 150 |
endif; |
| 151 | 151 |
endif; |
| 152 | 152 |
|
| ... | ... |
@@ -176,8 +176,10 @@ foreach ( $groups as $group ) : |
| 176 | 176 |
|
| 177 | 177 |
// Rank or number |
| 178 | 178 |
if ( ! is_array( $labels ) || array_key_exists( 'number', $labels ) ) : |
| 179 |
+ // Modification |
|
| 180 |
+ // le else a été copié dans le if, donc il n’y a qu’un seul cas possible. |
|
| 179 | 181 |
if ( isset( $orderby ) && $orderby != 'number' ) : |
| 180 |
- $tbody .= '<td class="data-number" data-label="' . $labels['number'] . '">' . sp_array_value( $row, 'number', ' ' ) . '</td>'; // MODIF copier le else dans le if. |
|
| 182 |
+ $tbody .= '<td class="data-number" data-label="' . $labels['number'] . '">' . sp_array_value( $row, 'number', ' ' ) . '</td>'; |
|
| 181 | 183 |
else : |
| 182 | 184 |
$tbody .= '<td class="data-number" data-label="' . $labels['number'] . '">' . sp_array_value( $row, 'number', ' ' ) . '</td>'; |
| 183 | 185 |
endif; |
| 184 | 186 |