aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/wrapper.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-12 17:57:25 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-12 17:57:25 +0000
commit683f50786a7aec4a936b7b5d59a8e6338b1c7071 (patch)
treec674bb5a47b3ac98837743d09991013a33232fb1 /views/default/widgets/wrapper.php
parentd423fd2379171706c75c60600442a2dbdc12d87a (diff)
downloadelgg-683f50786a7aec4a936b7b5d59a8e6338b1c7071.tar.gz
elgg-683f50786a7aec4a936b7b5d59a8e6338b1c7071.tar.bz2
Widgets, including a test widget plugin
git-svn-id: https://code.elgg.org/elgg/trunk@900 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/widgets/wrapper.php')
-rw-r--r--views/default/widgets/wrapper.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php
index 93db61725..fcf3782fe 100644
--- a/views/default/widgets/wrapper.php
+++ b/views/default/widgets/wrapper.php
@@ -18,7 +18,7 @@
$handler = "error";
$title = elgg_echo("error");
}
-
+
?>
<div class="collapsable_box">
@@ -29,7 +29,16 @@
echo $vars['entity']->title;
?></h1></div>
- <div class="collapsable_box_editpanel"><?php echo elgg_view('widgets/editwrapper',array('body' => elgg_view("widgets/{$handler}/edit",$vars))); ?></div><!-- /collapsable_box_editpanel -->
+ <div class="collapsable_box_editpanel"><?php
+
+ echo elgg_view('widgets/editwrapper',
+ array(
+ 'body' => elgg_view("widgets/{$handler}/edit",$vars),
+ 'entity' => $vars['entity']
+ )
+ );
+
+ ?></div><!-- /collapsable_box_editpanel -->
<div class="collapsable_box_content">
<?php echo elgg_view("widgets/{$handler}/view",$vars); ?>
</div><!-- /.collapsable_box_content -->