summaryrefslogtreecommitdiff
path: root/themes/wind
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2012-05-19 10:54:02 -0700
committerBharat Mediratta <bharat@menalto.com>2012-05-19 10:54:02 -0700
commit68437993b90bb9cc02ca1134e73c754e1f0d8273 (patch)
treef7f6341811560979f4d5803b282574121c106d42 /themes/wind
parent0e97072ad241fc6af93e889aa7a064374ede6a14 (diff)
Differentiate between photos and movies in album children. Fixes #1861.
Diffstat (limited to 'themes/wind')
-rw-r--r--themes/wind/views/album.html.php5
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) ?>