aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/object/album
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/river/object/album')
-rw-r--r--views/default/river/object/album/create.php12
1 files changed, 5 insertions, 7 deletions
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 @@
<?php
/**
* Album river view
+ *
+ * @author Cash Costello
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
*/
$album = $vars['item']->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 = '<ul class="tidypics-river-list">';
foreach($images as $image) {
$attachments .= '<li class="tidypics-photo-item">';
- $attachments .= elgg_view('output/img', array(
- 'src' => $image->getSrcUrl('thumb'),
- 'class' => 'elgg-photo',
- ));
+ $attachments .= elgg_view_entity_icon($image, 'tiny');
$attachments .= '</li>';
}
$attachments .= '</ul>';