From e8123c694c232509ea0c96ab19edf7cb1168b571 Mon Sep 17 00:00:00 2001 From: Pete Harris Date: Mon, 29 Mar 2010 16:51:01 +0000 Subject: Updated VideoList to be consistent with v1.8 mods and so the new generic page header works. --- all.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 all.php (limited to 'all.php') diff --git a/all.php b/all.php new file mode 100644 index 000000000..263702f61 --- /dev/null +++ b/all.php @@ -0,0 +1,35 @@ + + * @copyright Prateek Choudhary + */ + +// Render the video upload page +// Load Elgg engine +require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); +gatekeeper(); + +// Get the current page's owner +$page_owner = page_owner_entity(); +if ($page_owner === false || is_null($page_owner)) { + $page_owner = $_SESSION['user']; + set_page_owner($_SESSION['guid']); +} + +$title = sprintf(elgg_echo("videolist:search")); + +// Get objects +$area2 = elgg_view_title($title); +set_input('show_viewtype', 'all'); +$area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'videolist', 'container_guids' => page_owner(), 'limit' => 10, 'full_view' => TRUE, 'view_type_toggle' => FALSE, 'pagination' => TRUE)); + +set_context('videolist'); +$body = elgg_view_layout('one_column_with_sidebar',$area1. $area2); + +// Finally draw the page +page_draw($title, $body); \ No newline at end of file -- cgit v1.2.3