aboutsummaryrefslogtreecommitdiff
path: root/pages/videolist/all.php
blob: 6fe68f3eb955d4f01de3a590a787a36f66e09ef6 (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
27
28
29
30
31
32
33
34
<?php
/**
 * All videos
 *
 * @package ElggVideolist
 */

elgg_push_breadcrumb(elgg_echo('videolist'));

elgg_register_title_button();

$limit = get_input("limit", 10);

$title = elgg_echo('videolist:all');

$content = elgg_list_entities(array(
	'types' => 'object',
	'subtypes' => 'videolist_item',
	'limit' => $limit,
	'full_view' => FALSE
));

$sidebar = elgg_view('videolist/sidebar');

elgg_set_context('videolist');
$body = elgg_view_layout('content', array(
	'filter_context' => 'all',
	'content' => $content,
	'title' => $title,
	'sidebar' => $sidebar,
));

// Finally draw the page
echo elgg_view_page($title, $body);