Lines Matching full:tag

35     protected $stack = array();  // stack of current open tag - used by handle() method
90 protected function writeCall($tag, $attr, $state, $pos, $match, $handler) argument
92 $data = array($state, $tag, $attr);
96 protected function open($tag, $attr, $pos, $match, $handler) argument
98 //$this->writeCall($tag,$attr,DOKU_LEXER_ENTER, $pos,$match,$handler);
99 $match = array(DOKU_LEXER_ENTER, $tag, $attr);
103 protected function close($tag, $pos, $match, $handler) argument
105 //$this->writeCall($tag,'',DOKU_LEXER_EXIT, $pos,$match,$handler);
106 $match = array(DOKU_LEXER_EXIT, $tag, $attr);
114 * @return array tag name and attributes
121 case '{|': $tag = 'table'; break;
122 case '|}': $tag = '/table'; break;
123 case '|+': $tag = 'caption'; break;
124 case '|-': $tag = 'tr'; break;
125 case '||': $tag = 'td'; break;
126 case '!!': $tag = 'th'; break;
130 case '!': $tag = 'th'; break;
131 case '|': $tag = 'td'; break;
134 if (isset($tag)) {
136 return array($tag, $attrs);
147 * @param string $attr attributes of html tag
183 list($tag, $attr) = $this->interpret($match);
186 array_push($this->stack, $tag);
187 $this->open($tag, $attr, $pos, $match, $handler);
197 list($tag, $attr) = $this->interpret($match);
203 switch ($tag) {
206 array_push($this->stack, $tag);
207 $this->open($tag, $attr, $pos, $match, $handler);
213 array_push($this->stack, $tag);
214 $this->open($tag, $attr, $pos, $match, $handler);
219 switch ($tag) {
226 array_push($this->stack, $tag);
227 $this->open($tag, $attr, $pos, $match, $handler);
231 array_push($this->stack, $tag);
232 $this->open($tag, $attr, $pos, $match, $handler);
238 switch ($tag) {
247 array_push($this->stack, $tag);
248 $this->open($tag, $attr, $pos, $match, $handler);
254 array_push($this->stack, $tag);
255 $this->open($tag, $attr, $pos, $match, $handler);
311 list($state, $tag, $attr) = $data;
314 case DOKU_LEXER_ENTER: // open tag
315 $renderer->doc.= $this->tag_open($tag, $attr);
319 $renderer->cdata($tag);
321 case DOKU_LEXER_EXIT: // close tag
322 $renderer->doc.= $this->tag_close($tag);
329 * open a exttab tag, used in render_xhtml()
331 * @param string $tag 'table','caption','tr','th' or 'td'
332 * @param string $attr attibutes of tag element
333 * @return string html used to open the tag
335 protected function tag_open($tag, $attr = null) argument
337 $before = $this->tagsmap[$tag][0];
338 $after = $this->tagsmap[$tag][1];
340 return $before.'<'.$tag.$attr.'>'.$after;
344 * close a exttab tag, used in render_xhtml()
346 * @param string $tag 'table','caption','tr','th' or 'td'
347 * @return string html used to close the tag
349 protected function tag_close($tag) argument
351 $before = $this->tagsmap['/'.$tag][0];
352 $after = $this->tagsmap['/'.$tag][1];
353 return $before.'</'.$tag.'>'.$after;
388 // html5 table tag
390 // html5 th and td tag
411 * - closing the tag and opening a new one