You are here

static function csstidy::gvw_important in Advanced CSS/JS Aggregation 6

Returns a value without !important

@access public @version 1.0

Parameters

string $value:

Return value

string

9 calls to csstidy::gvw_important()
csstidy_optimise::compress_important in advagg_css_compress/csstidy/class.csstidy_optimise.inc
Removes unnecessary whitespace in ! important
csstidy_optimise::dissolve_4value_shorthands in advagg_css_compress/csstidy/class.csstidy_optimise.inc
Dissolves properties like padding:10px 10px 10px to padding-top:10px;padding-bottom:10px;...
csstidy_optimise::dissolve_short_bg in advagg_css_compress/csstidy/class.csstidy_optimise.inc
Dissolve background property
csstidy_optimise::dissolve_short_font in advagg_css_compress/csstidy/class.csstidy_optimise.inc
Dissolve font property
csstidy_optimise::merge_4value_shorthands in advagg_css_compress/csstidy/class.csstidy_optimise.inc
Merges Shorthand properties again, the opposite of dissolve_4value_shorthands()

... See full list

File

advagg_css_compress/csstidy/class.csstidy.inc, line 1132

Class

csstidy
CSS Parser class

Code

static function gvw_important($value) {
  if (csstidy::is_important($value)) {
    $value = trim($value);
    $value = substr($value, 0, -9);
    $value = trim($value);
    $value = substr($value, 0, -1);
    $value = trim($value);
    return $value;
  }
  return $value;
}