From 9cd7ebd1ece016577c435b85f56d6c30545ff363 Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 7 Dec 2010 02:47:31 +0000 Subject: reorganized the layout views git-svn-id: http://code.elgg.org/elgg/trunk@7553 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/layout/shells/widgets.php | 46 +++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 views/default/layout/shells/widgets.php (limited to 'views/default/layout/shells/widgets.php') diff --git a/views/default/layout/shells/widgets.php b/views/default/layout/shells/widgets.php new file mode 100644 index 000000000..130b2eaad --- /dev/null +++ b/views/default/layout/shells/widgets.php @@ -0,0 +1,46 @@ +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 "
"; + if (is_array($column_widgets) && sizeof($column_widgets) > 0) { + foreach ($column_widgets as $widget) { + echo elgg_view_entity($widget); + } + } + echo '
'; +} + +elgg_pop_context(); \ No newline at end of file -- cgit v1.2.3