From 764d0b000e7c91be76768525105303bf59920cb0 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 1 Jul 2008 18:43:57 +0000 Subject: 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 --- views/default/canvas/layouts/widgets.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'views/default/canvas/layouts') 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()) { -- cgit v1.2.3