mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 11:29:24 -04:00
Use text::alternate() instead of hand-rolled even/odd code.
This commit is contained in:
@@ -16,10 +16,9 @@
|
||||
<th> <?= t("Name") ?> </th>
|
||||
<th> <?= t("Value") ?></th>
|
||||
</tr>
|
||||
<? $i = 0; ?>
|
||||
<? foreach ($vars as $var): ?>
|
||||
<? if ($var->module_name == "gallery" && $var->name == "_cache") continue ?>
|
||||
<tr class="<?= ($i % 2 == 0) ? "g-odd" : "g-even" ?>">
|
||||
<tr class="<?= text::alternate("g-odd", "g-even") ?>">
|
||||
<td> <?= $var->module_name ?> </td>
|
||||
<td> <?= html::clean($var->name) ?> </td>
|
||||
<td>
|
||||
@@ -34,7 +33,6 @@
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<? $i++ ?>
|
||||
<? endforeach ?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user