From dd489f623628930e527e8112142576bb0de24b57 Mon Sep 17 00:00:00 2001 From: Pete Harris Date: Mon, 29 Mar 2010 16:59:14 +0000 Subject: Beginnings of updating VideoList to v1.8 interface, edit, delete, favorite added. Amongst other updates Friends view and breadcrumbs added. --- new.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'new.php') diff --git a/new.php b/new.php index 583e6bc25..169a48fb5 100644 --- a/new.php +++ b/new.php @@ -9,7 +9,7 @@ * @copyright Prateek Choudhary */ - +global $CONFIG; // Render the video upload page // Load Elgg engine require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); @@ -36,10 +36,15 @@ if(isset($container_guid) && !empty($container_guid)){ } } -$title = sprintf(elgg_echo("videolist:new"), $page_owner->name); +$title = sprintf(elgg_echo("videolist:add")); + +//set up breadcrumbs +elgg_push_breadcrumb(elgg_echo('videolist:all'), $CONFIG->wwwroot."mod/videolist/all.php"); +elgg_push_breadcrumb(elgg_echo("videolist:add")); -$area2 = elgg_view_title($title); +$area1 = elgg_view('navigation/breadcrumbs'); +$area1 .= elgg_view('page_elements/content_header', array('context' => "action", 'type' => 'videolist')); $area2 .= elgg_view("forms/add"); -$body = elgg_view_layout('one_column_with_sidebar', $area1 . $area2); +$body = elgg_view_layout('one_column_with_sidebar', $area1 . $area2, $area3); page_draw($title, $body); \ No newline at end of file -- cgit v1.2.3