Lines Matching refs:matches
53 $matches=array();
54 if(preg_match('/\[?(\d+(em|%|pt|px)?)\s*([,xX]\s*(\d+(em|%|pt|px)?))?\]?/',$param,$matches)){
55 if(array_key_exists(4, $matches) && $matches[4]){
57 $opts['width'] = $matches[1];
58 if(!$matches[2]) $opts['width'] .= 'px'; //default to pixel when no unit was set
59 $opts['height'] = $matches[4];
60 if(!$matches[5]) $opts['height'] .= 'px'; //default to pixel when no unit was set
61 }elseif(array_key_exists(2, $matches) && $matches[2]){
63 $opts['height'] = $matches[1];
64 if(!$matches[2]) $opts['height'] .= 'px'; //default to pixel when no unit was set
75 if(preg_match('/(left|right)/',$param,$matches)){
76 $opts['align'] = $matches[1];
87 preg_match("/^\s*?(.+?)\s+(.+?)$/i", $line, $matches);
88 if (isset($matches[1], $matches[2]) && strpos($url, $matches[1]) !== false) {
89 $url = str_replace($matches[1] . '>', '@REPLACE@', $url);
90 if(strpos($matches[2], '{NAME}') !== false) {
91 $url = str_replace('@REPLACE@' , str_replace('{NAME}', '', $matches[2]), $url);
92 } else if(strpos($matches[2], '{URL}') !== false) {
93 $url = str_replace('%40REPLACE%40', str_replace('{URL}', '', $matches[2]), urlencode($url));