aboutsummaryrefslogtreecommitdiff
path: root/pages/world.php
blob: 514fd058c0dcfea5119548b5be9d2ef7ddb16c59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
	/**
	 * Tidypics View All Albums on Site
	 * 
	 */

	include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php";
	
	$num_albums = 16;
	
	$title = elgg_echo('album:all');
	
	set_context('photos');
	$area2 = elgg_view_title($title);
	
	set_context('search');
	set_input('search_viewtype', 'gallery');
	$albums_html .= list_entities('object','album', 0, $num_albums, false);

	
	$area2 .= $albums_html;
	
	$body = elgg_view_layout('two_column_left_sidebar', '', $area2);

	page_draw($title, $body);
?>