aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/wrapper.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-18 16:54:02 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-18 16:54:02 +0000
commita24e700999b38185bea3e80dc8461aed271406cb (patch)
treef63cf545c33910e7f83aaf64a7857c0843cc279d /views/default/widgets/wrapper.php
parentc5854870424d87372bcc86a7edf75b9bf8841825 (diff)
downloadelgg-a24e700999b38185bea3e80dc8461aed271406cb.tar.gz
elgg-a24e700999b38185bea3e80dc8461aed271406cb.tar.bz2
Refs #1793 getting sorted widgets from elgg_get_widgets()
git-svn-id: http://code.elgg.org/elgg/trunk@7339 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/widgets/wrapper.php')
-rw-r--r--views/default/widgets/wrapper.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php
index 13d8da50e..51f4725b9 100644
--- a/views/default/widgets/wrapper.php
+++ b/views/default/widgets/wrapper.php
@@ -19,12 +19,16 @@ if ($vars['entity'] instanceof ElggObject && $vars['entity']->getSubtype() == 'w
$title = elgg_echo("error");
}
+$display_view = "widgets/$handler/view";
+$edit_view = "widgets/$handler/edit";
+
?>
<div class="widget draggable">
<div class="widget_title drag_handle">
<h3>Widget Title</h3>
</div>
<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>
</div>
</div>