diff options
author | cash <cash.costello@gmail.com> | 2011-12-03 16:46:50 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-12-03 16:46:50 -0500 |
commit | 5d26276359a4448f0aebc66c3a87b332338e7027 (patch) | |
tree | cd269deb21c9ee0211e6b7d080f9566fd2d5ecb4 /views/default/object/image/full.php | |
parent | 092197523f135b1aec3de8ff50df0dcf724c8094 (diff) | |
download | elgg-5d26276359a4448f0aebc66c3a87b332338e7027.tar.gz elgg-5d26276359a4448f0aebc66c3a87b332338e7027.tar.bz2 |
better image display code - using elgg_view_entity_icon() now
Diffstat (limited to 'views/default/object/image/full.php')
-rw-r--r-- | views/default/object/image/full.php | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/views/default/object/image/full.php b/views/default/object/image/full.php index d08c03f9c..f866e432d 100644 --- a/views/default/object/image/full.php +++ b/views/default/object/image/full.php @@ -10,15 +10,9 @@ $image = $photo = $vars['entity']; -$img = elgg_view('output/img', array( - 'src' => $image->getSrcURL('large'), - 'alt' => $image->getTitle(), - 'class' => 'elgg-photo', -)); - -$content = elgg_view('output/url', array( - 'text' => $img, - 'href' => $image->getURL(), +$img = elgg_view_entity_icon($image, 'large', array( + 'href' => false, + 'img_class' => 'tidypics-photo', )); $owner_link = elgg_view('output/url', array( @@ -62,7 +56,7 @@ if ($photo->description) { echo '<div class="tidypics-wrapper-photo">'; echo elgg_view('tidypics/tagging/help'); echo elgg_view('tidypics/tagging/select', array('photo' => $photo)); -echo $content; +echo $img; echo '</div>'; - echo elgg_view_comments($photo);
\ No newline at end of file +echo elgg_view_comments($photo); |