diff options
author | Pete Harris <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-10 13:43:33 +0000 |
---|---|---|
committer | Pete Harris <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-10 13:43:33 +0000 |
commit | 0c7547f6de3b7ff2ec7a79b2f636add2be341e85 (patch) | |
tree | d4637b14961d0c381d94f77ec19cc5e138abc5bb | |
parent | d4b3f881b65d5c99ab07c584849d27dc7d1b72b0 (diff) | |
download | elgg-0c7547f6de3b7ff2ec7a79b2f636add2be341e85.tar.gz elgg-0c7547f6de3b7ff2ec7a79b2f636add2be341e85.tar.bz2 |
Added sidebar contents and tagcloud to various videolist views
git-svn-id: http://code.elgg.org@6435 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | all.php | 3 | ||||
-rw-r--r-- | friends.php | 3 | ||||
-rw-r--r-- | index.php | 2 | ||||
-rw-r--r-- | watch.php | 11 |
4 files changed, 19 insertions, 0 deletions
@@ -34,6 +34,9 @@ $area3 .= elgg_view("videolist/sidebar", array("object_type" => 'videolist')); $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'); + set_context('videolist'); $body = elgg_view_layout('one_column_with_sidebar', $area1.$area2, $area3); diff --git a/friends.php b/friends.php index 86e3b0fd3..d9e84e896 100644 --- a/friends.php +++ b/friends.php @@ -36,6 +36,9 @@ $area3 = elgg_view("videolist/sidebar", array("object_type" => 'videolist')); // fetch & display latest comments on friends 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'); // Format page $body = elgg_view_layout('one_column_with_sidebar', $area1.$area2, $area3); @@ -57,6 +57,8 @@ $area3 = elgg_view("videolist/sidebar", array("object_type" => 'videolist')); $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'); // Get objects $area2 = elgg_list_entities(array('types' => 'object', 'subtypes' => 'videolist', 'container_guids' => page_owner(), 'limit' => 10)); @@ -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 |