use text::alternate where appropriate

This commit is contained in:
Bharat Mediratta
2008-11-15 21:54:16 +00:00
parent 6fd7194544
commit 2d463c5531

View File

@@ -1,6 +1,6 @@
<? defined("SYSPATH") or die("No direct script access."); ?>
<? foreach (array_reverse($comments) as $index => $comment): ?>
<li id="gComment-<?= $index; ?>" class="gComment <?= $index % 2 ? 'gOdd' : 'gEven' ?>">
<li id="gComment-<?= $index; ?>" class="gComment <?= text::alternate("gEven", "gOdd") ?>">
<p>
<a href="#" class="gAuthor"><?= $comment->author ?></a>
<?= comment::format_elapsed_time($comment->datetime) ?>,