function theme_elegance_process_css($css, $theme) { // Set the background image for the logo. // Set custom CSS. if (!empty($theme->settings->customcss)) { $customcss = $theme->settings->customcss; } else { $customcss = null; } $css = theme_elegance_set_customcss($css, $customcss); // Set custom Moodle Mobile CSS. if (!empty($theme->settings->moodlemobilecss)) { $moodlemobilecss = $theme->settings->moodlemobilecss; } else { $moodlemobilecss = null; } $css = theme_elegance_set_moodlemobilecss($css, $moodlemobilecss); return $css; }
function theme_elegance_process_css($css, $theme) { global $CFG; // Fix the version used as a cache killer. if (!$CFG->slasharguments) { $css = str_replace(array('?v=', '?#iefix'), array('&v=', '&#iefix'), $css); } // Set the background image for the logo. // Set custom CSS. if (!empty($theme->settings->customcss)) { $customcss = $theme->settings->customcss; } else { $customcss = null; } $css = theme_elegance_set_customcss($css, $customcss); // Set custom Moodle Mobile CSS. if (!empty($theme->settings->moodlemobilecss)) { $moodlemobilecss = $theme->settings->moodlemobilecss; } else { $moodlemobilecss = null; } $css = theme_elegance_set_moodlemobilecss($css, $moodlemobilecss); return $css; }