You are here

private function CSSCompression_Format::none in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 7 advagg_css_compress/css-compressor-3.x/src/lib/Format.inc \CSSCompression_Format::none()

Returns an unreadable, but fully compressed script

Parameters

(array) selectors: Array of selectors:

(array) details: Array of declarations:

File

advagg_css_compress/css-compressor-3.x/src/lib/Format.inc, line 154

Class

CSSCompression_Format
CSS Compressor [VERSION] [DATE] Corey Hart @ http://www.codenothing.com

Code

private function none($selectors, $details) {
  $css = '';
  foreach ($selectors as $k => $v) {
    if (strpos($v, $this->token) === 0) {
      $css .= substr($v, strlen($this->token));
      $css .= $details[$k];
      continue;
    }
    else {
      if ($details[$k] && $details[$k] != '') {
        $css .= trim("{$v}{" . $details[$k] . "}");
      }
    }
  }
  return $css;
}