aboutsummaryrefslogtreecommitdiff
path: root/views/default/canvas/layouts
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-01 18:43:57 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-01 18:43:57 +0000
commit764d0b000e7c91be76768525105303bf59920cb0 (patch)
tree00487b6833659142d55944ef22121ce408130723 /views/default/canvas/layouts
parenta34a0e15da72939b887935590af7b483cc5fe32d (diff)
downloadelgg-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
Diffstat (limited to 'views/default/canvas/layouts')
-rw-r--r--views/default/canvas/layouts/widgets.php7
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()) {