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 '
| ';
- 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 ' ';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo ' | ';
break;
case 'middle':
echo '';
- if (!empty($THEME->roundcorners)) {
- 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 ' | ';
}
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 '. ';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
- if (!empty($THEME->roundcorners)) {
- echo ' . ';
- if (!empty($THEME->roundcorners)) {
- echo ' | ';
break;
case 'middle':
- 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 ' ';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo ' . | ';
break;
case 'right':
if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT)) {
echo '';
- if (!empty($THEME->roundcorners)) {
- echo ' . ';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
- if (!empty($THEME->roundcorners)) {
- echo ' . | ';
}
break;
@@ -2778,7 +2749,6 @@ function admin_externalpage_print_footer($adminroot) {
echo '