diff options
Diffstat (limited to 'views/default/widgets')
-rw-r--r-- | views/default/widgets/controls.php | 17 | ||||
-rw-r--r-- | views/default/widgets/wrapper.php | 10 |
2 files changed, 18 insertions, 9 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; diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php index 8d589aabd..20faf85a8 100644 --- a/views/default/widgets/wrapper.php +++ b/views/default/widgets/wrapper.php @@ -27,12 +27,12 @@ $widget_instance = "widget_instance_$handler"; <div class="widget draggable <?php echo $widget_instance?>" id="<?php echo $widget_id; ?>"> <div class="widget_title drag_handle"> <h3><?php echo $title; ?></h3> - <?php - if ($can_edit) { - echo elgg_view('widgets/controls', array('widget' => $widget)); - } - ?> </div> + <?php + if ($can_edit) { + echo elgg_view('widgets/controls', array('widget' => $widget)); + } + ?> <div class="widget_container"> <?php if ($can_edit) { |