Permalink
Browse files

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

course and category names can be tweaked.
  • Loading branch information...
1 parent 39ced83 commit d5f26b070cb840bf3061c97f3c8d784d1ee99998 moodler committed Aug 29, 2003
View
@@ -950,26 +950,27 @@ 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++) {
echo "<ul style=\"margin-bottom:0;margin-top:0\">";
}
$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>";
}
}
View
@@ -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 {}
+
@@ -284,3 +284,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
@@ -377,3 +377,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
@@ -298,3 +298,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
@@ -282,3 +282,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
@@ -242,3 +242,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
@@ -282,3 +282,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
@@ -282,3 +282,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
@@ -282,3 +282,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
@@ -282,3 +282,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
@@ -282,3 +282,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
@@ -282,3 +282,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}

0 comments on commit d5f26b0

Please sign in to comment.