A block to quickly change themes. Great for theme developers!
- copyright © 2015-onwards G J Barnard in respect to modifications of original code:
-
https://github.com/johntron/moodle-theme-selector-block by John Tron, see: https://github.com/johntron/moodle-theme-selector-block/issues/1.
- author G J Barnard - http://about.me/gjbarnard and http://moodle.org/user/profile.php?id=442195
- license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
This version works with:
- Moodle 2.9 version 2015051100.00 (Build: 20150511) and above within the 2.9 branch.
- Moodle 3.0 version 2015111600.00 (Build: 20151116) and above within the 3.0 branch.
- Moodle 3.1 version 2016052300.00 (Build: 20160523) and above within the 3.1 branch.
- Moodle 3.3 version 2016110800.00 (Build: 20161108) and above within the 3.2 branch.
- Moodle 3.3 version 2017051500.00 (Build: 20170515) and above within the 3.3 branch.
- Moodle 3.4beta+ version 2017102700.00 (Build: 20171027) and above within the 3.4 branch.
- Moodle 3.5 version 2018051700.00 (Build: 20180517) and above within the 3.5 branch.
- Moodle 3.6.1 version 2018120301.00 (Build: 20181205) and above within the 3.6 branch.
- Moodle 3.7 version 2019052000.00 (Build: 20190520) and above within the 3.7 branch.
- Moodle 3.8 version 2019111800.00 (Build: 20191118) and above within the 3.8 branch.
- Moodle 3.9 version 2020061500.00 (Build: 20200615) and above within the 3.9 branch.
- Moodle 3.10 version 2020110900.00 (Build: 20201109) and above within the 3.10 branch.
- Moodle 3.11 version 2021051700.00 (Build: 20210517) and above within the 3.11 branch.
- Moodle 4.0 version 2022041900.00 (Build: 20220419) and above within the 4.0 branch.
- Moodle 4.1 version 2022112800.00 (Build: 20221128) and above within the 4.1 branch.
- Moodle 4.2 version 2023042400.00 (Build: 20230424) and above within the 4.2 branch.
- Moodle 4.3 version 2023100900.00 (Build: 20231009) and above within the 4.3 branch.
- Moodle 4.4 version 2024042200.00 (Build: 20240422) and above within the 4.4 branch.
Please ensure that your hardware and software complies with 'Requirements' in 'Installing Moodle' on:
- Moodle 2.9
- Moodle 3.0
- Moodle 3.1
- Moodle 3.2
- Moodle 3.3
- Moodle 3.4
- Moodle 3.5
- Moodle 3.6
- Moodle 3.7
- Moodle 3.8
- Moodle 3.9
- Moodle 3.10
- Moodle 3.11
- Moodle 4.0
- Moodle 4.1
- Moodle 4.2
- Moodle 4.3
- Moodle 4.4
The theme selector block is 'free' software under the terms of the GNU GPLv3 License, please see 'COPYING.txt'.
It can be obtained for free from: https://github.com/gjbarnard/moodle-block_theme_selector
You have all the rights granted to you by the GPLv3 license. If you are unsure about anything, then the FAQ - http://www.gnu.org/licenses/gpl-faq.html - is a good place to look.
If you reuse any of the code then I kindly ask that you make reference to the theme.
If you make improvements or bug fixes then I would appreciate if you would send them back to me by forking from https://github.com/gjbarnard/moodle-block_theme_selector and doing a 'Pull Request' so that the rest of the Moodle community benefits.
- Follow Moodle's instructions for installing plugins, see: Installing Moodle links.
- Turn editing mode on.
- Go to Site administration -> Plugins -> Blocks -> Theme selector and decide if you want URL switching or not. When URL Switching is off only users with the 'moodle/site:config' capability will be able to change themes. Theme changes are permenant for all. When URL Switching is on everybody can change the theme but it will only be for them. The set site theme will remain as set by a user with 'moodle/site:config' capability.
- Add the "Theme selector" block wherever you like.
- The selector will show the current theme as the one selected.
See Changes.md
G J Barnard MSc. BSc(Hons)(Sndw). MBCS. CEng. CITP. PGCE.
- Moodle profile | Moodle.org
- @gjbarnard | X
- Web profile | About.me
- Website | Website