diff options
Diffstat (limited to 'views/default/widgets/wrapper.php')
-rw-r--r-- | views/default/widgets/wrapper.php | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php index dfb8b2279..6e3e26e5d 100644 --- a/views/default/widgets/wrapper.php +++ b/views/default/widgets/wrapper.php @@ -12,6 +12,9 @@ */
static $widgettypes;
+
+ $callback = get_input('callback');
+
if (!isset($widgettypes)) $widgettypes = get_widget_types();
if ($vars['entity'] instanceof ElggObject && $vars['entity']->getSubtype() == 'widget') {
@@ -22,6 +25,8 @@ $title = elgg_echo("error");
}
+ if ($callback != "true") {
+
?>
<div id="widget<?php echo $vars['entity']->getGUID(); ?>">
@@ -51,7 +56,25 @@ ?>
<div class="collapsable_box_content">
- <?php echo elgg_view("widgets/{$handler}/view",$vars); ?>
+ <?php
+
+ } // end if callback != "true"
+
+ echo "<div id=\"widgetcontent{$vars['entity']->getGUID()}\">";
+
+ echo elgg_view("widgets/{$handler}/view",$vars);
+
+ echo "</div>";
+
+ if ($callback != "true") {
+
+ ?>
</div><!-- /.collapsable_box_content -->
</div><!-- /.collapsable_box -->
- </div>
\ No newline at end of file + </div>
+
+<?php
+
+ }
+
+?>
\ No newline at end of file |