guid, $context); if (elgg_can_edit_widgets()) { echo elgg_view('widgets/add', array('widgets' => $widgets)); } echo $vars['box']; $widget_class = "widget_col_$num_columns"; for ($column_index = 1; $column_index <= $num_columns; $column_index++) { $widgets = get_widgets($owner->guid, $context, $column_index); // test code during design and implementation $widget1 = new ElggWidget(); $widget1->handler = 'test'; $widget2 = new ElggWidget(); $widget2->handler = 'test'; $widgets = array($widget1, $widget2); $first = ($column_index == 1) ? 'widget_first_col' : ''; echo "
'; } elgg_pop_context();