Custom themes by course category

Re: Custom themes by course category

by Gustav W Delius -
Number of replies: 0
Currently the print_header() function in cvs:/moodle/lib/weblib.php that prints the header that loads the style sheet makes the $course object global. Thus within this function you can simply get at the category from $course->category. You can then use this information to decide which stylesheet to load.