From f1f08168b325605a489b5f21cfdfff96312d55f8 Mon Sep 17 00:00:00 2001
From: Cash Costello
Date: Sat, 23 Oct 2010 15:01:00 +0000
Subject: moved cover code into album class
---
views/default/object/album.php | 12 ++++++------
views/default/river/object/album/create.php | 5 +++--
views/default/river/object/image/create.php | 3 ---
views/default/tidypics/albums.php | 5 +++--
views/default/tidypics/forms/edit.php | 2 +-
views/default/tidypics/forms/edit_multi.php | 2 +-
6 files changed, 14 insertions(+), 15 deletions(-)
(limited to 'views/default')
diff --git a/views/default/object/album.php b/views/default/object/album.php
index b87bef444..7c43c4e96 100644
--- a/views/default/object/album.php
+++ b/views/default/object/album.php
@@ -27,9 +27,9 @@ if (get_context() == "search") {
*
*****************************************************************************/
- //get album cover if one was set
- if ($album->cover) {
- $album_cover = '';
+ $album_cover_guid = $album->getCoverImageGuid();
+ if ($album_cover_guid) {
+ $album_cover = '';
} else {
$album_cover = '';
}
@@ -69,9 +69,9 @@ if (get_context() == "search") {
}
$info .= "
";
- //get album cover if one was set
- if ($album->cover) {
- $icon = " wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $album->cover . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/>' . "
";
+ $album_cover_guid = $album->getCoverImageGuid();
+ if ($album_cover_guid) {
+ $string .= " wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $album_cover_guid . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/>' . "
";
}
} 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 .= "