From 725685f9fb4ac44ab69af0b4e2908065eadccd7a Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Thu, 20 Sep 2007 09:45:29 +0000 Subject: [PATCH] Added the missing switch construct to the mymoodle page for flexible column positioning. --- mod/chat/view.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/mod/chat/view.php b/mod/chat/view.php index c04680858f0..739f5d29866 100644 --- a/mod/chat/view.php +++ b/mod/chat/view.php @@ -68,11 +68,19 @@ echo ''; + $lt = (empty($THEME->layouttable)) ? array('left', 'middle', 'right') : $THEME->layouttable; + foreach ($lt as $column) { + switch ($column) { + case 'left': + if(!empty($CFG->showblocksonmodpages) && (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $PAGE->user_is_editing())) { echo ''; } + + break; + case 'middle': echo '
'; blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT); echo ''; @@ -179,7 +187,13 @@ /// Finish the page - echo '
'; + echo ''; + + break; + } + } + + echo ''; print_footer($course);