[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Moodle's Clean theme, an example of how to make a Bootstrap theme DO NOT MODIFY THIS THEME! COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD.
Copyright: | 2013 Moodle, moodle.org |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 180 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
theme_clean_process_css($css, $theme) X-Ref |
Parses CSS before it is cached. This function can make alterations and replace patterns within the CSS. param: string $css The CSS param: theme_config $theme The theme config object. return: string The parsed CSS The parsed CSS. |
theme_clean_set_logo($css, $logo) X-Ref |
Adds the logo to CSS. param: string $css The CSS. param: string $logo The URL of the logo. return: string The parsed CSS |
theme_clean_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options = array() X-Ref |
Serves any files associated with the theme settings. param: stdClass $course param: stdClass $cm param: context $context param: string $filearea param: array $args param: bool $forcedownload param: array $options return: bool |
theme_clean_set_customcss($css, $customcss) X-Ref |
Adds any custom CSS to the CSS before it is cached. param: string $css The original CSS. param: string $customcss The custom CSS to add. return: string The CSS which now contains our custom CSS. |
theme_clean_get_html_for_settings(renderer_base $output, moodle_page $page) X-Ref |
Returns an object containing HTML for the areas affected by settings. Do not add Clean specific logic in here, child themes should be able to rely on that function just by declaring settings with similar names. param: renderer_base $output Pass in $OUTPUT. param: moodle_page $page Pass in $PAGE. return: stdClass An object with the following properties: |
clean_process_css() X-Ref |
All theme functions should start with theme_clean_ |
clean_set_logo() X-Ref |
All theme functions should start with theme_clean_ |
clean_set_customcss() X-Ref |
All theme functions should start with theme_clean_ |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |