aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/add_panel.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/add_panel.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/add_panel.php')
-rw-r--r--views/default/widgets/add_panel.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/views/default/widgets/add_panel.php b/views/default/widgets/add_panel.php
new file mode 100644
index 000000000..70d80f41c
--- /dev/null
+++ b/views/default/widgets/add_panel.php
@@ -0,0 +1,34 @@
+<?php
+
+$widgets = $vars['widgets'];
+$widget_types = elgg_get_widget_types();
+
+$context = $vars['context'];
+
+?>
+<div class="widgets_add_panel hidden">
+ <p>
+ <?php echo elgg_echo('widgets:add:description'); ?>
+ </p>
+ <ul>
+<?php
+ foreach ($widget_types as $handler => $widget_type) {
+ $options = array(
+ 'text' => $widget_type->name,
+ 'href' => '#',
+ 'internalid' => $handler,
+ );
+ $link = elgg_view('output/url', $options);
+ echo "<li>$link</li>";
+ }
+?>
+ </ul>
+<?php
+ $params = array(
+ 'internalname' => 'widget_context',
+ 'value' => $context
+ );
+ echo elgg_view('input/hidden', $params);
+?>
+ <div class="clearfloat"></div>
+</div>