mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
Use text::alternate() instead of hand-rolled even/odd code.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<ul>
|
||||
<? foreach ($comments as $i => $comment): ?>
|
||||
<li class="<?= ($i % 2 == 0) ? "g-even" : "g-odd" ?>">
|
||||
<? foreach ($comments as $comment): ?>
|
||||
<li class="<?= text::alternate("g-even", "g-odd") ?>">
|
||||
<img src="<?= $comment->author()->avatar_url(32, $theme->url("images/avatar.jpg", true)) ?>"
|
||||
class="g-avatar"
|
||||
alt="<?= html::clean_attribute($comment->author_name()) ?>"
|
||||
|
||||
Reference in New Issue
Block a user