aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/controls.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/widgets/controls.php')
-rw-r--r--views/default/widgets/controls.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/views/default/widgets/controls.php b/views/default/widgets/controls.php
index 4336a3506..bd4af97a6 100644
--- a/views/default/widgets/controls.php
+++ b/views/default/widgets/controls.php
@@ -10,6 +10,14 @@ $widget = $vars['widget'];
$params = array(
'text' => ' ',
+ 'href' => "#",
+ 'class' => 'widget_collapse_button',
+ 'internalid' => "widget_collapse_button_$widget->guid"
+);
+$collapse_link = elgg_view('output/url', $params);
+
+$params = array(
+ 'text' => ' ',
'title' => elgg_echo('widget:delete', array($widget->getTitle())),
'href' => elgg_get_site_url() . "action/widgets/delete?guid=$widget->guid",
'is_action' => true,
@@ -28,8 +36,9 @@ $params = array(
$edit_link = elgg_view('output/url', $params);
echo <<<___END
-<ul>
- <li>$delete_link</li>
- <li>$edit_link</li>
-</ul>
+<div class="widget_controls">
+ $collapse_link
+ $delete_link
+ $edit_link
+</div>
___END;