/** * 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. */ function theme_clean_process_css($css, $theme) { // Set the background image for the logo. $logo = $theme->setting_file_url('logo', 'logo'); $css = theme_clean_set_logo($css, $logo); // Set custom CSS. if (!empty($theme->settings->customcss)) { $customcss = $theme->settings->customcss; } else { $customcss = null; } $css = theme_clean_set_customcss($css, $customcss); return $css; }
/** * 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. */ function theme_clean_process_css($css, $theme) { global $OUTPUT; // Set the background image for the logo. $logo = $OUTPUT->get_logo_url(null, 75); $css = theme_clean_set_logo($css, $logo); // Set custom CSS. if (!empty($theme->settings->customcss)) { $customcss = $theme->settings->customcss; } else { $customcss = null; } $css = theme_clean_set_customcss($css, $customcss); return $css; }
/** * Deprecated: Please call theme_clean_set_customcss instead. * @deprecated since 2.5.1 */ function clean_set_customcss($css, $customcss) { debugging('Please call theme_'.__FUNCTION__.' instead of '.__FUNCTION__, DEBUG_DEVELOPER); return theme_clean_set_customcss($css, $customcss); }