Lines Matching refs:tag

219     protected function _writeCall($tag, $attr, $state, $pos, $match, $handler)
222 array($state, $tag, $attr), $state, $pos, $match
232 $tag = $m['list'];
234 if ($tag == 'ol') {
242 if (isset($this->list_class[$tag])) {
244 $class.= ' '.$this->list_class[$tag];
246 $class.= ' '.$this->getConf($tag.'_class');
251 $this->_writeCall($tag,$attr,DOKU_LEXER_ENTER, $pos,$match,$handler);
259 $tag = $m['list'];
260 if ($tag == 'ol') {
263 $this->_writeCall($tag,'',DOKU_LEXER_EXIT, $pos,$match,$handler);
271 $tag = $m['item'];
287 $this->_writeCall($tag,$attr,DOKU_LEXER_ENTER, $pos,$match,$handler);
295 $tag = $m['item'];
296 $this->_writeCall($tag,'',DOKU_LEXER_EXIT, $pos,$match,$handler);
307 $tag = 'span'; $attr = '';
315 $tag = 'div'; $attr = 'class="li"';
318 $this->_writeCall($tag,$attr,DOKU_LEXER_ENTER, $pos,$match,$handler);
329 $tag = 'span';
337 $tag = 'div';
340 $this->_writeCall($tag,'',DOKU_LEXER_EXIT, $pos,$match,$handler);
344 * write call to open paragraph (p tag)
352 * write call to close paragraph (p tag)
376 // open list tag [ul|ol|dl]
378 // open item tag [li|dt|dd]
537 list($state, $tag, $attr) = $data;
539 case DOKU_LEXER_ENTER: // open tag
540 $renderer->doc.= $this->_open($tag, $attr);
544 $renderer->cdata($tag);
546 case DOKU_LEXER_EXIT: // close tag
547 $renderer->doc.= $this->_close($tag);
554 * open a tag, a utility for render_xhtml()
556 protected function _open($tag, $attr = null)
559 list($before, $after) = $this->_tag_indent($tag);
560 return $before.'<'.$tag.$attr.'>'.$after;
564 * close a tag, a utility for render_xhtml()
566 protected function _close($tag)
568 list($before, $after) = $this->_tag_indent('/'.$tag);
569 return $before.'</'.$tag.'>'.$after;
592 * @param string $tag tag name
595 private function _tag_indent($tag)
597 if (array_key_exists($tag, $this->indent))
598 return $this->indent[$tag];