diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-14 23:49:29 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-14 23:49:29 +0000 |
commit | 5b8722f7cb6e55f041061cdc16792ba15427111a (patch) | |
tree | 6d8c08f129708117d72bdf59d6b6d81d3a8de88e | |
parent | 7f77c676fe060fa4c9136800e8f170747a67b0ad (diff) |
Use ternary operators to tighten up some logic
-rw-r--r-- | modules/organize/views/organize_album.html.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/organize/views/organize_album.html.php b/modules/organize/views/organize_album.html.php index d4296918..9c4d042a 100644 --- a/modules/organize/views/organize_album.html.php +++ b/modules/organize/views/organize_album.html.php @@ -2,13 +2,15 @@ <ul> <li class="gOrganizeBranch ui-icon-left" ref="<?= $album->id ?>"> <span id="gOrganizeIcon-<?= $album->id ?>" ref="<?= $album->id ?>" - class="ui-icon <?= $album_icon ?><? if (empty($album_icon)): ?> gBranchEmpty<? endif ?>">> </span> + class="ui-icon <?= $album_icon ?> <?= $album_icon ? "" : "gBranchEmpty" ?>"> + </span> + <div id="gOrganizeBranch-<?= $album->id ?>" ref="<?= $album->id ?>" - class="<? if ($selected): ?>gBranchSelected <? endif ?>gBranchText"> + class="<?= $selected ? "gBranchSelected" : "" ?> gBranchText"> <?= $album->title ?> </div> <div id="gOrganizeChildren-<?= $album->id ?>" - class="<? if ($album_icon == "ui-icon-plus"): ?>gBranchCollapsed<? endif ?>"> + class="<?= $album_icon == "ui-icon-plus" ? "gBranchCollapsed" : "" ?>"> <?= $children ?> <div> </li> |