]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added sidebar contents and tagcloud to various videolist views
authorPete Harris <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 10 Jun 2010 13:43:33 +0000 (13:43 +0000)
committerPete Harris <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 10 Jun 2010 13:43:33 +0000 (13:43 +0000)
git-svn-id: http://code.elgg.org@6435 36083f99-b078-4883-b0ff-0f9b5a30f544

all.php
friends.php
index.php
watch.php

diff --git a/all.php b/all.php
index e601a34f521cf042ae8c11ded5133e0609784c86..98b1805254472eb7fad63b5c37ceba63f45412c9 100644 (file)
--- a/all.php
+++ b/all.php
@@ -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);
 
index 86e3b0fd32bc0df8d718889f51277d5332b76307..d9e84e896d63ac787121e8828f377e18ab6dabbd 100644 (file)
@@ -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);
index c36458579ae0d0823a736d5ee81afda25dab635c..0c78470f3ca59d6c95615976d65505beb64e5b53 100644 (file)
--- a/index.php
+++ b/index.php
@@ -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));
index 65993ae2baa5101385fa1eedd0887ed6caab199e..778af59c2628c7a1b2d161ceac248da5f6585918 100644 (file)
--- 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