From: urs_hunkler Date: Tue, 6 Feb 2007 22:23:08 +0000 (+0000) Subject: 'added felxible columns and round corner code' X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e5afdd27109c829210aa8cc59909e19a1c7da8cd;p=moodle.git 'added felxible columns and round corner code' --- diff --git a/admin/settings.php b/admin/settings.php index 92b4370716..b3e807dea0 100644 --- a/admin/settings.php +++ b/admin/settings.php @@ -87,6 +87,32 @@ if ($data = data_submitted()) { /// print header stuff ------------------------------------------------------------ // header must be printed after the redirects and require_logout + +if (empty($SITE->fullname)) { + print_header(); + print_simple_box(get_string('configintrosite', 'admin'), 'center', '50%'); + + if ($statusmsg != '') { + notify ($statusmsg); + } + + // --------------------------------------------------------------------------------------------------------------- + + echo '
'; + echo '
'; + echo ''; + echo ''; + echo ''; + print_heading($root->visiblename); + + echo $root->output_html(); + + echo '
'; + + echo '
'; + echo '
'; +} + if (!empty($SITE->fullname)) { $pageblocks = blocks_setup($PAGE); @@ -98,42 +124,72 @@ if (!empty($SITE->fullname)) { $PAGE->print_header(); echo ''; + $lt = (empty($THEME->layouttable)) ? array('left', 'middle', 'right') : $THEME->layouttable; + foreach ($lt as $column) { + switch ($column) { + case 'left': echo ''; - echo ''; + break; + case 'right': echo '
'; + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + } blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT); + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + } echo '
'; -} else { - - print_header(); - print_simple_box(get_string('configintrosite', 'admin'), 'center', '50%'); - -} + break; + case 'middle': + echo ''; + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + } + echo ''; -if ($statusmsg != '') { - notify ($statusmsg); -} + if ($statusmsg != '') { + notify ($statusmsg); + } -// --------------------------------------------------------------------------------------------------------------- + // --------------------------------------------------------------------------------------------------------------- -echo '
'; -echo '
'; -echo ''; -echo ''; -echo ''; -print_heading($root->visiblename); + echo ''; + echo '
'; + echo ''; + echo ''; + echo ''; + print_heading($root->visiblename); -echo $root->output_html(); + echo $root->output_html(); -echo '
'; + echo '
'; -echo '
'; -echo ''; + echo '
'; + echo ''; -if (!empty($SITE->fullname)) { + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + } echo '
'; + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + } blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT); - echo '
'; + if (!empty($THEME->roundcorners)) { + echo ''; + echo '
'; + } + echo ''; + break; + } + } + echo ''; } if (!empty($CFG->adminusehtmleditor)) {