From 55724ff6f6818f2c1b16d4bacd912ae2eb745fdb Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 13 Aug 2008 12:27:12 +0000 Subject: Added a new latest activity title to the front page git-svn-id: https://code.elgg.org/elgg/trunk@1895 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/pages/new.php | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 mod/pages/new.php (limited to 'mod/pages/new.php') diff --git a/mod/pages/new.php b/mod/pages/new.php new file mode 100644 index 000000000..8dea9add1 --- /dev/null +++ b/mod/pages/new.php @@ -0,0 +1,44 @@ +getGUID()); + } + + //if it is a sub page, provide a link back to parent + if(get_input('parent_guid')){ + $parent = get_entity(get_input('parent_guid')); + + // Breadcrumbs + $area2 .= elgg_view('pages/breadcrumbs', array('page_owner' => $page_owner, 'parent' => $parent, 'add' => true)); + } + + global $CONFIG; + add_submenu_item(sprintf(elgg_echo("pages:user"), page_owner_entity()->name), $CONFIG->url . "pg/pages/owned/" . page_owner_entity()->username); + + $title = elgg_echo("pages:new"); + $area2 .= elgg_view_title($title); + $area2 .= elgg_view("forms/pages/edit"); + + $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2); + + page_draw($title, $body); +?> \ No newline at end of file -- cgit v1.2.3