guid, $context); if (elgg_can_edit_widget_layout($context)) { if ($show_add_widgets) { echo elgg_view('page/layouts/widgets/add_button'); } $params = array( 'widgets' => $widgets, 'context' => $context, 'exact_match' => $exact_match, ); echo elgg_view('page/layouts/widgets/add_panel', $params); } echo $vars['content']; $widget_class = "elgg-col-1of{$num_columns}"; for ($column_index = 1; $column_index <= $num_columns; $column_index++) { if (isset($widgets[$column_index])) { $column_widgets = $widgets[$column_index]; } else { $column_widgets = array(); } echo "
'; } elgg_pop_context(); echo elgg_view('graphics/ajax_loader', array('id' => 'elgg-widget-loader'));