Posts made by Patrick Malley

Moodle in English -> Themes -> Themes 2.0 thrashout -> Re: Themes 2.0 thrashout

by Patrick Malley -
I'm not sure I gather why your code would have to be rewritten.

You have Base as your foundation. Load that first.

$THEME->parents = array('functional');

Then, you'd add your "visual" structural layer. This would be your theme family that you could apply to multiple themes by just including it in the new theme config.php. (Note: I've found that Moodle 2.0 loads the stylesheets in the reverse order that they appear in the config.php array. Therefore, the following will load from right to left.)

$THEME->parents = array('visual', 'functional');

Then, you'd add your "behavioral" layer. I'm assuming that this will replace javascript and add background colors and images to suit your clients' specific needs.

$THEME->parents = array('behavioral', 'visual', 'functional');

No code would have to be repeated. Assuming you have a solid family (visual) theme, your final coding for your client shouldn't take much time at all.
Average of ratings: Useful (1)
I totally agree with John here. The calendar page is strange in that it uses the same sideblock classes for the minicalendars as actual sideblocks. But, these "sideblocks" do not live inside the the right column like a normal sideblock should. It's awkward and inconsistent, for sure.

The expected behavior would be to place the right column mini calendar sideblocks inside the actual right column so that they appear the same width as other sideblocks. However, I'm not sure this is possible since the column would not take other sideblocks.

John - This may be a place where a renderer allows you greater freedom, although I admit that I haven't made it that far in my work to try it out. A new layout for the calendar still wouldn't give you the kind of fine control that you're probably looking for.