From 86df6cc6eef30d75b31800d863b5b486272da32f Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Thu, 11 Jan 2007 07:21:28 +0000 Subject: [PATCH] 'round corners: 4 additional divs for column corner and border graphics' --- index.php | 43 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 4fa2e0191a..399e1266cc 100644 --- a/index.php +++ b/index.php @@ -100,9 +100,6 @@ LayoutTable = array('left', 'middle', 'right'); - // $CFG->LayoutTable = array('left', 'right', 'middle'); - // $CFG->LayoutTable = array('middle', 'left', 'right'); $lt = (empty($THEME->layouttable)) ? array('left', 'middle', 'right') : $THEME->layouttable; foreach ($lt as $column) { switch ($column) { @@ -110,7 +107,20 @@ // uh-changes end if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $editing) { echo ''; +// uh-changes start + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + echo '
'; + echo '
'; + } +// uh-changes end blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT); +// uh-changes start + if (!empty($THEME->roundcorners)) { + echo '
'; + } +// uh-changes end echo ''; } // uh-changes start @@ -119,6 +129,14 @@ // uh-changes end echo ''; +// uh-changes start + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + echo '
'; + echo '
'; + } +// uh-changes end /// Print Section if ($SITE->numsections > 0) { @@ -235,6 +253,12 @@ echo '
'; } +// uh-changes start + if (!empty($THEME->roundcorners)) { + echo '
'; + } +// uh-changes end + echo ''; // uh-changes start break; @@ -243,11 +267,24 @@ // The right column if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $editing || has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID))) { echo ''; +// uh-changes start + if (!empty($THEME->roundcorners)) { + echo '
'; + echo '
'; + echo '
'; + echo '
'; + } +// uh-changes end if (has_capability('moodle/course:update', get_context_instance(CONTEXT_SYSTEM, SITEID))) { echo '
'.update_course_icon($SITE->id).'
'; echo '
'; } blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT); +// uh-changes start + if (!empty($THEME->roundcorners)) { + echo '
'; + } +// uh-changes end echo ''; } // uh-changes start -- 2.39.5