From 355bf90704a04cbf5198eaa7c1b3eba34a15abb9 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 10 Oct 2007 14:31:27 +0000 Subject: [PATCH] Merged the flexible column patch from Urs (1.11.2.3) to HEAD --- my/index.php | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/my/index.php b/my/index.php index b83209292b..151e230b9b 100644 --- a/my/index.php +++ b/my/index.php @@ -42,9 +42,13 @@ $PAGE->print_header($mymoodlestr); - echo ''; + echo '
'; echo ''; + $lt = (empty($THEME->layouttable)) ? array('left', 'middle', 'right') : $THEME->layouttable; + foreach ($lt as $column) { + switch ($column) { + case 'left': $blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks[BLOCK_POS_LEFT]), 210); @@ -55,7 +59,10 @@ if (!empty($THEME->customcorners)) print_custom_corners_end(); echo ''; } - + + break; + case 'middle': + echo ''; - + + break; + case 'right': + $blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks[BLOCK_POS_RIGHT]), 210); if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $PAGE->user_is_editing()) { @@ -101,7 +111,9 @@ if (!empty($THEME->customcorners)) print_custom_corners_end(); echo ''; } - + break; + } + } /// Finish the page echo '
'; if (!empty($THEME->customcorners)) print_custom_corners_start(TRUE); @@ -91,7 +98,10 @@ if (!empty($THEME->customcorners)) print_custom_corners_end(); echo '
'; -- 2.39.5