diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-19 20:43:48 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-19 20:43:48 +0000 |
commit | 3b46665b3f4ee10e9d2778033ea7180cca7571eb (patch) | |
tree | 6cbea6da55887db7bbd587df9b7e4d8cb209cea2 /views/default/widgets/wrapper.php | |
parent | f42382e0bff1692e2ddcd1c8eb316836e3020f1e (diff) | |
download | elgg-3b46665b3f4ee10e9d2778033ea7180cca7571eb.tar.gz elgg-3b46665b3f4ee10e9d2778033ea7180cca7571eb.tar.bz2 |
saving widget settings
git-svn-id: http://code.elgg.org/elgg/trunk@7350 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/widgets/wrapper.php')
-rw-r--r-- | views/default/widgets/wrapper.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php index 55cdd18b6..52ca87cab 100644 --- a/views/default/widgets/wrapper.php +++ b/views/default/widgets/wrapper.php @@ -24,18 +24,24 @@ if ($vars['entity'] instanceof ElggObject && $vars['entity']->getSubtype() == 'w $title = "Widget Title"; $display_view = "widgets/$handler/view"; -$edit_view = "widgets/$handler/edit"; + +$can_edit = $widget->canEdit(); ?> <div class="widget draggable" id="widget_<?php echo $widget->guid; ?>"> <div class="widget_title drag_handle"> <h3><?php echo $title; ?></h3> <?php - if ($widget->canEdit()) { + if ($can_edit) { echo elgg_view('widgets/controls', array('widget' => $widget)); } ?> </div> + <?php + if ($can_edit) { + echo elgg_view('widgets/editwrapper', array('widget' => $widget)); + } + ?> <div class="widget_content"> <?php echo elgg_view($display_view, $vars); ?> <p>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.</p> |