* - two_sidebar A content column with two sidebars.
* - widgets A widget canvas.
*
- * The layout views take the form layout/shells/$layout_name
+ * The layout views take the form page/layouts/$layout_name
* See the individual layouts for what options are supported. The three most
* common layouts have these parameters:
* one_column
* filter_context => string (selected content filter)
* See the content layout view for more parameters
*
- * @param string $layout The name of the view in layout/shells/.
+ * @param string $layout The name of the view in page/layouts/.
* @param array $vars Associative array of parameters for the layout view
*
* @return string The layout
$param_array = $vars;
}
- if (elgg_view_exists("layout/shells/$layout_name")) {
- return elgg_view("layout/shells/$layout_name", $param_array);
+ if (elgg_view_exists("page/layouts/$layout_name")) {
+ return elgg_view("page/layouts/$layout_name", $param_array);
} else {
- return elgg_view("layout/shells/default", $param_array);
+ return elgg_view("page/layouts/default", $param_array);
}
}
// backward compatability support for plugins that are not using the new approach
// of routing through pg/admin
if (elgg_get_context() == 'admin') {
- echo elgg_view('layout/shells/admin', $vars);
+ echo elgg_view('page/layouts/admin', $vars);
return true;
}
-echo elgg_view('layout/shells/one_sidebar', $vars);
+echo elgg_view('page/layouts/one_sidebar', $vars);