From eb1ed65076201ec8cb232f143b04eed2ec5f114b Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Wed, 9 May 2007 15:34:14 +0000 Subject: [PATCH] added/changed custom corners lib and calls to add the necessary divs --- my/index.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/my/index.php b/my/index.php index 9c8b035420..4fc28fa798 100644 --- a/my/index.php +++ b/my/index.php @@ -6,6 +6,10 @@ require_once($CFG->libdir.'/blocklib.php'); require_once($CFG->dirroot.'/course/lib.php'); require_once('pagelib.php'); + + if (!empty($THEME->customcorners)) { + require_once($CFG->dirroot.'/lib/custom_corners_lib.php'); + } require_login(); @@ -46,11 +50,14 @@ if(blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $PAGE->user_is_editing()) { echo ''; + if (!empty($THEME->customcorners)) print_custom_corners_start(); blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT); + if (!empty($THEME->customcorners)) print_custom_corners_end(); echo ''; } echo ''; + if (!empty($THEME->customcorners)) print_custom_corners_start(); /// The main overview in the middle of the page @@ -82,13 +89,16 @@ echo '
...'; } + if (!empty($THEME->customcorners)) print_custom_corners_end(); echo ''; $blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks[BLOCK_POS_RIGHT]), 210); if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $PAGE->user_is_editing()) { echo ''; + if (!empty($THEME->customcorners)) print_custom_corners_start(); blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT); + if (!empty($THEME->customcorners)) print_custom_corners_end(); echo ''; } -- 2.39.5