From 354d9eebf2c84b66f1103a61a8f4ffa832f350b6 Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 4 Mar 2010 00:59:34 +0000 Subject: Updated external pages to new interface. git-svn-id: http://code.elgg.org/elgg/trunk@5268 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/expages/forms/editfront.php | 78 ---------------------- 1 file changed, 78 deletions(-) delete mode 100644 mod/externalpages/views/default/expages/forms/editfront.php (limited to 'mod/externalpages/views/default/expages/forms') diff --git a/mod/externalpages/views/default/expages/forms/editfront.php b/mod/externalpages/views/default/expages/forms/editfront.php deleted file mode 100644 index ee4c89989..000000000 --- a/mod/externalpages/views/default/expages/forms/editfront.php +++ /dev/null @@ -1,78 +0,0 @@ - - * @copyright Curverider Ltd 2008-2010 - * @link http://elgg.com/ - * - */ - - //action - $action = "expages/addfront"; - - //grab the required entity - $page_contents = elgg_get_entities(array('type' => 'object', 'subtype' => 'front', 'limit' => 1)); - - if($page_contents){ - foreach($page_contents as $pc){ - $description_right = $pc->description; - $description_left = $pc->title; - $guid = $pc->guid; - } - }else { - $tags = ""; - $description = ""; - } - - // set the required form variables - $input_area_left = elgg_view('input/longtext', array('internalname' => 'front_left', 'value' => $description_left)); - $input_area_right = elgg_view('input/longtext', array('internalname' => 'front_right', 'value' => $description_right)); - $submit_input = elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('save'))); - $hidden_guid = elgg_view('input/hidden', array('internalname' => 'front_guid', 'value' => $guid)); - $lefthand = elgg_echo("expages:lefthand"); - $righthand = elgg_echo("expages:righthand"); - - //preview link - // echo "
" . elgg_echo('expages:preview') . "
"; - - //construct the form - $form_body = <<$lefthand -

$input_area_left


-

$righthand

-

$input_area_right

- - $hidden_guid -
- $submit_input - -EOT; -?> - "{$vars['url']}action/$action", 'body' => $form_body)); -?> - - - \ No newline at end of file -- cgit v1.2.3