diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-12 17:00:44 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-12 17:00:44 +0000 |
commit | d423fd2379171706c75c60600442a2dbdc12d87a (patch) | |
tree | d8523f7d6dc092021c41cdf3e3da661be215e1a9 /views/default/canvas/layouts | |
parent | 63a58847a215af8375ada0bd801bf422a318b8aa (diff) | |
download | elgg-d423fd2379171706c75c60600442a2dbdc12d87a.tar.gz elgg-d423fd2379171706c75c60600442a2dbdc12d87a.tar.bz2 |
The widget canvas layout now automatically grabs widgets.
git-svn-id: https://code.elgg.org/elgg/trunk@899 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/canvas/layouts')
-rw-r--r-- | views/default/canvas/layouts/widgets.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php index e52cc3f08..e98d2f99a 100644 --- a/views/default/canvas/layouts/widgets.php +++ b/views/default/canvas/layouts/widgets.php @@ -19,6 +19,15 @@ <?php echo $vars['area2']; ?> + <?php + + if ($widgets = get_widgets(page_owner(),get_context(),2)) { + foreach($widgets as $widget) { + echo elgg_view_entity($widget); + } + } + + ?> </div><!-- /#wrapper_sidebar_right --> @@ -32,6 +41,15 @@ <?php echo $vars['area1']; ?> + <?php + + if ($widgets = get_widgets(page_owner(),get_context(),1)) { + foreach($widgets as $widget) { + echo elgg_view_entity($widget); + } + } + + ?> </div><!-- /#wrapper_maincontent --> |