diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-02-10 04:29:39 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-02-10 04:29:39 +0000 |
commit | c7d004d3199b75c92f9ab065513af1c4f2d5aba5 (patch) | |
tree | 15b9d1ca85fc151a37da9a108193d7db675bcb52 | |
parent | 9f76d15086972c3661cbb8c4a786b7763203a745 (diff) |
Simplify some logic.
-rw-r--r-- | themes/default/views/tag.html.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/themes/default/views/tag.html.php b/themes/default/views/tag.html.php index 4e3934b0..27777e94 100644 --- a/themes/default/views/tag.html.php +++ b/themes/default/views/tag.html.php @@ -8,11 +8,7 @@ <ul id="gAlbumGrid"> <? foreach ($children as $i => $child): ?> - <? $album_class = ""; ?> - <? if ($child->is_album()): ?> - <? $album_class = "gAlbum "; ?> - <? endif ?> - <li class="gItem <?= $album_class ?>"> + <li class="gItem <?= $child->is_album() ? "gAlbum" : "" ?>"> <?= $theme->thumb_top($child) ?> <a href="<?= $child->url() ?>"> <img id="gPhotoId-<?= $child->id ?>" class="gThumbnail" |