Lines Matching refs:url

56     //$regexp = '/@import url\([\'\"]{0,1}([^\)]*?\.css)[\'\"]{0,1}\)/si';
57 $regexp = '/@import url\([\'\"]{0,1}([^\)]*?\.css(\?\S+)?)[\'\"]{0,1}\)/si';
64 // look for @import without the url()
87 // and fix url paths (including background-images) relative to stylesheet
88 //$regexpem = '/@import url\([\'\"]{0,1}(.*?\.css)[\'\"]{0,1}\)/si';
89 $regexpem = '/@import url\([\'\"]{0,1}(.*?\.css(\?\S+)?)[\'\"]{0,1}\)/si';
100 $regexpem = '/(background[^;]*url\s*\(\s*[\'\"]{0,1})([^\)\'\"]*)([\'\"]{0,1}\s*\))/si';
124 $regexpem = '/(background[^;]*url\s*\(\s*[\'\"]{0,1})([^\)\'\"]*)([\'\"]{0,1}\s*\))/si';
154 // Replace any background: url(data:image... with temporary image file reference
155 …preg_match_all("/(url\(data:image\/(jpeg|gif|png);base64,(.*?)\))/si", $CSSstr, $idata); // mPD…
162 $CSSstr = str_replace($idata[0][$i], 'url("'.$file.'")', $CSSstr); // mPDF 5.5.17
169 …// Characters "(" ")" and ";" in url() e.g. background-image, cause problems parsing the CSS string
173 if (strpos($CSSstr,'url(')!==false) {
174 preg_match_all( '/url\(\"(.*?)\"\)/', $CSSstr, $m);
177 $CSSstr = preg_replace('/'.preg_quote($m[0][$i],'/').'/', 'url(\''.$tmp.'\')', $CSSstr);
179 preg_match_all( '/url\(\'(.*?)\'\)/', $CSSstr, $m);
182 $CSSstr = preg_replace('/'.preg_quote($m[0][$i],'/').'/', 'url(\''.$tmp.'\')', $CSSstr);
184 preg_match_all( '/url\(([^\'\"].*?[^\'\"])\)/', $CSSstr, $m);
187 $CSSstr = preg_replace('/'.preg_quote($m[0][$i],'/').'/', 'url(\''.$tmp.'\')', $CSSstr);
202 // Changed to allow style="background: url('http://www.bpm1.com/bg.jpg')"