diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-01 18:43:57 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-01 18:43:57 +0000 |
commit | 764d0b000e7c91be76768525105303bf59920cb0 (patch) | |
tree | 00487b6833659142d55944ef22121ce408130723 | |
parent | a34a0e15da72939b887935590af7b483cc5fe32d (diff) | |
download | elgg-764d0b000e7c91be76768525105303bf59920cb0.tar.gz elgg-764d0b000e7c91be76768525105303bf59920cb0.tar.bz2 |
The widget layout now uses areas 3 and 4 as the column content if there aren't any widgets
git-svn-id: https://code.elgg.org/elgg/trunk@1260 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | views/default/canvas/layouts/widgets.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php index cbd267377..89b9a803b 100644 --- a/views/default/canvas/layouts/widgets.php +++ b/views/default/canvas/layouts/widgets.php @@ -18,6 +18,13 @@ $area1widgets = get_widgets(page_owner(),get_context(),1); $area2widgets = get_widgets(page_owner(),get_context(),2); + if (empty($area1widgets) && empty($area2widgets)) { + + if (isset($area3)) $area1 = $area3; + if (isset($area4)) $area2 = $area3; + + } + if (is_array($widgettypes) && sizeof($widgettypes) > 0 && $owner->canEdit()) { |