26 echo 
'<div class="elgg-layout-widgets">';
 
   30         echo 
elgg_view(
'page/layouts/widgets/add_button');
 
   41 if (isset(
$vars[
'content'])) {
 
   42     echo 
$vars[
'content'];
 
   46 for ($column_index = 1; $column_index <= 
$num_columns; $column_index++) {
 
   47     if (isset(
$widgets[$column_index])) {
 
   48         $column_widgets = 
$widgets[$column_index];
 
   50         $column_widgets = array();
 
   53     echo 
"<div class=\"$widget_class elgg-widgets\" id=\"elgg-widget-col-$column_index\">";
 
   54     if (
sizeof($column_widgets) > 0) {
 
   55         foreach ($column_widgets as 
$widget) {
 
   66 echo 
elgg_view(
'graphics/ajax_loader', array(
'id' => 
'elgg-widget-loader'));
 
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
 
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
 
elgg_get_context()
Get the current context.
 
elgg_push_context($context)
Push a context onto the top of the stack.
 
elgg_pop_context()
Removes and returns the top context string from the stack.
 
if(file_exists($welcome)) $vars
 
if(elgg_can_edit_widget_layout($context)) if(isset($vars['content'])) $widget_class
 
$num_columns
Elgg widgets layout.
 
elgg_view_entity(\ElggEntity $entity, $vars=array(), $bypass=false, $debug=false)
Returns a string of a rendered entity.
 
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype='')
Return a parsed view.