[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Theme More lib.
Copyright: | 2014 Frédéric Massart |
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_more_extra_less($theme) X-Ref |
Extra LESS code to inject. This will generate some LESS code from the settings used by the user. We cannot use the {@link theme_more_less_variables()} here because we need to create selectors or alter existing ones. param: theme_config $theme The theme config object. return: string Raw LESS code. |
theme_more_less_variables($theme) X-Ref |
Returns variables for LESS. We will inject some LESS variables from the settings that the user has defined for the theme. No need to write some custom LESS for this. param: theme_config $theme The theme config object. return: array of LESS variables without the @. |
theme_more_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_more_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_more_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_more_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. |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |