aboutsummaryrefslogtreecommitdiff
path: root/pages/videolist/watch.php
blob: fc9bd1a681fa6933c09968bcc729829c67f8204a (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
35
36
<?php
/**
 * View a file
 *
 * @package ElggFile
 */

$videolist_item = get_entity(get_input('guid'));

elgg_set_page_owner_guid($videolist_item->container_guid);

$page_owner = elgg_get_page_owner_entity();

elgg_push_breadcrumb(elgg_echo('videolist'), 'videolist/all');

$crumbs_title = $page_owner->name;
if (elgg_instanceof($page_owner, 'group')) {
	elgg_push_breadcrumb($crumbs_title, "videolist/group/$page_owner->guid/all");
} else {
	elgg_push_breadcrumb($crumbs_title, "videolist/owner/$page_owner->username");
}

$title = $videolist_item->title;

elgg_push_breadcrumb($title);

$content = elgg_view_entity($videolist_item, array('full_view' => true));
$content .= elgg_view_comments($videolist_item);

$body = elgg_view_layout('content', array(
	'content' => $content,
	'title' => $title,
	'filter' => '',
));

echo elgg_view_page($title, $body);