diff options
Diffstat (limited to 'mod/lightpics/views/default/object/album.php')
-rw-r--r-- | mod/lightpics/views/default/object/album.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mod/lightpics/views/default/object/album.php b/mod/lightpics/views/default/object/album.php new file mode 100644 index 000000000..bfcfd96d2 --- /dev/null +++ b/mod/lightpics/views/default/object/album.php @@ -0,0 +1,22 @@ +<?php +/** + * Album view + * + * @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); +$full_view = elgg_extract('full_view', $vars, false); + +if ($full_view) { + echo elgg_view('object/album/full', $vars); +} else { + if (elgg_in_context('widgets')) { + echo elgg_view('object/album/list', $vars); + } else { + echo elgg_view('object/album/gallery', $vars); + } +} |