From dd9098cc8b45550f11ad7fb39ae3f45eae5542a0 Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Tue, 6 Feb 2007 21:31:04 +0000 Subject: [PATCH] 'added felxible columns and round corner code' --- course/format/weeks/format.php | 52 ++++++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/course/format/weeks/format.php b/course/format/weeks/format.php index 80c86db0c9..42dc88b393 100644 --- a/course/format/weeks/format.php +++ b/course/format/weeks/format.php @@ -58,17 +58,41 @@ $context = get_context_instance(CONTEXT_COURSE, $course->id); /// Layout the whole page as three big columns. echo ''; - + $lt = (empty($THEME->layouttable)) ? array('left', 'middle', 'right') : $THEME->layouttable; + foreach ($lt as $column) { + switch ($column) { + case 'left': + /// The left column ... if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $editing) { echo ''; } - + break; + case 'middle': /// Start main column - echo ''; + break; + case 'right': // The right column if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $editing) { echo ''; } + break; + } + } echo '
'; + + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + } + blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT); + + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + } + echo '
'; + echo ''; + + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + } + + echo ''; print_heading_block(get_string('weeklyoutline'), 'outline'); @@ -262,15 +286,37 @@ echo '
'; } + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + } + echo '
'; + + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + } + blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT); + + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + } + echo '
'; ?> -- 2.39.5