From d4139ca10963001c830a72c0f70f2c2dd8edec57 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 23 Apr 2011 00:30:17 +0000 Subject: Fixes #3042: Theme preview navs now match css/elements/*. Also did a major cleanup of the presentation. git-svn-id: http://code.elgg.org/elgg/trunk@9019 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../default/theme_preview/modules/widgets.php | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 mod/developers/views/default/theme_preview/modules/widgets.php (limited to 'mod/developers/views/default/theme_preview/modules/widgets.php') diff --git a/mod/developers/views/default/theme_preview/modules/widgets.php b/mod/developers/views/default/theme_preview/modules/widgets.php new file mode 100644 index 000000000..8c9fd6483 --- /dev/null +++ b/mod/developers/views/default/theme_preview/modules/widgets.php @@ -0,0 +1,64 @@ + +
+ +handler = 'friends'; + $obj->title = "Widget $i"; + $w[] = $obj; +} +$column1 = array($w[0], $w[1]); +$column2 = array($w[2], $w[3]); +$column3 = array($w[4], $w[5]); +$widgets = array(1 => $column1, 2 => $column2, 3 => $column3); +$num_columns = 3; +$widget_class = "elgg-col-1of{$num_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 '
'; +} +?> +
+ -- cgit v1.2.3