Lines Matching defs:replacements
179 // apply style replacements
180 $css = css_applystyle($css, $styleini['replacements']);
262 * Does placeholder replacements in the style according to
269 * @param array $replacements array(placeholder => value)
274 function css_applystyle($css, $replacements)
276 // we convert ini replacements to LESS variable names
279 foreach ((array)$replacements as $key => $value) {
284 $replacements[$key] = $lkey;
287 // we now replace all old ini replacements with LESS variables
288 $css = strtr($css, $replacements);
451 $css = preg_replace_callback('#(url\( *)([\'"]?)(.*?)(\2)( *\))#', [$this, 'replacements'], $css);
452 $css = preg_replace_callback('#(@import\s+)([\'"])(.*?)(\2)#', [$this, 'replacements'], $css);
488 public function replacements($match)