From f42382e0bff1692e2ddcd1c8eb316836e3020f1e Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 19 Nov 2010 19:11:03 +0000 Subject: users can delete widgets from layout git-svn-id: http://code.elgg.org/elgg/trunk@7349 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/widgets/wrapper.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'views/default/widgets/wrapper.php') diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php index fd849bdee..55cdd18b6 100644 --- a/views/default/widgets/wrapper.php +++ b/views/default/widgets/wrapper.php @@ -21,15 +21,22 @@ if ($vars['entity'] instanceof ElggObject && $vars['entity']->getSubtype() == 'w $title = elgg_echo("error"); } +$title = "Widget Title"; + $display_view = "widgets/$handler/view"; $edit_view = "widgets/$handler/edit"; ?>
-

Widget Title

-
-
+

+ canEdit()) { + echo elgg_view('widgets/controls', array('widget' => $widget)); + } + ?> +
+

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

-- cgit v1.2.3