From 5d26276359a4448f0aebc66c3a87b332338e7027 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 3 Dec 2011 16:46:50 -0500 Subject: better image display code - using elgg_view_entity_icon() now --- views/default/river/object/album/create.php | 12 +++++------- views/default/river/object/image/create.php | 9 +++++---- views/default/river/object/tidypics_batch/create.php | 8 ++++---- 3 files changed, 14 insertions(+), 15 deletions(-) (limited to 'views/default/river/object') diff --git a/views/default/river/object/album/create.php b/views/default/river/object/album/create.php index 3f9c42d7a..c8c79f406 100644 --- a/views/default/river/object/album/create.php +++ b/views/default/river/object/album/create.php @@ -1,6 +1,9 @@ getObjectEntity(); @@ -9,9 +12,7 @@ $album_river_view = elgg_get_plugin_setting('album_river_view', 'tidypics'); if ($album_river_view == "cover") { $image = $album->getCoverImage(); if ($image) { - $attachments = elgg_view('output/img', array( - 'src' => $image->getSrcUrl('thumb'), - )); + $attachments = elgg_view_entity_icon($image, 'tiny'); } } else { $images = $album->getImages(7); @@ -20,10 +21,7 @@ if ($album_river_view == "cover") { $attachments = ''; diff --git a/views/default/river/object/image/create.php b/views/default/river/object/image/create.php index 44efa0c59..08cfdc550 100644 --- a/views/default/river/object/image/create.php +++ b/views/default/river/object/image/create.php @@ -1,6 +1,9 @@ getSubjectEntity(); @@ -12,10 +15,8 @@ $subject_link = elgg_view('output/url', array( )); $image = $vars['item']->getObjectEntity(); -$attachments = elgg_view('output/img', array( - 'src' => $image->getSrcUrl('thumb'), - 'class' => 'elgg-photo', -)); +$attachments = elgg_view_entity_icon($image, 'tiny'); + $image_link = elgg_view('output/url', array( 'href' => $image->getURL(), 'text' => $image->getTitle(), diff --git a/views/default/river/object/tidypics_batch/create.php b/views/default/river/object/tidypics_batch/create.php index 1dfce6925..44c40c110 100644 --- a/views/default/river/object/tidypics_batch/create.php +++ b/views/default/river/object/tidypics_batch/create.php @@ -1,6 +1,9 @@ getObjectEntity(); @@ -34,10 +37,7 @@ if (count($images)) { $attachments = ''; -- cgit v1.2.3