guid, $context); if (elgg_can_edit_widgets()) { if ($show_add_widgets) { echo elgg_view('widgets/add_button'); } $params = array( 'widgets' => $widgets, 'context' => $context, ); echo elgg_view('widgets/add', $params); } echo $vars['box']; $widget_class = "widget_{$num_columns}_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); echo "
'; } elgg_pop_context();