aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/album.php
blob: bfcfd96d29874e6273ce9689f851c7395a500387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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);
	}
}