diff --git a/admin/settings.php b/admin/settings.php index 92b43707164..b3e807dea07 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 { + break; + case 'middle': + echo ''; + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + } + echo ''; - print_header(); - print_simple_box(get_string('configintrosite', 'admin'), 'center', '50%'); + if ($statusmsg != '') { + notify ($statusmsg); + } -} + // --------------------------------------------------------------------------------------------------------------- -if ($statusmsg != '') { - notify ($statusmsg); -} + echo '
'; + echo '
'; + echo ''; + echo ''; + echo ''; + print_heading($root->visiblename); -// --------------------------------------------------------------------------------------------------------------- + echo $root->output_html(); -echo ''; -echo '
'; -echo ''; -echo ''; -echo ''; -print_heading($root->visiblename); + echo '
'; -echo $root->output_html(); + 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)) {