From ab717a9c26354994fa4f58ec3c42b4c5251a5701 Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Tue, 7 Aug 2007 07:11:44 +0000 Subject: [PATCH] MDL-8109 - removed comments and some changes to make merging easier --- lib/adminlib.php | 58 ++++++++++++------------------------------------ 1 file changed, 14 insertions(+), 44 deletions(-) diff --git a/lib/adminlib.php b/lib/adminlib.php index 637987d35f8..c17f627bc17 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -2653,6 +2653,10 @@ function admin_externalpage_print_header($adminroot) { global $CFG, $PAGE, $SITE, $THEME; + if (!empty($THEME->customcorners)) { + require_once($CFG->dirroot.'/lib/custom_corners_lib.php'); + } + if (!empty($SITE->fullname)) { $pageblocks = blocks_setup($PAGE); @@ -2660,7 +2664,6 @@ function admin_externalpage_print_header($adminroot) { blocks_preferred_width($pageblocks[BLOCK_POS_LEFT]), BLOCK_L_MAX_WIDTH); $PAGE->print_header(); - echo "\n".''."\n"; echo ''; $lt = (empty($THEME->layouttable)) ? array('left', 'middle', 'right') : $THEME->layouttable; @@ -2672,38 +2675,23 @@ function admin_externalpage_print_header($adminroot) { switch ($column) { case 'left': echo ''; break; case 'middle': echo ''; } break; @@ -2712,14 +2700,12 @@ function admin_externalpage_print_header($adminroot) { } else { print_header(); } - echo "\n".''."\n"; } function admin_externalpage_print_footer($adminroot) { global $CFG, $PAGE, $SITE, $THEME; - echo "\n".''."\n"; if (!empty($SITE->fullname)) { $pageblocks = blocks_setup($PAGE); $preferred_width_right = bounded_number(BLOCK_R_MIN_WIDTH, @@ -2738,38 +2724,23 @@ function admin_externalpage_print_footer($adminroot) { switch ($column) { case 'left': echo ''; break; case 'middle': - if (!empty($THEME->roundcorners)) { - echo ''; - echo '
.
'; - } + if (!empty($THEME->customcorners)) print_custom_corners_end(); echo ''; break; case 'right': if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT)) { echo ''; } break; @@ -2778,7 +2749,6 @@ function admin_externalpage_print_footer($adminroot) { echo '
'; - if (!empty($THEME->roundcorners)) { - echo '
'; - echo '
'; - } + if (!empty($THEME->customcorners)) print_custom_corners_start(); blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT); - if (!empty($THEME->roundcorners)) { - echo '
'; - echo '
'; - } + if (!empty($THEME->customcorners)) print_custom_corners_end(); echo '
'; - if (!empty($THEME->roundcorners)) { - echo '
.
'; - echo '
'; - } + if (!empty($THEME->customcorners)) print_custom_corners_start(); break; case 'right': if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT)) { echo '
'; - if (!empty($THEME->roundcorners)) { - echo '
.
'; - echo '
'; - } + if (!empty($THEME->customcorners)) print_custom_corners_start(); blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT); - if (!empty($THEME->roundcorners)) { - echo '
'; - echo '
.
'; - } + if (!empty($THEME->customcorners)) print_custom_corners_end(); echo '
'; - if (!empty($THEME->roundcorners)) { - echo '
'; - echo '
'; - } + if (!empty($THEME->customcorners)) print_custom_corners_start(); blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT); - if (!empty($THEME->roundcorners)) { - echo '
'; - echo '
'; - } + if (!empty($THEME->customcorners)) print_custom_corners_end(); echo '
'; - if (!empty($THEME->roundcorners)) { - echo '
.
'; - echo '
'; - } + if (!empty($THEME->customcorners)) print_custom_corners_start(); blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT); - if (!empty($THEME->roundcorners)) { - echo '
'; - echo '
.
'; - } + if (!empty($THEME->customcorners)) print_custom_corners_end(); echo '
'; } print_footer(); - echo "\n".''."\n"; } function admin_get_root() {