diff options
author | Bharat Mediratta <bharat@menalto.com> | 2012-05-19 10:54:02 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2012-05-19 10:54:02 -0700 |
commit | 68437993b90bb9cc02ca1134e73c754e1f0d8273 (patch) | |
tree | f7f6341811560979f4d5803b282574121c106d42 | |
parent | 0e97072ad241fc6af93e889aa7a064374ede6a14 (diff) |
Differentiate between photos and movies in album children. Fixes #1861.
-rw-r--r-- | themes/wind/views/album.html.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/themes/wind/views/album.html.php b/themes/wind/views/album.html.php index 1a56af67..ca69bda7 100644 --- a/themes/wind/views/album.html.php +++ b/themes/wind/views/album.html.php @@ -9,9 +9,12 @@ <ul id="g-album-grid" class="ui-helper-clearfix"> <? if (count($children)): ?> <? foreach ($children as $i => $child): ?> - <? $item_class = "g-photo"; ?> <? if ($child->is_album()): ?> <? $item_class = "g-album"; ?> + <? elseif ($child->is_movie()): ?> + <? $item_class = "g-movie"; ?> + <? else: ?> + <? $item_class = "g-photo"; ?> <? endif ?> <li id="g-item-id-<?= $child->id ?>" class="g-item <?= $item_class ?>"> <?= $theme->thumb_top($child) ?> |