diff options
author | Sem <sembrestels@riseup.net> | 2011-11-09 03:10:35 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2011-11-09 03:10:35 +0100 |
commit | b0f15fbebe3781626ba6b086d63ed364f6822209 (patch) | |
tree | c0b9358920ac777d6a0a5125f5cf528b7ca52643 /pages/videolist | |
parent | 6b16fa9b322ae12a54c66ba5160cc7547d6e7667 (diff) | |
download | elgg-b0f15fbebe3781626ba6b086d63ed364f6822209.tar.gz elgg-b0f15fbebe3781626ba6b086d63ed364f6822209.tar.bz2 |
Sidebar.
Diffstat (limited to 'pages/videolist')
-rw-r--r-- | pages/videolist/all.php | 17 | ||||
-rw-r--r-- | pages/videolist/friends.php | 2 | ||||
-rw-r--r-- | pages/videolist/watch.php | 6 |
3 files changed, 8 insertions, 17 deletions
diff --git a/pages/videolist/all.php b/pages/videolist/all.php index db0b0ee9d..6fe68f3eb 100644 --- a/pages/videolist/all.php +++ b/pages/videolist/all.php @@ -20,22 +20,7 @@ $content = elgg_list_entities(array( 'full_view' => FALSE )); -// get the latest comments on all videos -$comments = elgg_get_annotations(array( - 'type' => 'object', - 'subype' => 'videolist', - 'annotation_names' => array('generic_comment'), - 'limit' => 4, - 'order_by' => 'time_created desc', -)); -$sidebar = elgg_view('annotation/latest_comments', array('comments' => $comments)); - -// tag-cloud display -$sidebar .= elgg_view_tagcloud(array( - 'type' => 'object', - 'subtype' => 'videolist', - 'limit' => 50, -)); +$sidebar = elgg_view('videolist/sidebar'); elgg_set_context('videolist'); $body = elgg_view_layout('content', array( diff --git a/pages/videolist/friends.php b/pages/videolist/friends.php index c505464cb..8bbb34698 100644 --- a/pages/videolist/friends.php +++ b/pages/videolist/friends.php @@ -21,7 +21,7 @@ if (!$content) { $content = elgg_echo("videolist:none"); } -//$sidebar = elgg_view('videolist/sidebar', array()); +$sidebar = elgg_view('videolist/sidebar', array()); $body = elgg_view_layout('content', array( 'filter_context' => 'friends', diff --git a/pages/videolist/watch.php b/pages/videolist/watch.php index fc9bd1a68..3a740f396 100644 --- a/pages/videolist/watch.php +++ b/pages/videolist/watch.php @@ -27,10 +27,16 @@ elgg_push_breadcrumb($title); $content = elgg_view_entity($videolist_item, array('full_view' => true)); $content .= elgg_view_comments($videolist_item); +$sidebar = elgg_view('videolist/sidebar', array( + 'show_comments' => false, + 'show_videolist' => true, +)); + $body = elgg_view_layout('content', array( 'content' => $content, 'title' => $title, 'filter' => '', + 'sidebar' => $sidebar, )); echo elgg_view_page($title, $body); |