diff options
Diffstat (limited to 'classes/TidypicsAlbum.php')
-rw-r--r-- | classes/TidypicsAlbum.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/classes/TidypicsAlbum.php b/classes/TidypicsAlbum.php index e178acd5d..1fbdb8ad8 100644 --- a/classes/TidypicsAlbum.php +++ b/classes/TidypicsAlbum.php @@ -18,6 +18,15 @@ class TidypicsAlbum extends ElggObject { } /** + * Get the title of the photo album + * + * @return string + */ + public function getTitle() { + return $this->title; + } + + /** * Delete album * * @return bool @@ -70,6 +79,15 @@ class TidypicsAlbum extends ElggObject { return elgg_view_entity_list($images, $count, $offset, $limit, false, false, true); } + public function getCoverImageURL($size = 'small') { + if ($this->cover) { + $url = "pg/photos/thumbnail/$this->cover/$size/"; + } else { + $url = "mod/tidypics/graphics/empty_album.png"; + } + return elgg_normalize_url($url); + } + /** * Get the GUID of the album cover * |