function obtener_estilos($plantilla) { $css = new cssparser(); @$css->ParseStr($plantilla); $res = array_unique(array_keys($css->css)); sort($res); return $res; }
function ParseStr($str, $clear = FALSE) { if (!$clear) { $save = $this->css; } $ret = parent::ParseStr($str); if (!($ret || $clear)) { $this->css = $save; } return $ret; }