=== #page-mod-forum-index ===
great!
=== .path-course .path-blog ===
Very useful for core subsystems because you may address anything in /course/* , /blog/* easily.
=== plugins ===
I do not like the wrapping of forum stuff in .path-mod-forum because we do not want to say this comes from this directory, but we really want to say this is part of forum. In case of chat we have the problem with subdirectories, it could be solved by adding all parent paths to each page.
All plugins are defined in get_plugin_types() - that is the only place we need to modify when you are adding new type o plugin - it returns array (plugintype=>plugindirectory), the $component name is constructed as $plugintype.'_'.$pluginname. The rest of functions in moodle accept either $component or $plugintype + $pluginname. There is no place that would accept the path as defined in the CSS class, everything is now using the standardised plugin names (get_string(), install, upgrade, db tables, ... ... ... ... ...). Sometimes unfortunately the plugin name is very different from the actual location, the main reason is that we have a limit on the length of DB tables dues to oracle legacy.
I do not think theme designers actually care how we call the classes - they can see them there without any problems. The problem is that the PHP developers write the first CSS and have to wrap the divs withs classes around the code - so the argument that it is confusing is invalid because all developers have to use get_string() and friends which require component name.
So still ".mod_forum" or better ".plugin-mod_forum" makes much more sense to me.
Alrighty, I have attached `
MDL-21862.theme.20100319.01.patch` which is a patch that gets base theme up and running as well as a new standard theme that is standard+standardwhite from Moodle 1.9!The patch is huge but fret not 90% of it is just reorganizing +optimizing CSS.
Major changes include:
Petr, thank you in advance for taking the time to look at this...... hopefully it doesn't cause you as many nightmares as it caused me.
MDL-21862.theme.20100319.01.patch` which is a patch that gets base theme up and running as well as a new standard theme that is standard+standardwhite from Moodle 1.9! The patch is huge but fret not 90% of it is just reorganizing +optimizing CSS. Major changes include:- Base theme consists of styles that are absolutely required, defines basic layouts and does nothing special.
- Standard theme consists of the `look`, extends base, doesnt define any additional layouts, and enables the dock.
- All pluggin CSS has been written as above and required styles have been moved back into plugins as styles.css files.
- Tidied up all CSS removing duplicate, naturally overridden, and frivolous styles.
- Removed CSS that is no longer used anywhere in Moodle 2.0.
- Reformatted CSS files to single line style definitions, this can be changed if there are good reasons + support for changing it but it certainly makes it easy to see what is going on (for myself at least). I did run this past Martin and he was in agreement.
- CSS is now split based on what it relates to (comments, calendar, messages...) and is split into seperate files if there is enough CSS to justify it.
Petr, thank you in advance for taking the time to look at this...... hopefully it doesn't cause you as many nightmares as it caused me.