You are here

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

Checks if $value is !important.

@access public @version 1.0

Parameters

string $value:

Return value

bool

11 calls to csstidy::is_important()
csstidy::css_add_property in advagg_css_compress/csstidy/class.csstidy.inc
Adds a property with value to the existing CSS code
csstidy::gvw_important in advagg_css_compress/csstidy/class.csstidy.inc
Returns a value without !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

... See full list

File

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

Class

csstidy
CSS Parser class

Code

static function is_important(&$value) {
  return !strcasecmp(substr(str_replace($GLOBALS['csstidy']['whitespace'], '', $value), -10, 10), '!important');
}