aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/object
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-10-23 15:01:00 +0000
committerCash Costello <cash.costello@gmail.com>2010-10-23 15:01:00 +0000
commitf1f08168b325605a489b5f21cfdfff96312d55f8 (patch)
tree15d8e30d9b645c3fe229cb9a336e7a7708e46070 /views/default/river/object
parentbff17c5857d0365038e6783c3c00b53204f4a10e (diff)
downloadelgg-f1f08168b325605a489b5f21cfdfff96312d55f8.tar.gz
elgg-f1f08168b325605a489b5f21cfdfff96312d55f8.tar.bz2
moved cover code into album class
Diffstat (limited to 'views/default/river/object')
-rw-r--r--views/default/river/object/album/create.php5
-rw-r--r--views/default/river/object/image/create.php3
2 files changed, 3 insertions, 5 deletions
diff --git a/views/default/river/object/album/create.php b/views/default/river/object/album/create.php
index ef50f9988..47d20f3ae 100644
--- a/views/default/river/object/album/create.php
+++ b/views/default/river/object/album/create.php
@@ -20,8 +20,9 @@ if ($group_album) {
$album_river_view = get_plugin_setting('album_river_view', 'tidypics');
if ($album_river_view == "cover") {
- if ($album->cover) {
- $string .= "<div class=\"river_content\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $album->cover . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/>' . "</div>";
+ $album_cover_guid = $album->getCoverImageGuid();
+ if ($album_cover_guid) {
+ $string .= "<div class=\"river_content\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $album_cover_guid . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/>' . "</div>";
}
} else {
diff --git a/views/default/river/object/image/create.php b/views/default/river/object/image/create.php
index 188fc6ff1..8a0a8deff 100644
--- a/views/default/river/object/image/create.php
+++ b/views/default/river/object/image/create.php
@@ -18,9 +18,6 @@ $string = sprintf(elgg_echo("image:river:created"), $url, $image_link, $album_li
$string .= "<div class=\"river_content\">";
-/* // this adds the album cover to the river display
- $string .= "<a href=\"" . $album->getURL() . "\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $album->cover . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/> </a>';
-*/
$string .= "<a href=\"" . $image->getURL() . "\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $image->guid . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/> </a>';
$string .= "</div>";