aboutsummaryrefslogtreecommitdiff
path: root/browse.php
diff options
context:
space:
mode:
authorPete Harris <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-30 14:23:05 +0000
committerPete Harris <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-30 14:23:05 +0000
commit05129a184b2c88cf082ebf230a3dce7b6510ec8f (patch)
tree744402f97eba2cb76978224eb48c75850604d58f /browse.php
parent4fa7aaa7e363514dc2def25cceafd8cf4333404c (diff)
downloadelgg-05129a184b2c88cf082ebf230a3dce7b6510ec8f.tar.gz
elgg-05129a184b2c88cf082ebf230a3dce7b6510ec8f.tar.bz2
Further updates to VideoList UI. Search results styled to match new elgg list style. Videos from search now play in popup modal with screen greyed out. Individual video page now has edit and delete, breadcrumbs, latest comments etc..
Diffstat (limited to 'browse.php')
-rw-r--r--browse.php34
1 files changed, 22 insertions, 12 deletions
diff --git a/browse.php b/browse.php
index 1ad5b3221..c8314b9c6 100644
--- a/browse.php
+++ b/browse.php
@@ -1,14 +1,16 @@
<?php
-
/**
- * Elgg Video Plugin
- * This plugin allows users to create a library of youtube/vimeo/metacafe videos
- *
- * @package Elgg
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Prateek Choudhary <synapticfield@gmail.com>
- * @copyright Prateek Choudhary
- */
+* Elgg Video Plugin
+* This plugin allows users to create a library of youtube/vimeo/metacafe videos
+*
+* @package Elgg
+* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+* @author Prateek Choudhary <synapticfield@gmail.com>
+* @copyright Prateek Choudhary
+*/
+
+global $CONFIG;
+
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
//get videolist GUID
@@ -31,11 +33,19 @@ if(isset($container_guid) && !empty($container_guid)) {
}
}
-$title = sprintf(elgg_echo("videolist:browse"), $page_owner->name);
+elgg_push_breadcrumb(elgg_echo('videolist:find'), $CONFIG->wwwroot."mod/videolist/all.php");
+elgg_push_breadcrumb(elgg_echo("videolist:browsemenu"));
-$area2 = elgg_view_title($title);
+$title = elgg_echo("videolist:browsemenu");
+
+$area1 = elgg_view('navigation/breadcrumbs');
+$area1 .= elgg_view_title($title);
$area2 .= elgg_view("forms/browsetube");
-$body = elgg_view_layout('one_column_with_sidebar', $area1 . $area2);
+// 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));
+
+$body = elgg_view_layout('one_column_with_sidebar', $area1.$area2, $area3);
page_draw($title, $body); \ No newline at end of file