aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/settings.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-19 22:34:17 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-19 22:34:17 +0000
commit2da8c3e8428f09bab7aefa39cadc0a4f2d6f7a80 (patch)
treea29bd9de401337c69575b402793d0a8bef1f32e7 /views/default/widgets/settings.php
parente99c8b979a149dc6693b0e82762a9ca550ece86b (diff)
downloadelgg-2da8c3e8428f09bab7aefa39cadc0a4f2d6f7a80.tar.gz
elgg-2da8c3e8428f09bab7aefa39cadc0a4f2d6f7a80.tar.bz2
improving interactions of widgets - containment wasn't working due to height issues
git-svn-id: http://code.elgg.org/elgg/trunk@7353 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/widgets/settings.php')
-rw-r--r--views/default/widgets/settings.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/views/default/widgets/settings.php b/views/default/widgets/settings.php
new file mode 100644
index 000000000..73166b718
--- /dev/null
+++ b/views/default/widgets/settings.php
@@ -0,0 +1,39 @@
+<?php
+/**
+ * Elgg widget edit settings
+ *
+ * @package Elgg
+ * @subpackage Core
+ */
+
+$widget = $vars['widget'];
+
+$edit_view = "widgets/$widget->handler/edit";
+$custom_form_section = elgg_view($edit_view, array('entity' => $widget));
+
+$access_text = elgg_echo('access');
+$access = elgg_view('input/access', array('internalname' => 'params[access_id]','value' => $widget->access_id));
+$hidden = elgg_view('input/hidden', array('internalname' => 'guid', 'value' => $widget->guid));
+$submit = elgg_view('input/submit', array('value' => elgg_echo('save')));
+
+$body = <<<___END
+ $custom_form_section
+ <p>
+ <label>$access_text:</label> $access
+ </p>
+ <p>
+ $hidden
+ $submit
+ </p>
+___END;
+
+?>
+<div class="widget_edit">
+<?php
+$params = array(
+ 'body' => $body,
+ 'action' => "action/widgets/save"
+);
+echo elgg_view('input/form', $params);
+?>
+</div>