* - one_column_with_sidebar A content column with sidebar.
* - widgets A widget canvas.
*
- * The layout views take the form canvas/layouts/$layout_name
+ * The layout views take the form layout/shells/$layout_name
* See the individual layouts for what options are supported. The two most
* common layouts have these parameters:
* one_column
* content => string
* sidebar => string (optional)
*
- * @param string $layout The name of the view in canvas/layouts/.
+ * @param string $layout The name of the view in layout/shells/.
* @param array $vars Associative array of parameters for the layout view
*
* @return string The layout
$param_array = $vars;
}
- if (elgg_view_exists("layouts/{$layout_name}")) {
- return elgg_view("layouts/{$layout_name}", $param_array);
+ if (elgg_view_exists("layout/shells/$layout_name")) {
+ return elgg_view("layout/shells/$layout_name", $param_array);
} else {
- return elgg_view("layouts/default", $param_array);
+ return elgg_view("layout/shells/default", $param_array);
}
}
* Fixed width media on the side (image, icon, flash, etc.).
* Descriptive content filling the rest of the column.
*
- * This is a shortcut for {@elgg_view layout_elements/media}.
+ * This is a shortcut for {@elgg_view layout/objects/media}.
*
* @param string $icon The icon and other information
* @param string $body Description content
function elgg_view_media($icon, $body, $vars = array()) {
$vars['icon'] = $icon;
$vars['body'] = $body;
- return elgg_view('layout_elements/media', $vars);
+ return elgg_view('layout/objects/media', $vars);
}
/**
$comments = get_annotations(0, "object", "blog", "generic_comment", "", 0, 4, 0, "desc");
$title = elgg_echo('generic_comments:latest');
$body = elgg_view('comments/latest', array('comments' => $comments));
-echo elgg_view('layout_elements/module', array('title' => $title, 'body' => $body));
+echo elgg_view('layout/objects/module', array('title' => $title, 'body' => $body));
// only show archives for users or groups.
// This is a limitation of the URL schema.
}
$content .= '</ul>';
- echo elgg_view('layout_elements/module', array('title' => $title, 'body' => $content));
+ echo elgg_view('layout/objects/module', array('title' => $title, 'body' => $content));
}
// friends page lists all tags; mine lists owner's