mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-08 12:39:17 -04:00
Use text::alternate() instead of hand-rolled even/odd code.
This commit is contained in:
@@ -46,14 +46,12 @@
|
||||
<th> <?= t("Active") ?> </th>
|
||||
<th> <?= t("Description") ?> </th>
|
||||
</tr>
|
||||
<? $i = 0 ?>
|
||||
<? foreach ($available as $module_name => $description): ?>
|
||||
<tr class="<?= ($i % 2 == 0) ? "g-odd" : "g-even" ?>">
|
||||
<tr class="<?= text::alternate("g-odd", "g-even") ?>">
|
||||
<? $data = array("name" => "provider"); ?>
|
||||
<td> <?= form::radio($data, $module_name, $module_name == $active) ?> </td>
|
||||
<td> <?= t($description) ?> </td>
|
||||
</tr>
|
||||
<? $i++ ?>
|
||||
<? endforeach ?>
|
||||
</table>
|
||||
<input type="submit" value="<?= t("Change")->for_html_attr() ?>" />
|
||||
|
||||
Reference in New Issue
Block a user