From: urs_hunkler Date: Wed, 7 Feb 2007 08:11:31 +0000 (+0000) Subject: 'added round corner code' X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ce821fdab7a8eb90e7c0f125124e726e38b7b0ca;p=moodle.git 'added round corner code' --- diff --git a/lib/adminlib.php b/lib/adminlib.php index 3d1c7a4b16..c399f2e2b8 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -2660,7 +2660,7 @@ function admin_externalpage_setup($section, $adminroot) { function admin_externalpage_print_header($adminroot) { - global $CFG, $PAGE, $SITE; + global $CFG, $PAGE, $SITE, $THEME; if (!empty($SITE->fullname)) { $pageblocks = blocks_setup($PAGE); @@ -2671,9 +2671,21 @@ function admin_externalpage_print_header($adminroot) { $PAGE->print_header(); echo ''; echo ''; echo ''; echo '
'; + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + } blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT); + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + } echo '
'; + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + } } else { print_header(); } @@ -2681,16 +2693,28 @@ function admin_externalpage_print_header($adminroot) { function admin_externalpage_print_footer($adminroot) { - global $CFG, $PAGE, $SITE; + global $CFG, $PAGE, $SITE, $THEME; if (!empty($SITE->fullname)) { $pageblocks = blocks_setup($PAGE); $preferred_width_right = bounded_number(BLOCK_R_MIN_WIDTH, blocks_preferred_width($pageblocks[BLOCK_POS_RIGHT]), BLOCK_R_MAX_WIDTH); + 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 '
'; } print_footer();