Go to the source code of this file.
Function Documentation
Checks if the user is switching colours with a refresh (JS disabled)
If they are this updates the users preference in the database
- Returns:
- bool
Definition at line 121 of file lib.php.
Gets the colour the user has selected, or the default if they have never changed
- Parameters:
-
| string | $default | The default colour to use, normally red |
- Returns:
- string The colour the user has selected
Definition at line 110 of file lib.php.
Adds the JavaScript for the colour switcher to the page.
The colour switcher is a YUI moodle module that is located in theme/splash/yui/splash/splash.js
- Parameters:
-
Definition at line 99 of file lib.php.
Splash theme post process function for CSS
- Parameters:
-
| string | $css | Incoming CSS to process |
| stdClass | $theme | The theme object |
- Returns:
- string The processed CSS
Definition at line 32 of file lib.php.
Sets the custom css variable in CSS
- Parameters:
-
| string | $css | |
| mixed | $customcss | |
- Returns:
- string
Definition at line 81 of file lib.php.
Sets the region width variable in CSS
- Parameters:
-
| string | $css | |
| mixed | $regionwidth | |
- Returns:
- string
Definition at line 58 of file lib.php.