From 67a6e170717ee461dc94115ebf444c5a8c126376 Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Thu, 13 Dec 2007 20:25:24 +0000 Subject: [PATCH] merged from 1.9 :: MDL-12221 :: Some enhancements to handle the changed boxes - work in progress. --- theme/custom_corners/header.html | 2 +- theme/custom_corners/js/jquery.php | 4 +++- theme/custom_corners/user_styles.css | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/theme/custom_corners/header.html b/theme/custom_corners/header.html index 77459fce85b..4a480463f5b 100644 --- a/theme/custom_corners/header.html +++ b/theme/custom_corners/header.html @@ -46,7 +46,7 @@ // exclude roles called from the admin area (courseid 1) // include user roles for the Moodle user settings called // from the start page - if (($COURSE->id > 1) || ($_GET['contextid'] == 30)) { + if (($COURSE->id > 1) || ($_GET['contextid'] == 30) || ($_GET['contextid'] == 61)) { preg_match('/class="([^"]*)"/i', $bodytags, $classes); $classlist = explode (' ', $classes[1]); if (!in_array('nocoursepage', $classlist)) { diff --git a/theme/custom_corners/js/jquery.php b/theme/custom_corners/js/jquery.php index 8aa9d378a9b..2febdc32fbd 100644 --- a/theme/custom_corners/js/jquery.php +++ b/theme/custom_corners/js/jquery.php @@ -17,11 +17,13 @@ // check for layouttabel and add haslayouttable class to body // remove nocoursepage class from body - var layoutTable = $('#layout-table'); + var layoutTable = $('#layout-table #middle-column'); if (layoutTable.length) { $('body').addClass('haslayouttable'); $('body').removeClass('nocoursepage'); + } else { + $('body').addClass('nolayouttable'); } }, diff --git a/theme/custom_corners/user_styles.css b/theme/custom_corners/user_styles.css index 32a676db22a..75e3b11ba92 100644 --- a/theme/custom_corners/user_styles.css +++ b/theme/custom_corners/user_styles.css @@ -1135,7 +1135,7 @@ body#course-user div.tabtree { } .tabrow0 div, .tabrow0 ul { - top: 2.1em; + top: 2em; } a.dimmed:link, a.dimmed:visited {