From 0c7547f6de3b7ff2ec7a79b2f636add2be341e85 Mon Sep 17 00:00:00 2001 From: Pete Harris Date: Thu, 10 Jun 2010 13:43:33 +0000 Subject: Added sidebar contents and tagcloud to various videolist views git-svn-id: http://code.elgg.org@6435 36083f99-b078-4883-b0ff-0f9b5a30f544 --- watch.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'watch.php') diff --git a/watch.php b/watch.php index 65993ae2b..778af59c2 100644 --- a/watch.php +++ b/watch.php @@ -58,6 +58,17 @@ if ($videos = get_entity($video_id)) { 'entity_owner' => $page_owner, 'full' => true )); + + // include a view for plugins to extend + $area3 .= elgg_view("videolist/sidebar", array("object_type" => 'videolist')); + + // get the latest comments on all videos + $comments = get_annotations(0, "object", "videolist", "generic_comment", "", 0, 4, 0, "desc"); + $area3 .= elgg_view('annotation/latest_comments', array('comments' => $comments)); + + // tag-cloud display + $area3 .= display_tagcloud(0, 50, 'tags', 'object', 'videolist'); + $body = elgg_view_layout("one_column_with_sidebar", $area1.$area2, $area3); } else { // video not found -- cgit v1.2.3