Some minor theme changes in 1.9

Some minor theme changes in 1.9

by Shane Elliott -
Number of replies: 0
Picture of Core developers Picture of Plugin developers
Hi all,

Thought it would be good to post a quick message about some changes to the theme code in 1.9

1. You can now set category themes. There is an admin setting to turn this feature on/off - it is off by default as it does take a bit of processing overhead. If it is switched on then you will be able to select a theme when editing categories. The theme will then apply to all courses in that category or child categories and the category page itself.

2. The priority of themes can now be set ie which theme wins when there are several set at different levels. You can set a variable in config.php called $CFG->themeorder (see config-dist.php for more details). By default it is set to:
$CFG->themeorder = array('page', 'course', 'category', 'session', 'user', 'site');

Cheers,
Shane.
Average of ratings: -