Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

course and category names can be tweaked.
  • Loading branch information...
commit d5f26b070cb840bf3061c97f3c8d784d1ee99998 1 parent 39ced83
moodler authored
View
10 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 "<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>";
}
}
View
12 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 {}
+
View
9 theme/brightretro/styles.php
@@ -284,3 +284,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
View
9 theme/cordoroyblue/styles.php
@@ -377,3 +377,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
View
9 theme/garden/styles.php
@@ -298,3 +298,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
View
9 theme/oceanblue/styles.php
@@ -282,3 +282,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
View
9 theme/poweraid/styles.php
@@ -242,3 +242,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
View
9 theme/standard/styles.php
@@ -282,3 +282,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
View
9 theme/standardblue/styles.php
@@ -282,3 +282,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
View
9 theme/standardgreen/styles.php
@@ -282,3 +282,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
View
9 theme/standardlogo/styles.php
@@ -282,3 +282,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
View
9 theme/standardred/styles.php
@@ -282,3 +282,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
View
9 theme/standardwhite/styles.php
@@ -282,3 +282,12 @@
.headerhomemenu {
}
+
+.categorybox {
+}
+
+.categoryname {
+}
+
+.coursename {
+}
Please sign in to comment.
Something went wrong with that request. Please try again.