diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-06-20 20:52:39 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-06-20 20:52:39 +0000 |
commit | 1bf62f1bc10831d559df147868dd889e5985adcc (patch) | |
tree | 7e2824768e010978853270c831f4a8da9c027207 /views/default/object/album.php | |
parent | 774b7c79bfcdb5d3139ec16152e6955a86093699 (diff) | |
download | elgg-1bf62f1bc10831d559df147868dd889e5985adcc.tar.gz elgg-1bf62f1bc10831d559df147868dd889e5985adcc.tar.bz2 |
cleaned up icon code - don't need tidypics/icon view anymore - may reinstate it at a later time
Diffstat (limited to 'views/default/object/album.php')
-rw-r--r-- | views/default/object/album.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/views/default/object/album.php b/views/default/object/album.php index 3a5f5a975..ca28d1672 100644 --- a/views/default/object/album.php +++ b/views/default/object/album.php @@ -64,7 +64,11 @@ $info .= ", <a href=\"{$album->getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")</a>"; $info .= "</p>"; - $icon = "<a href=\"{$album->getURL()}\">" . elgg_view("tidypics/icon", array('album' => true, 'size' => 'small')) . "</a>"; + //get album cover if one was set + if ($album->cover) + $icon = "<a href=\"{$album->getURL()}\">" . '<img src="' . $vars['url'] . 'mod/tidypics/thumbnail.php?file_guid=' . $album->cover . '&size=thumb" alt="thumbnail" /></a>'; + else + $icon = "<a href=\"{$album->getURL()}\">" . '<img src="' . $vars['url'] . 'mod/tidypics/graphics/image_error_thumb.png" alt="new album"></a>'; echo elgg_view_listing($icon, $info); } |