aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/image
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/object/image')
-rw-r--r--views/default/object/image/full.php16
-rw-r--r--views/default/object/image/summary.php6
2 files changed, 6 insertions, 16 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);
diff --git a/views/default/object/image/summary.php b/views/default/object/image/summary.php
index 71c1be6b9..16c197098 100644
--- a/views/default/object/image/summary.php
+++ b/views/default/object/image/summary.php
@@ -10,11 +10,7 @@
$image = elgg_extract('entity', $vars);
-$img = elgg_view('output/img', array(
- 'src' => $image->getSrcURL(),
- 'alt' => $image->getTitle(),
- 'class' => 'elgg-photo',
-));
+$img = elgg_view_entity_icon($image, 'small');
$header = elgg_view('output/url', array(
'text' => $image->getTitle(),