projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
861b705
)
ConvertStyle.php
author
Edward
<edward@roojs.com>
Wed, 19 Feb 2014 09:51:01 +0000
(17:51 +0800)
committer
Edward
<edward@roojs.com>
Wed, 19 Feb 2014 09:51:01 +0000
(17:51 +0800)
ConvertStyle.php
patch
|
blob
|
history
diff --git
a/ConvertStyle.php
b/ConvertStyle.php
index
c303932
..
10da366
100644
(file)
--- a/
ConvertStyle.php
+++ b/
ConvertStyle.php
@@
-62,7
+62,7
@@
class Pman_Core_ConvertStyle extends Pman
var $styleSheets = array();
var $styleSheets = array();
- function convertStyle($
base, $path
, $is_url = false)
+ function convertStyle($
url, $file
, $is_url = false)
{
// if(!empty($url))
// {
{
// if(!empty($url))
// {
@@
-134,10
+134,7
@@
class Pman_Core_ConvertStyle extends Pman
// }
foreach ($xpath->query('//style') as $s){
// }
foreach ($xpath->query('//style') as $s){
-// $ss = $doc->saveHTML($s);
- print_r($s->nodeValue);
-// $this->styleSheets[] = $this->$this->replaceImageUrl($s)
- echo '<br/>';
+ $this->styleSheets[] = $this->$this->replaceImageUrl($s->nodeValue, $url);
}
exit;
}
exit;