diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 22:19:11 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 22:19:11 +0000 |
commit | b827319a8b0c17ea362bf55548557862a04f0ba9 (patch) | |
tree | ea5873d2fa2ca427323dc6ca9d1e8dff8450f8d8 /views/default/widgets/controls.php | |
parent | 96f880d1e535aaf47d0c67cfe3da8fca638dc00d (diff) | |
download | elgg-b827319a8b0c17ea362bf55548557862a04f0ba9.tar.gz elgg-b827319a8b0c17ea362bf55548557862a04f0ba9.tar.bz2 |
added collapsible state to widgets
git-svn-id: http://code.elgg.org/elgg/trunk@7392 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/widgets/controls.php')
-rw-r--r-- | views/default/widgets/controls.php | 17 |
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; |