From 4766f36a4d74924f21ff329c4318ce4e069ffa04 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 3 Mar 2010 17:53:05 +0000 Subject: Pulled in the interface changes. git-svn-id: http://code.elgg.org/elgg/trunk@5257 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/defaultwidgets/editor.php | 274 +++++++++++++++++++++ 1 file changed, 274 insertions(+) create mode 100644 mod/defaultwidgets/views/default/defaultwidgets/editor.php (limited to 'mod/defaultwidgets/views') diff --git a/mod/defaultwidgets/views/default/defaultwidgets/editor.php b/mod/defaultwidgets/views/default/defaultwidgets/editor.php new file mode 100644 index 000000000..2241dd264 --- /dev/null +++ b/mod/defaultwidgets/views/default/defaultwidgets/editor.php @@ -0,0 +1,274 @@ + 'object', 'subtype' => 'moddefaultwidgets', 'limit' => 9999)); + + // check if the entity exists + if(isset($entities[0])) { + + // get the widgets for the context + $entity = $entities[0]; + $current_widgets = $entity->$context; + list($left, $middle, $right) = split('%%',$current_widgets); + + // split columns into seperate widgets + $area1widgets = split('::',$left); + $area2widgets = split('::',$middle); + $area3widgets = split('::',$right); + + // clear out variables if no widgets are available + if ($area1widgets[0] == "") $area1widgets = false; + if ($area2widgets[0] == "") $area2widgets = false; + if ($area3widgets[0] == "") $area3widgets = false; + } + +?> + + +
+ +
+

+ +
+ + +
+

+ elgg_echo('widgets:add:description'))); ?> +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ + +

+
+

+
+ + +
+

+
> + 0) { + foreach($area3widgets as $widget) { + if (!empty($rightcolumn_widgets)) { + $rightcolumn_widgets .= "::"; + } + $rightcolumn_widgets .= "{$widget}::0"; + ?> + + + + + +
+

+ name; ?> + + + + + + +

+
+ + + +
+
+

+
+ + 0) { + foreach($area1widgets as $widget) { + if (!empty($leftcolumn_widgets)) { + $leftcolumn_widgets .= "::"; + } + $leftcolumn_widgets .= "{$widget}::0"; +?> + + + + + +
+

+ name; ?> + + + + + + +

+
+ + +
+
+ +

+
+ + 0) { + foreach($area2widgets as $widget) { + if (!empty($middlecolumn_widgets)) { + $middlecolumn_widgets .= "::"; + } + $middlecolumn_widgets .= "{$widget}::0"; +?> + + + + + +
+

+ name; ?> + + + + + + +

+
+ + + +
+
+ +
+ +
+ + + + '__elgg_token', 'value' => $vars['token'])); + echo elgg_view('input/hidden',array('internalname' => '__elgg_ts', 'value' => $vars['ts'])); +?> + + + + +
+
-- cgit v1.2.3