From 53433d73e36f36ccff2df95447c48c433ba0efef Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 5 Feb 2011 16:19:52 +0000 Subject: changed named from css preview to theming preview git-svn-id: http://code.elgg.org/elgg/trunk@8029 36083f99-b078-4883-b0ff-0f9b5a30f544 --- documentation/theming/preview/widgets.php | 63 +++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 documentation/theming/preview/widgets.php (limited to 'documentation/theming/preview/widgets.php') diff --git a/documentation/theming/preview/widgets.php b/documentation/theming/preview/widgets.php new file mode 100644 index 000000000..ca45132df --- /dev/null +++ b/documentation/theming/preview/widgets.php @@ -0,0 +1,63 @@ + + +
+

+ Index > +

+ +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 '
'; +} +?> +
+ + \ No newline at end of file -- cgit v1.2.3