Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/splash/lib.php File Reference

Go to the source code of this file.

Namespaces

namespace  theme_splash

Functions

 splash_process_css ($css, $theme)
 splash_set_regionwidth ($css, $regionwidth)
 splash_set_customcss ($css, $customcss)
 splash_initialise_colourswitcher (moodle_page $page)
 splash_get_colour ($default='red')
 splash_check_colourswitch ()

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.

Here is the call graph for this function:

splash_get_colour ( default = 'red')

Gets the colour the user has selected, or the default if they have never changed

Parameters:
string$defaultThe default colour to use, normally red
Returns:
string The colour the user has selected

Definition at line 110 of file lib.php.

Here is the call graph for this function:

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:
moodle_page$page

Definition at line 99 of file lib.php.

Here is the call graph for this function:

splash_process_css ( css,
theme 
)

Splash theme post process function for CSS

Parameters:
string$cssIncoming CSS to process
stdClass$themeThe theme object
Returns:
string The processed CSS

Definition at line 32 of file lib.php.

Here is the call graph for this function:

splash_set_customcss ( css,
customcss 
)

Sets the custom css variable in CSS

Parameters:
string$css
mixed$customcss
Returns:
string

Definition at line 81 of file lib.php.

Here is the caller graph for this function:

splash_set_regionwidth ( css,
regionwidth 
)

Sets the region width variable in CSS

Parameters:
string$css
mixed$regionwidth
Returns:
string

Definition at line 58 of file lib.php.

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations