More.
9. I do not see any logic to the division
$THEME->sheets = array(
'pagelayout',
'core',
'blocks',
'course',
'block_calendar_month',
);
10. I do no understand
'options' => array('nofooter', 'nonavbar'),
in $THEME->layouts. Surely you can control this in layout.php.
Doh! No. I see. It lets you reuse general.php in more cases.
11. Does $THEME need to be a global? Surely we can get rid of it and just use $PAGE->theme to access it. In which case you can delete $THEME-> everywhere in config.php.
12. This bit of code:
$regionsinfo = 'pagelayout';
if ($PAGE->blocks->region_has_content('side-pre', $OUTPUT)) {
$regionsinfo .= '-pre';
}
if ($PAGE->blocks->region_has_content('side-post', $OUTPUT)) {
$regionsinfo .= '-post';
}
must not be in the layout PHP file. Instead, make a $PAGE->pagedivclasses like $PAGE->bodyclasses to encapsulate that logic. Actually, how come you need that code in base, but not in standard? I don't understand.
13. I don't really like the logic
if (empty($PAGE->layout_options['nonavbar']) and $OUTPUT->has_navbar()) {
for two reasons. First, we should not have logic in layout PHP. so at most it should be
if (empty($PAGE->has_navbar()) {
Second. $OUTPUT is a renderer. Its sole job is to produce HTML. There is no way that a $OUTPUT->has_navbar() method should exist.
14. Do we really need that many divs in general.php?
15. Oh yuck! Just seen $THEME->sheets in theme/standard/config.php. That really convinces me that I am right in 3. above. We should have a styles.css in each plugin.
16. And I really do not see any point in having both base and standard themes. We should just have a base theme, whatever it is called.
17. what replaces the old rtl.css?
18. why is favicon.ico at the top level, not in pix?
19. I am very doubtful about deleting customcorners and anomaly from CVS. We want them (working) in 2.0. If you delete them now and add them back later, it will make CVS history even harder to follow. I think it is better to leave them there, but broken, until they are fixed.
20. Please commit the template renderer code somewhere in contrib, so it is easily browsable, rather than deleting it completely.
21. That is weird, the unit tests have been changed to say set_pagelayout, even though other code still refers to generaltype.
22. Why is the change in unction path_inaccessdata($path, $accessdata) { in this patch?
23. lib/javascript-static.js has tabs, not spaces.
Saving these before my browser crashes. More to come.
can not attach patch here - it is too big and too many changes in binary files:
test site at http://ferda.cdv.tul.cz/moodle20t/
you can downlaod the cvs checkout from http://ferda.cdv.tul.cz/moodle20t.zip
Missing bits: