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 "
"; if (sizeof($column_widgets) > 0) { foreach ($column_widgets as $widget) { if (array_key_exists($widget->handler, $widget_types)) { echo elgg_view_entity($widget, array('show_access' => $show_access)); } } } echo '
'; }