function csstidy_optimise::compress_important in Advanced CSS/JS Aggregation 6
Same name and namespace in other branches
- 7 advagg_css_compress/csstidy/class.csstidy_optimise.inc \csstidy_optimise::compress_important()
Removes unnecessary whitespace in ! important
@access public @version 1.1
Parameters
string $string:
Return value
string
1 call to csstidy_optimise::compress_important()
- csstidy_optimise::value in advagg_css_compress/
csstidy/ class.csstidy_optimise.inc - Optimises values @access public @version 1.0
File
- advagg_css_compress/
csstidy/ class.csstidy_optimise.inc, line 270
Class
- csstidy_optimise
- CSS Optimising Class
Code
function compress_important(&$string) {
if (csstidy::is_important($string)) {
$string = csstidy::gvw_important($string) . '!important';
}
return $string;
}