diff options
Diffstat (limited to 'views/default/widgets/controls.php')
-rw-r--r-- | views/default/widgets/controls.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/views/default/widgets/controls.php b/views/default/widgets/controls.php new file mode 100644 index 000000000..881057969 --- /dev/null +++ b/views/default/widgets/controls.php @@ -0,0 +1,32 @@ +<?php +/** + * Elgg widget controls + * + * @package Elgg + * @subpackage Core + */ + +$widget = $vars['widget']; + +$params = array( + 'text' => 'delete', + 'href' => '#', //elgg_get_site_url() . "action/widgets/delete?guid=$widget->guid", + 'is_action' => true, + 'class' => 'widget_delete', + 'internalid' => "widget_delete_$widget->guid" +); +$delete_link = elgg_view('output/url', $params); + +$params = array( + 'text' => 'edit', + 'href' => elgg_get_site_url() . "#", + 'is_action' => true, +); +$edit_link = elgg_view('output/url', $params); + +echo <<<___END +<ul> + <li>$delete_link</li> + <li>$edit_link</li> +</ul> +___END; |