diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-23 18:46:41 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-11-23 18:46:41 -0500 |
commit | 47bd8586910b1df3f29e2425572372e382b26f6a (patch) | |
tree | 044b79b6d9ac1317837fe08f4359f2c291497c9d /views/default/object/album/gallery.php | |
parent | 0aa823656bf92ae472cb6780afb24f5a0390b880 (diff) | |
download | elgg-47bd8586910b1df3f29e2425572372e382b26f6a.tar.gz elgg-47bd8586910b1df3f29e2425572372e382b26f6a.tar.bz2 |
added support for group albums
Diffstat (limited to 'views/default/object/album/gallery.php')
-rw-r--r-- | views/default/object/album/gallery.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/views/default/object/album/gallery.php b/views/default/object/album/gallery.php new file mode 100644 index 000000000..78eec3517 --- /dev/null +++ b/views/default/object/album/gallery.php @@ -0,0 +1,41 @@ +<?php +/** + * Summary of an album for lists/galleries + * + * @uses $vars['entity'] TidypicsAlbum + * + * @author Cash Costello + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 + */ + +$album = elgg_extract('entity', $vars); + +$album_cover = elgg_view('output/img', array( + 'src' => $album->getCoverImageURL(), + 'alt' => $album->getTitle(), + 'class' => 'elgg-photo', +)); + +$header = elgg_view('output/url', array( + 'text' => $album->getTitle(), + 'href' => $album->getURL(), +)); + +$body = elgg_view('output/url', array( + 'text' => $album_cover, + 'href' => $album->getURL(), + 'encode_text' => false, + 'is_trusted' => true, +)); + +$footer = elgg_view('output/url', array( + 'text' => $album->getContainerEntity()->name, + 'href' => $album->getContainerEntity()->getURL(), + 'is_trusted' => true, +)); +$footer .= '<div class="elgg-subtext">' . elgg_echo('album:num', array($album->getSize())) . '</div>'; + +$params = array( + 'footer' => $footer, +); +echo elgg_view_module('tidypics-album', $header, $body, $params); |