From: moodler Date: Fri, 29 Aug 2003 01:31:41 +0000 (+0000) Subject: Added some missing styles from the course listing, so that the X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d5f26b070cb840bf3061c97f3c8d784d1ee99998;p=moodle.git Added some missing styles from the course listing, so that the course and category names can be tweaked. --- diff --git a/course/lib.php b/course/lib.php index 674c34eee8..d6357cec23 100644 --- a/course/lib.php +++ b/course/lib.php @@ -950,8 +950,6 @@ function print_category_info($category, $depth) { $pixpath = "$CFG->wwwroot/theme/$CFG->theme/pix"; } - $catlinkcss = $category->visible ? "" : " class=\"dimmed\" "; - echo ""; echo ""; for ($i=0; $i<$depth;$i++) { @@ -959,17 +957,20 @@ function print_category_info($category, $depth) { } $catimage = ""; + $catlinkcss = $category->visible ? "" : " class=\"dimmed\" "; + if ($CFG->frontpage == FRONTPAGECOURSELIST) { $catimage = ""; } - echo "$catimage wwwroot/course/category.php?id=$category->id\">$category->name"; + echo "$catimage wwwroot/course/category.php?id=$category->id\">$category->name"; if ($CFG->frontpage == FRONTPAGECOURSELIST) { if ($courses = get_courses($category->id)) { foreach ($courses as $course) { echo ""; } } diff --git a/theme/UPGRADE.txt b/theme/UPGRADE.txt index a579799937..320ca322d3 100644 --- a/theme/UPGRADE.txt +++ b/theme/UPGRADE.txt @@ -89,3 +89,15 @@ ALL pix files can now be changed from within a theme, see cordoroyblue for an example: config.php and the pix subdirectory. + + +================================ +Changes to 1.1 since 1.0.9 +-------------------------------- + +/* Styles for the courses/categories on the course listing */ + +.categorybox {} +.categoryname {} +.coursename {} + diff --git a/theme/brightretro/styles.php b/theme/brightretro/styles.php index d7e8d26ebe..b7c2871194 100644 --- a/theme/brightretro/styles.php +++ b/theme/brightretro/styles.php @@ -284,3 +284,12 @@ a.dimmed:hover { .headerhomemenu { } + +.categorybox { +} + +.categoryname { +} + +.coursename { +} diff --git a/theme/cordoroyblue/styles.php b/theme/cordoroyblue/styles.php index 5bd43b9314..542b1c6f1a 100644 --- a/theme/cordoroyblue/styles.php +++ b/theme/cordoroyblue/styles.php @@ -377,3 +377,12 @@ a.dimmed:hover { .headerhomemenu { } + +.categorybox { +} + +.categoryname { +} + +.coursename { +} diff --git a/theme/garden/styles.php b/theme/garden/styles.php index 5719fef320..d3b1991a9c 100755 --- a/theme/garden/styles.php +++ b/theme/garden/styles.php @@ -298,3 +298,12 @@ a.dimmed:hover { .headerhomemenu { } + +.categorybox { +} + +.categoryname { +} + +.coursename { +} diff --git a/theme/oceanblue/styles.php b/theme/oceanblue/styles.php index dd861fde7b..c04d6de4cf 100644 --- a/theme/oceanblue/styles.php +++ b/theme/oceanblue/styles.php @@ -282,3 +282,12 @@ a.dimmed:hover { .headerhomemenu { } + +.categorybox { +} + +.categoryname { +} + +.coursename { +} diff --git a/theme/poweraid/styles.php b/theme/poweraid/styles.php index 8970299c09..40b20ce211 100644 --- a/theme/poweraid/styles.php +++ b/theme/poweraid/styles.php @@ -242,3 +242,12 @@ select { .headerhomemenu { } + +.categorybox { +} + +.categoryname { +} + +.coursename { +} diff --git a/theme/standard/styles.php b/theme/standard/styles.php index 731de21220..c83a3fafc5 100644 --- a/theme/standard/styles.php +++ b/theme/standard/styles.php @@ -282,3 +282,12 @@ a.dimmed:hover { .headerhomemenu { } + +.categorybox { +} + +.categoryname { +} + +.coursename { +} diff --git a/theme/standardblue/styles.php b/theme/standardblue/styles.php index 3025f069e5..ee003dac0c 100644 --- a/theme/standardblue/styles.php +++ b/theme/standardblue/styles.php @@ -282,3 +282,12 @@ a.dimmed:hover { .headerhomemenu { } + +.categorybox { +} + +.categoryname { +} + +.coursename { +} diff --git a/theme/standardgreen/styles.php b/theme/standardgreen/styles.php index 3025f069e5..ee003dac0c 100644 --- a/theme/standardgreen/styles.php +++ b/theme/standardgreen/styles.php @@ -282,3 +282,12 @@ a.dimmed:hover { .headerhomemenu { } + +.categorybox { +} + +.categoryname { +} + +.coursename { +} diff --git a/theme/standardlogo/styles.php b/theme/standardlogo/styles.php index 3025f069e5..ee003dac0c 100644 --- a/theme/standardlogo/styles.php +++ b/theme/standardlogo/styles.php @@ -282,3 +282,12 @@ a.dimmed:hover { .headerhomemenu { } + +.categorybox { +} + +.categoryname { +} + +.coursename { +} diff --git a/theme/standardred/styles.php b/theme/standardred/styles.php index 3025f069e5..ee003dac0c 100644 --- a/theme/standardred/styles.php +++ b/theme/standardred/styles.php @@ -282,3 +282,12 @@ a.dimmed:hover { .headerhomemenu { } + +.categorybox { +} + +.categoryname { +} + +.coursename { +} diff --git a/theme/standardwhite/styles.php b/theme/standardwhite/styles.php index 3025f069e5..ee003dac0c 100644 --- a/theme/standardwhite/styles.php +++ b/theme/standardwhite/styles.php @@ -282,3 +282,12 @@ a.dimmed:hover { .headerhomemenu { } + +.categorybox { +} + +.categoryname { +} + +.coursename { +}