Theme selector block - beta for M2.9

Theme selector block - beta for M2.9

by Gareth J Barnard -
Number of replies: 3
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Themers,

This is something I've wanted for a long time when developing and constantly switching themes either via the theme selector or the URL.  So, I've updated the code from here: https://github.com/johntron/moodle-theme-selector-block - to be fully M2.9 operational and added the ability to switch with the 'allowthemechangeonurl' core theme setting.  The latter removes the choice of 'base' and 'bootstrapbase' themes as guest logins cannot choose them.

You can get the 'beta' test server code from here: https://github.com/gjb2048/moodle-block_theme_selector, use the 'Download ZIP' button and install as a block as normal.  You don't need anything else like jQuery as the block now gets from core via the fully rewritten AMD module.

If I get good feedback, then I'll release in the plugins DB.  If you find this useful, then please mark this post as such.

Cheers,

Gareth

Attachment 2015_08_23_13_26_44_Moo29_Administration_Plugins_Blocks_Theme_selector.png
Average of ratings: Useful (13)
In reply to Gareth J Barnard

Re: Theme selector block - beta for M2.9

by Derek Chirnside -

Gareth:

You now have 8 "Useful" ratings.

Did you have a target in mind before releasing to the plugins database?

-Derek