Lines Matching refs:match

20 	function handle($match, $state, $pos, Doku_Handler $handler){
23 $match=Doku_Handler_Parse_Media(substr($match,3));
25 $dispMagnify = ($match['width'] || $match['height']) && $this->getConf('display_magnify')=='If necessary' || $this->getConf('display_magnify')=='Always';
29 $result = explode('#',$match['src'],2);
38 if ($match['type'] == 'internalmedia') {
44 $match['detail'] = ml($src, array('id' => $ID, 'cache' => $match['cache']), ($match['linking'] == 'direct'));
45 if (isset($hash)) $match['detail'] .= '#' . $hash;
56 $match['detail'] = ml($src, array('cache' => 'cache'), false);
57 if (isset($hash)) $match['detail'] .= '#' . $hash;
67 $match['exist'] = ($image_size!==false || (isset($mime_type[0]) && $mime_type[0] == "image")) ;
69 if($match['exist']){
70 if(is_null($match['width']) && is_null($match['height'])) {
71 $match['width'] = $image_size[0];
72 $match['height'] = $image_size[1];
74 if (is_null($match['width'])) {
75 $match['width'] = round($match['height'] * $image_size[0] / $image_size[1]);
77 if (is_null($match['height'])) {
78 $match['height'] = round($match['width'] * $image_size[1] / $image_size[0]);
83 if(!$match['align'] /*|| $match['align']=='center'*/&&!$this->getConf('center_align'))
84 $match['align'] = 'rien';
85 return array($state,$match);
88 return array($state,$match);
91 return array($state,$match);
99 list($state, $match) = $data;
103 list ($src) = explode('#', $match['src'], 2);
107 $renderer->externalmedia($src, $match['title']);
110 $renderer->internalmedia($src, $match['title']);
123 list($state,$match) = $data;
127 $renderer->doc.= '<div class="thumb2 t'.$match['align'].'"><div class="thumbinner">';
128 if($match['exist'])
129 $renderer->{$match['type']}($match['src'],$match['title'],'box2',$match['width'],$match['height'],$match['cache'],$match['linking']);
132 $renderer->doc.= '<div class="thumbcaption" style="max-width: '.($match['width']-6).'px">';
133 if(isset($match['detail'])) {
135 $renderer->doc.= '<a class="internal" title="'.$this->getLang('enlarge').'" href="'.$match['detail'].'" target="_blank">';
143 if($style=='Italic') $renderer->doc .= '<em>'.$renderer->_xmlEntities($match).'</em>';
144 elseif($style=='Bold') $renderer->doc .= '<strong>'.$renderer->_xmlEntities($match).'</strong>';
145 else $renderer->doc .= $renderer->_xmlEntities($match);