|
|
(21 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| {{Themes}} | | {{obsolete}} |
|
| |
|
| In the standard Moodle distribution, all themes are placed in the theme/ directory, this leads to theme developers hardcoding this location into their themes. Theme developers should not take this for granted, and use the variables which moodle provides for this purpose.
| | This page text has been deleted because it was inaccurate and out of date. To see the previous text for this page check the history. |
| | |
| Starting with 1.7, moodle will fully support changing the location of themes for use with the theme selector. Themes need to be devloped to ensure compatibility with this feature.
| |
| | |
| == $CFG->themewww ==
| |
| The ''$CFG->themewww'' variable contains the web-accessible location of the theme directory. If it is not set by the site administrator it will be the default of $CFG->wwwroot . '/theme'. i.e. 'http://my.moodle.site/theme'.
| |
| | |
| == $CFG->httpsthemewww ==
| |
| The ''$CFG->httpsthemewww'' (introduced in Moodle 1.7) variable contains the same information as $CFG->themewww with the correct http/https prefix. This should be used to provide proper operation of https protected pages.
| |
| | |
| == $CFG->themedir ==
| |
| The ''$CFG->themedir'' variable contains the local location on the moodle server of the theme directory. If it is not set by the site administrator it will be the default of $CFG->dirroot . '/theme'. i.e. '/my/moodle/location/theme'.
| |
Latest revision as of 07:56, 1 December 2016
Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable.
|
This page text has been deleted because it was inaccurate and out of date. To see the previous text for this page check the history.