}
$body = elgg_view_layout('administration', array('content' => $content));
- echo elgg_view_page($title, $body, 'page_shells/admin');
+ echo elgg_view_page($title, $body, 'admin');
}
/**
function elgg_walled_garden_index() {
$login = elgg_view('account/login_walled_garden');
- echo elgg_view_page('', $login, 'page_shells/walled_garden');
+ echo elgg_view_page('', $login, 'walled_garden');
// @hack Index must exit to keep plugins from continuing to extend
exit;
*
* @param string $title Title
* @param string $body Body
- * @param string $page_shell Optional page shell to use.
+ * @param string $page_shell Optional page shell to use. See page_shells view directory
* @param array $vars Optional vars array to pass to the page
* shell. Automatically adds title, body, and sysmessages
*
* @return string The contents of the page
* @since 1.8
*/
-function elgg_view_page($title, $body, $page_shell = 'page_shells/default', $vars = array()) {
+function elgg_view_page($title, $body, $page_shell = 'default', $vars = array()) {
// get messages - try for errors first
$sysmessages = system_messages(NULL, "errors");
$vars['sysmessages'] = $sysmessages;
// Draw the page
- $output = elgg_view($page_shell, $vars);
+ $output = elgg_view("page_shells/$page_shell", $vars);
$vars['page_shell'] = $page_shell;
$vars = array(
'sidebar' => $sidebar
);
- echo elgg_view_page($title, $body, 'page_shells/default', $vars);
+ echo elgg_view_page($title, $body, 'default', $vars);
}
/**