Lines Matching refs:match
55 function handle($match, $state, $pos, &$handler){ argument
57 $rawdata = $match;
58 if(preg_match('#\[(.*)\]#',$match,$inside)){
59 $match = $inside[1];
62 $match= Doku_Handler_Parse_Media($match);
63 $match['imagebox'] = $imagebox;
64 $match['pos'] = $pos;
65 $match['raw'] = $rawdata;
66 return array($match, $state, $pos);
70 list($match, $state, $pos) = $data;
73 if($match['type']=='internalmedia'){
74 $match['fileid']=0;
75 if(preg_match('#fileid=(\d+)?#i',$match['raw'],$fileid)){
76 ($fileid[1]) ? $match['fileid'] = $fileid[1]:"";
78 if($match['fileid'] == $match['width']){
82 $match['width'] = NULL;
83 if(preg_match('#[\?|&](\d+)(x(\d+))?#i',$match['raw'],$size)){
84 ($size[1])?$match['width'] = $size[1]:$match['width'] = NULL;
85 ($size[3])?$match['height'] = $size[3]:$match['height'] = NULL;
90 else $match['fileid'] = $helper->fileIDForWikiID($match['src']);
94 …if($match['type'] != 'internalmedia') $match['title'] .= ' ('.$this->getLang('source').': '.$match…
95 if($match['imagebox']){
96 $this->handleImageBox($match,$helper);
97 $match['linking'] = 'details'; // Detail when click on image, enlarge if click on magnify
98 list($opener,$closer) = $this->buildImagebox($match);
99 $match['align'] = 'box2'; // overwrite class to mediabox2, alignment from thumb.
102 if($match['type']!='internalmedia'){
103 …match['src'])) $renderer->doc.= $helper->externalmedia($match['src'], $match['title'], $match['ali…
105 …internalmedia($match['fileid'],$match['src'], $match['title'], $match['align'], $match['width'],$m…
121 function handleImageBox(&$match,&$helper){// Detail immer, M argument
122 $match['w'] = $match['width'];
123 $dispMagnify = ($match['w'] || $match['height']);
125 list($src,$hash) = explode('#',$match['src'],2);
126 if($match['type']=='internalmedia') {
129 …$match['magnifyLink'] = $helper->ml($src,array('cache'=>$match['cache'],'fileid'=>$match['fileid']…
130 if($hash) $match['magnifyLink'] .= '#'.$hash;
133 $match['magnifyLink'] = ml($src,array('cache'=>'cache'),true);
134 if($hash) $match['detail'] .= '#'.$hash;
137 $match['exist'] = $gimgs!==false;
138 if(!$match['w'] && $match['exist']){
139 if($match['height']){
140 $match['w'] = $match['height']*$gimgs[0]/$gimgs[1];
142 $match['w'] = $gimgs[0];
145 if(!$match['align']) $match['align'] = 'rien';
159 public function buildImagebox($match){ argument
160 …$opener = '<div class="thumb2 t'.$match['align'].'" style="width:'.($match['w']?($match['w']+10).…
163 …$closer .= '<a class="internal" title="'.$this->getLang('enlarge').'" href="'.$match['magnifyLink'…
168 if($style=='Italic') $closer .= '<em>'.htmlspecialchars($match['title']).'</em>';
169 elseif($style=='Bold') $closer .= '<strong>'.htmlspecialchars($match['title']).'</strong>';
170 else $closer .= '<span>'.htmlspecialchars($match['title']).'</span>';