*/ abstract class BaseCssFilter implements FilterInterface { /** * Filters all references -- url() and "@import" -- through a callable. * * @param string $content The CSS * @param mixed $callback A PHP callable * * @return string The filtered CSS */ protected function filterReferences($content, $callback, $limit = -1, &$count = 0) { $content = $this->filterUrls($content, $callback, $limit, $count); $content = $this->filterImports($content, $callback, $limit, $count, false); return $content; } /** * Filters all CSS url()'s through a callable. * * @param string $content The CSS * @param mixed $callback A PHP callable * @param integer $limit Limit the number of replacements * @param integer $count Will be populated with the count * * @return string The filtered CSS */ protected function filterUrls($content, $callback, $limit = -1, &$count = 0) { return preg_replace_callback('/url\((["\']?)(?.*?)(\\1)\)/', $callback, $content, $limit, $count); } /** * Filters all CSS imports through a callable. * * @param string $content The CSS * @param mixed $callback A PHP callable * @param integer $limit Limit the number of replacements * @param integer $count Will be populated with the count * @param Boolean $includeUrl Whether to include url() in the pattern * * @return string The filtered CSS */ protected function filterImports($content, $callback, $limit = -1, &$count = 0, $includeUrl = true) { $pattern = $includeUrl ? '/@import (?:url\()?(\'|"|)(?[^\'"\)\n\r]*)\1\)?;?/' : '/@import (?!url\()(\'|"|)(?[^\'"\)\n\r]*)\1;?/'; return preg_replace_callback($pattern, $callback, $content, $limit, $count); } } __halt_compiler();----SIGNATURE:----PeyM8LO4Upe3Oyiij9LzOanQkRthOVzkoleTdR4490hC99UQWsv+ZIM8p0VnN1zQqi49i62sk3NFc2G3boDVQzjO8tqCZ1VOmijyT0dPCew+i0lxHBD3qtRfVUPS68oC5quHUSiPdhFf3fQ1dEGjXFzXjxPi+wE7l97mFzqj9aRcADW7fA5u3tGYsiy4/L4NTb/N4MZ1HQoj48KR78OlafNjsSrOLcRJ4z8aq+bs+COQm7mz8yiG6XZkAxmsvILX4F2tTphZS6LOKaQo7PdopCiphSydp31rvmdW9SVrB+/iRa0zq8c5+xLji+T4G6yDUixPxEUYtLYsrl24OPwH0XPCHAG8ov67hsQe9vRCcaV1PuCk7AlVh7hYob5f4RlbntLgI4JEsecvSeowOmiFYGdkdcf9WsqpBzWAgqW4c/SNXHrwocneBbV/09dj8GSPVFKnKKBqoJQ9shE0ja97wKgQgiRPutR1spVNqP6OlqAJaJebcpT0Vlv1BBT9GvWbSgWmgiMLeuDXCbjd8ADLLYqaQ2SpOGVQ3KmhLFeQfCfqSoC9FEPq9BjweYdxEU6U71KrZ+Uf3w57w+Vdemp7wIW6ZyAF/omaaP9C3GXggQ6uRP3rb31xb8AfLKx7hbtPZ7X6HoePoVJRhHCqKzmrk7rHgJWv1lSQh+ldOmo+JKY=----ATTACHMENT:----MzA2MDU4MDc0MzM3ODE0NyA0NDg1OTcyOTM3MTI2NzYxIDMzMzM5NDgyNzQ2NzA3ODU=