Hi everyone,
I am not a themer, nor a designer, but I was recently helping someone making its first steps into the theme code, and I realised that it wasn't as straightforward as it could be. Even though, I am pretty sure that Clean/Bootstrapbase (Moodle 2.5) make it a lot easier by defining easier layout files, etc... it still is a bit tricky.
I attempted an experiment of making a new theme as straightforward as possible, with some inline documentation, and other stuff. I would appreciate if you could try it out and comment on it.
https://github.com/FMCorz/moodle-theme_easy
For now, this contains:
- A cleaned up config.php with only the necessary, with focus on what is relevant to a new theme
- No more functions specific to the theme, this extra logic was rather confusing
- Not a single setting, this is not necessary if you're making your own theme
- An 'ready-to-use' renderer class, to prevent common pitfall
- A new renderer method element() to allow for inclusion of portions of HTML
In the future, I would like to make it easier to customise Bootstrap inherited from bootstrapbase.
Thanks for your feedbacks.