guid, $context); if (elgg_can_edit_widget_layout($context)) { if ($show_add_widgets) { echo elgg_view('widgets/add_button'); } $params = array( 'widgets' => $widgets, 'context' => $context, ); echo elgg_view('widgets/add_panel', $params); } echo $vars['box']; $widget_class = "widget_{$num_columns}_columns"; for ($column_index = 1; $column_index <= $num_columns; $column_index++) { $column_widgets = $widgets[$column_index]; echo "
'; } elgg_pop_context();