}
// Output result
-page_draw("XML-RPC", elgg_view("xml-rpc/output", array('result' => $result)));
\ No newline at end of file
+echo elgg_view_page("XML-RPC", elgg_view("xml-rpc/output", array('result' => $result)));
\ No newline at end of file
}
$body = elgg_view_layout('administration', $content);
- page_draw($title, $body, 'page_shells/admin');
+ echo elgg_view_page($title, $body, 'page_shells/admin');
}
/**
$code = $exception->getCode() == 0 ? ErrorResult::$RESULT_FAIL : $exception->getCode();
$result = new ErrorResult($exception->getMessage(), $code, NULL);
- page_draw($exception->getMessage(), elgg_view("api/output", array("result" => $result)));
+ echo elgg_view_page($exception->getMessage(), elgg_view("api/output", array("result" => $result)));
}
elgg_set_viewtype('failsafe');
$body = elgg_view("messages/exceptions/exception", array('object' => $exception));
- page_draw(elgg_echo('exception:title'), $body);
+ echo elgg_view_page(elgg_echo('exception:title'), $body);
}
/**
function elgg_walled_garden_index() {
$login = elgg_view('account/forms/login_walled_garden');
- page_draw('', $login, 'page_shells/walled_garden');
+ echo elgg_view_page('', $login, 'page_shells/walled_garden');
// @hack Index must exit to keep plugins from continuing to extend
exit;
$tags = display_tagcloud(0, 100, 'tags');
$body = elgg_view_layout('one_column_with_sidebar', $title . $tags);
- page_draw(elgg_echo('tags:site_cloud'), $body);
+ echo elgg_view_page(elgg_echo('tags:site_cloud'), $body);
break;
}
}
$title = elgg_echo('resetpassword');
$content = elgg_view_title(elgg_echo('resetpassword')) . $form;
- page_draw($title, elgg_view_layout('one_column', $content));
+ echo elgg_view_page($title, elgg_view_layout('one_column', $content));
}
/**
' . elgg_view('account/forms/login') . '
</div>
';
- page_draw('test', $content);
+ echo elgg_view_page('test', $content);
}
/**
$content = elgg_view("xml-rpc/output", $vars);
- page_draw($exception->getMessage(), $content);
+ echo elgg_view_page($exception->getMessage(), $content);
}
//set_context('not_main');
$body = elgg_view_layout('one_column_with_sidebar', 'Look right.');
-page_draw('Submenu Test', $body);
+echo elgg_view_page('Submenu Test', $body);
$login_form = elgg_view('account/forms/login');
$content = elgg_view_layout('one_column_with_sidebar', $title . $activity, $login_form);
- page_draw(null, $content);
+ echo elgg_view_page(null, $content);
}
$title = elgg_echo("install:$step");
$body = elgg_view("install/pages/$step", $vars);
- page_draw(
+ echo elgg_view_page(
$title,
$body,
'page_shells/default',
$body = elgg_view_layout('one_column_with_sidebar', $content, $sidebar);
- page_draw($title, $body);
+ echo elgg_view_page($title, $body);
}
/**
$body = elgg_view_layout('one_column_with_sidebar', $area1.$area2, $area3);
// Draw it
-echo page_draw(elgg_echo('bookmarks:bookmarklet'),$body);
\ No newline at end of file
+echo elgg_view_page(elgg_echo('bookmarks:bookmarklet'),$body);
\ No newline at end of file
$content = elgg_echo("bookmarks:unknown_user");
$body = elgg_view_layout('one_column_with_sidebar', $content, $sidebar);
- echo page_draw(sprintf(elgg_echo("bookmarks:user"), elgg_get_page_owner()->name), $body);
+ echo elgg_view_page(sprintf(elgg_echo("bookmarks:user"), elgg_get_page_owner()->name), $body);
return FALSE;
}
$content = $header . $content;
$body = elgg_view_layout('one_column_with_sidebar', $content, $sidebar);
- echo page_draw(sprintf(elgg_echo("bookmarks:user"), elgg_get_page_owner()->name), $body);
+ echo elgg_view_page(sprintf(elgg_echo("bookmarks:user"), elgg_get_page_owner()->name), $body);
return TRUE;
}
$body = elgg_view_layout('two_column_left_sidebar', '', $content);
-page_draw($title, $body);
+echo elgg_view_page($title, $body);
);
$body .= "</div>";
// create page
-page_draw(elgg_echo('diagnostics'), elgg_view_layout("one_column_with_sidebar", $body));
+echo elgg_view_page(elgg_echo('diagnostics'), elgg_view_layout("one_column_with_sidebar", $body));
if (!isset($page[0]) || empty($page[0])) {
$content = elgg_view('ecml/help');
$body = elgg_view_layout('one_column_with_sidebar', $content);
- echo page_draw(elgg_echo('ecml:help'), $body);
+ echo elgg_view_page(elgg_echo('ecml:help'), $body);
} else {
// asking for detailed help about a keyword
$keyword = $page[0];
exit;
} else {
$body = elgg_view_layout('one_column_with_sidebar', $content);
- echo page_draw(elgg_echo('ecml:help'), $body);
+ echo elgg_view_page(elgg_echo('ecml:help'), $body);
}
}
set_context('admin');
$content = elgg_view('ecml/admin/ecml_admin');
$body = elgg_view_layout('one_column_with_sidebar', $content);
- echo page_draw(elgg_echo('ecml:admin'), $body);
+ echo elgg_view_page(elgg_echo('ecml:admin'), $body);
}
/**
$area1 .= elgg_view("file/upload", array('entity' => $file));
$body = elgg_view_layout('one_column_with_sidebar', $area1);
-page_draw($title, $body);
+echo elgg_view_page($title, $body);
$content = "<div class='files'>".$area1.$area2."</div>";
$body = elgg_view_layout('one_column_with_sidebar', $content, $area3);
- page_draw($title, $body);
+ echo elgg_view_page($title, $body);
?>
\ No newline at end of file
$content = "<div class='files'>".$area1.$area2."</div>";
$body = elgg_view_layout('one_column_with_sidebar', $content, $area3);
- page_draw($title, $body);
+ echo elgg_view_page($title, $body);
?>
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $content);
- page_draw($title, $body);
+ echo elgg_view_page($title, $body);
?>
\ No newline at end of file
$area1 .= elgg_view("file/upload", array('container_guid' => $container_guid));
$body = elgg_view_layout('one_column_with_sidebar', $area1);
- page_draw(elgg_echo("file:upload"), $body);
+ echo elgg_view_page(elgg_echo("file:upload"), $body);
?>
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $content, $area3);
- page_draw($title, $body);
+ echo elgg_view_page($title, $body);
$body = elgg_view_layout('one_column_with_sidebar', $area1);\r
\r
// Finally draw the page\r
-page_draw($title, $body);
\ No newline at end of file
+echo elgg_view_page($title, $body);
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $area1.$area2);
// Display page
-page_draw(elgg_echo('groups:addtopic'),$body);
\ No newline at end of file
+echo elgg_view_page(elgg_echo('groups:addtopic'),$body);
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $area1, $area2);
// Finally draw the page
- page_draw($title, $body);
\ No newline at end of file
+ echo elgg_view_page($title, $body);
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $body);
- page_draw($title, $body);
+ echo elgg_view_page($title, $body);
?>
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $area2);
// Display page
-page_draw(elgg_echo('groups:edittopic'),$body);
\ No newline at end of file
+echo elgg_view_page(elgg_echo('groups:edittopic'),$body);
\ No newline at end of file
$title = elgg_echo('item:object:groupforumtopic');
// Finally draw the page
-page_draw($title, $body);
\ No newline at end of file
+echo elgg_view_page($title, $body);
\ No newline at end of file
}
// Finally draw the page
- page_draw($title, $body);
+ echo elgg_view_page($title, $body);
?>
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $area1);
// Finally draw the page
- page_draw($title, $body);
+ echo elgg_view_page($title, $body);
?>
$body = elgg_view_layout('one_column_with_sidebar', $area2);
-page_draw($title, $body);
\ No newline at end of file
+echo elgg_view_page($title, $body);
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $area1.$area2);
- page_draw($title, $body);
+ echo elgg_view_page($title, $body);
?>
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $area1.$area2);
// Finally draw the page
- page_draw($title, $body);
+ echo elgg_view_page($title, $body);
?>
$body = elgg_view_layout('one_column_with_sidebar', $area1.$area2);
- page_draw($title, $body);
+ echo elgg_view_page($title, $body);
?>
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $area1.$area2);
- page_draw($title, $body);
+ echo elgg_view_page($title, $body);
?>
\ No newline at end of file
$body = elgg_view_layout("one_column_with_sidebar", $area2);
// Display page
- page_draw($topic->title,$body);
+ echo elgg_view_page($topic->title,$body);
?>
\ No newline at end of file
$body = elgg_view('invitefriends/form');
$body = elgg_view_layout('one_column_with_sidebar', $body);
-page_draw(elgg_echo('friends:invite'), $body);
+echo elgg_view_page(elgg_echo('friends:invite'), $body);
$body = elgg_view_layout("one_column_with_sidebar", $area2, $area1);
// Display page
-page_draw(sprintf(elgg_echo('members:members'), $page_owner->name), $body);
\ No newline at end of file
+echo elgg_view_page(sprintf(elgg_echo('members:members'), $page_owner->name), $body);
\ No newline at end of file
$body = elgg_view_layout("two_column_left_sidebar", '', $area2);
// Display page
-page_draw(elgg_echo('messageboard:history:title'),$body);
+echo elgg_view_page(elgg_echo('messageboard:history:title'),$body);
$body = elgg_view_layout("two_column_left_sidebar", '', $area2);
// Display page
-page_draw(sprintf(elgg_echo('messageboard:user'),$entity->name),$body);
+echo elgg_view_page(sprintf(elgg_echo('messageboard:user'),$entity->name),$body);
// Draw page
-page_draw(sprintf(elgg_echo('messages:user'),$page_owner->name),$body);
+echo elgg_view_page(sprintf(elgg_echo('messages:user'),$page_owner->name),$body);
$body = elgg_view_layout("one_column_with_sidebar", $content, $sidebar);
// Display page
-page_draw(sprintf(elgg_echo('messages:message')),$body);
\ No newline at end of file
+echo elgg_view_page(sprintf(elgg_echo('messages:message')),$body);
\ No newline at end of file
$body = elgg_view_layout("one_column_with_sidebar", $area2, $area3);
// Draw page
-page_draw(sprintf(elgg_echo('messages:send'),$page_owner->name),$body);
\ No newline at end of file
+echo elgg_view_page(sprintf(elgg_echo('messages:send'),$page_owner->name),$body);
\ No newline at end of file
$body = elgg_view_layout("one_column_with_sidebar", $area2);
// Draw page
-page_draw(sprintf(elgg_echo('messages:sentMessages'),$page_owner->name),$body);
+echo elgg_view_page(sprintf(elgg_echo('messages:sentMessages'),$page_owner->name),$body);
$body = elgg_view_layout('one_column_with_sidebar', $body);
-page_draw(elgg_echo('notifications:subscriptions:changesettings:groups'), $body);
+echo elgg_view_page(elgg_echo('notifications:subscriptions:changesettings:groups'), $body);
$body = elgg_view_layout('one_column_with_sidebar', $body);
-page_draw(elgg_echo('notifications:subscriptions:changesettings'), $body);
+echo elgg_view_page(elgg_echo('notifications:subscriptions:changesettings'), $body);
$body = elgg_view_layout('one_column_with_sidebar', $body);
-page_draw($title, $body);
\ No newline at end of file
+echo elgg_view_page($title, $body);
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $content, $sidebar);
-page_draw($title, $body);
\ No newline at end of file
+echo elgg_view_page($title, $body);
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $body);
// Finally draw the page
-page_draw($title, $body);
+echo elgg_view_page($title, $body);
$body = elgg_view_layout('one_column_with_sidebar', $area2, $area1);
-page_draw($title, $body);
\ No newline at end of file
+echo elgg_view_page($title, $body);
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $body, $sidebar);
// Finally draw the page
-page_draw($title, $body);
\ No newline at end of file
+echo elgg_view_page($title, $body);
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $area2, $area1);
-page_draw($title, $body);
\ No newline at end of file
+echo elgg_view_page($title, $body);
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $body);
// Finally draw the page
-page_draw($title, $body);
\ No newline at end of file
+echo elgg_view_page($title, $body);
\ No newline at end of file
$body = elgg_view_layout("one_column_with_sidebar", $area1);
// Draw the page
-page_draw(elgg_echo("profile:edit"),$body);
+echo elgg_view_page(elgg_echo("profile:edit"),$body);
$body = elgg_view_layout("one_column_with_sidebar", $area1);
// Draw the page
-page_draw(elgg_echo("profile:editicon"), $body);
+echo elgg_view_page(elgg_echo("profile:editicon"), $body);
$title = elgg_echo("profile");
}
$body = elgg_view_layout("one_column", $body);
-page_draw($title, $body);
\ No newline at end of file
+echo elgg_view_page($title, $body);
\ No newline at end of file
break;
}
- page_draw($title, $content);
+ echo elgg_view_page($title, $content);
return;
}
$body = elgg_view_layout('one_column_with_sidebar', $area2, $area3);
// Draw it
-page_draw(elgg_echo('reportedcontent:this'),$body);
\ No newline at end of file
+echo elgg_view_page(elgg_echo('reportedcontent:this'),$body);
\ No newline at end of file
if (empty($callback)) {
$body .= elgg_view('riverdashboard/container', array('body' => $nav . $extend . $river . elgg_view('riverdashboard/js')));
- page_draw($title_wording,elgg_view_layout('one_column_with_sidebar', $title . $body, $sidebar));
+ echo elgg_view_page($title_wording,elgg_view_layout('one_column_with_sidebar', $title . $body, $sidebar));
} else {
header("Content-type: text/html; charset=UTF-8");
echo $nav . $river . elgg_view('riverdashboard/js');
$body .= elgg_view('page_elements/elgg_content', array('body' => elgg_echo('search:no_query')));
$layout = elgg_view_layout('one_column_with_sidebar', $body);
- page_draw($title, $layout);
+ echo elgg_view_page($title, $layout);
return;
}
$title = sprintf(elgg_echo('search:results'), "\"{$params['query']}\"");
-page_draw($title, $layout);
+echo elgg_view_page($title, $layout);
$sidebar .= elgg_view('sitepages/members', array('members' => $members));\r
\r
$content = elgg_view_layout('frontpage', $content, $sidebar);\r
-page_draw(null, $content);\r
+echo elgg_view_page(null, $content);\r
//set_context('sitepages:front');
//if ($contents = elgg_view('sitepages/custom_frontpage')) {
- // page_draw(FALSE, $contents);
+ // echo elgg_view_page(FALSE, $contents);
// set_context($context);
// return TRUE to tell index.php we've got its content right here.
break;
}
- page_draw($title, $content);
+ echo elgg_view_page($title, $content);
}
$body = elgg_view_layout("one_column_with_sidebar", $title . $tags, $sidebar);
// Display page
-page_draw(sprintf(elgg_echo('tagcloud:site:title'),$page_owner->name),$body);
\ No newline at end of file
+echo elgg_view_page(sprintf(elgg_echo('tagcloud:site:title'),$page_owner->name),$body);
\ No newline at end of file
$body = elgg_view_layout("one_column_with_sidebar", $area2);
// Display page
- page_draw(elgg_echo('thewire:addpost'),$body);
+ echo elgg_view_page(elgg_echo('thewire:addpost'),$body);
?>
\ No newline at end of file
$body = elgg_view_layout("one_column_with_sidebar", $area2);
// Display page
- page_draw(elgg_echo('thewire:everyone'),$body);
+ echo elgg_view_page(elgg_echo('thewire:everyone'),$body);
?>
$body = elgg_view_layout("one_column_with_sidebar", $area2);
// Display page
- page_draw(sprintf(elgg_echo('thewire:user'),$page_owner->name),$body);
+ echo elgg_view_page(sprintf(elgg_echo('thewire:user'),$page_owner->name),$body);
?>
\ No newline at end of file
$area1 = elgg_view_title(elgg_echo("user:password:lost"));
$area2 = elgg_view("account/forms/forgotten_password");
$content = elgg_view_layout("one_column_with_sidebar", $area1 . $area2);
- page_draw(elgg_echo('user:password:lost'), $content);
+ echo elgg_view_page(elgg_echo('user:password:lost'), $content);
} else {
forward();
}
\ No newline at end of file
$area2 = elgg_view("account/forms/register",
array('friend_guid' => $friend_guid, 'invitecode' => $invitecode));
- page_draw(elgg_echo("register"), elgg_view_layout("one_column_with_sidebar", $area1 . $area2));
+ echo elgg_view_page(elgg_echo("register"), elgg_view_layout("one_column_with_sidebar", $area1 . $area2));
// Otherwise, forward to the index page
} else {
// Try and get the user from the username and set the page body accordingly
$body = elgg_view_layout('widgets', "", "", $intro_message);
-page_draw($title, $body);
\ No newline at end of file
+echo elgg_view_page($title, $body);
\ No newline at end of file
$content = "Riverdashboard not loaded";
}
$content = elgg_view_layout('one_column_with_sidebar', $title . $content);
-page_draw(elgg_echo('content:latest'), $content);
+echo elgg_view_page(elgg_echo('content:latest'), $content);
// Display the page
if ($shell) {
- page_draw($title, $body);
+ echo elgg_view_page($title, $body);
} else {
header("Content-type: text/html; charset=UTF-8");
echo $title;
$body = elgg_view_layout('two_column_left_sidebar', $area1, $area2);
-page_draw("", $body);
\ No newline at end of file
+echo elgg_view_page("", $body);
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $content);
-page_draw(elgg_echo('friends:collections:add'), $body);
+echo elgg_view_page(elgg_echo('friends:collections:add'), $body);
$body = elgg_view_layout('one_column_with_sidebar', $content);
-page_draw($title, $body);
+echo elgg_view_page($title, $body);
$body = elgg_view_layout('one_column_with_sidebar', $content);
-page_draw($title, $body);
\ No newline at end of file
+echo elgg_view_page($title, $body);
\ No newline at end of file
$body = elgg_view_layout('one_column_with_sidebar', $content);
-page_draw($title, $body);
+echo elgg_view_page($title, $body);
$body = elgg_view_layout('one_column_with_sidebar', $content);
-page_draw($title, $body);
+echo elgg_view_page($title, $body);
$body = elgg_view_layout('one_column_with_sidebar', $content);
-page_draw(elgg_echo("usersettings:plugins"), $body);
+echo elgg_view_page(elgg_echo("usersettings:plugins"), $body);
$body = elgg_view_layout('one_column_with_sidebar', $content);
-page_draw(elgg_echo("usersettings:statistics"), $body);
+echo elgg_view_page(elgg_echo("usersettings:statistics"), $body);
$body = elgg_view_layout("one_column_with_sidebar", $content);
-page_draw(elgg_echo("usersettings:user"), $body);
+echo elgg_view_page(elgg_echo("usersettings:user"), $body);
}
// Output the result
-page_draw($method, elgg_view("api/output", array("result" => $result)));
\ No newline at end of file
+echo elgg_view_page($method, elgg_view("api/output", array("result" => $result)));
\ No newline at end of file
throw new InvalidParameterException(elgg_echo('InvalidParameterException:MissingParameter'));
}
-page_draw($title, elgg_view_layout('one_column_with_sidebar', elgg_view_title($title) . $body));
\ No newline at end of file
+echo elgg_view_page($title, elgg_view_layout('one_column_with_sidebar', elgg_view_title($title) . $body));
\ No newline at end of file