Added some missing styles from the course listing, so that the

course and category names can be tweaked.
This commit is contained in:
moodler
2003-08-29 01:31:41 +00:00
parent 39ced832ac
commit d5f26b070c
13 changed files with 117 additions and 4 deletions
+6 -4
View File
@@ -950,8 +950,6 @@ function print_category_info($category, $depth) {
$pixpath = "$CFG->wwwroot/theme/$CFG->theme/pix";
}
$catlinkcss = $category->visible ? "" : " class=\"dimmed\" ";
echo "<tr>";
echo "<td valign=\"top\">";
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 = "<img src=\"$pixpath/i/course.gif\" width=16 height=16 border=0>";
}
echo "<font size=+1>$catimage <a $catlinkcss ".
"href=\"$CFG->wwwroot/course/category.php?id=$category->id\">$category->name</a></font>";
echo "<font size=+1>$catimage <span class=\"categoryname\"><a $catlinkcss ".
"href=\"$CFG->wwwroot/course/category.php?id=$category->id\">$category->name</a></span></font>";
if ($CFG->frontpage == FRONTPAGECOURSELIST) {
if ($courses = get_courses($category->id)) {
foreach ($courses as $course) {
echo "<ul style=\"margin-bottom:0;margin-top:0\">";
$linkcss = $course->visible ? "" : " class=\"dimmed\" ";
echo "<span class=\"coursename\">";
echo "<a $linkcss href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname</a>";
echo "&nbsp;&nbsp;";
unset($courses[$key]);
@@ -981,6 +982,7 @@ function print_category_info($category, $depth) {
echo "<a title=\"$strrequireskey\" href=\"$CFG->wwwroot/course/view.php?id=$course->id\">";
echo "<img alt=\"\" height=16 width=16 border=0 src=\"$pixpath/i/key.gif\"></a>";
}
echo "</span>";
echo "</ul>";
}
}
+12
View File
@@ -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 {}
+9
View File
@@ -284,3 +284,12 @@ a.dimmed:hover {
.headerhomemenu {
}
.categorybox {
}
.categoryname {
}
.coursename {
}
+9
View File
@@ -377,3 +377,12 @@ a.dimmed:hover {
.headerhomemenu {
}
.categorybox {
}
.categoryname {
}
.coursename {
}
+9
View File
@@ -298,3 +298,12 @@ a.dimmed:hover {
.headerhomemenu {
}
.categorybox {
}
.categoryname {
}
.coursename {
}
+9
View File
@@ -282,3 +282,12 @@ a.dimmed:hover {
.headerhomemenu {
}
.categorybox {
}
.categoryname {
}
.coursename {
}
+9
View File
@@ -242,3 +242,12 @@ select {
.headerhomemenu {
}
.categorybox {
}
.categoryname {
}
.coursename {
}
+9
View File
@@ -282,3 +282,12 @@ a.dimmed:hover {
.headerhomemenu {
}
.categorybox {
}
.categoryname {
}
.coursename {
}
+9
View File
@@ -282,3 +282,12 @@ a.dimmed:hover {
.headerhomemenu {
}
.categorybox {
}
.categoryname {
}
.coursename {
}
+9
View File
@@ -282,3 +282,12 @@ a.dimmed:hover {
.headerhomemenu {
}
.categorybox {
}
.categoryname {
}
.coursename {
}
+9
View File
@@ -282,3 +282,12 @@ a.dimmed:hover {
.headerhomemenu {
}
.categorybox {
}
.categoryname {
}
.coursename {
}
+9
View File
@@ -282,3 +282,12 @@ a.dimmed:hover {
.headerhomemenu {
}
.categorybox {
}
.categoryname {
}
.coursename {
}
+9
View File
@@ -282,3 +282,12 @@ a.dimmed:hover {
.headerhomemenu {
}
.categorybox {
}
.categoryname {
}
.coursename {
}