Lines Matching refs:attr
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
99 $match = array(DOKU_LEXER_ENTER, $tag, $attr);
106 $match = array(DOKU_LEXER_EXIT, $tag, $attr);
147 * @param string $attr attributes of html tag
150 private function appendClass($class, $attr) argument
153 preg_match($regex, $attr, $matches);
156 return $attr;
159 return $attr.' class="'.$class.'"';
165 return str_replace($matches[0], $replace, $attr);
183 list($tag, $attr) = $this->interpret($match);
185 $attr = $this->appendClass('exttable', $attr);
187 $this->open($tag, $attr, $pos, $match, $handler);
197 list($tag, $attr) = $this->interpret($match);
207 $this->open($tag, $attr, $pos, $match, $handler);
214 $this->open($tag, $attr, $pos, $match, $handler);
227 $this->open($tag, $attr, $pos, $match, $handler);
232 $this->open($tag, $attr, $pos, $match, $handler);
248 $this->open($tag, $attr, $pos, $match, $handler);
255 $this->open($tag, $attr, $pos, $match, $handler);
311 list($state, $tag, $attr) = $data;
315 $renderer->doc.= $this->tag_open($tag, $attr);
332 * @param string $attr attibutes of tag element
335 protected function tag_open($tag, $attr = null) argument
339 $attr = $this->cleanAttrString($attr, $this->attrsmap);
340 return $before.'<'.$tag.$attr.'>'.$after;
403 * @param string $attr attibutes to be checked
421 protected function cleanAttrString($attr = '', $allowed_keys) argument
423 if (is_null($attr)) return null;
426 $attr = trim(preg_replace('/\s+/', ' ', $attr));
428 $attr = preg_replace('/[<>[:^print:]]+/', '', $attr);
437 $nattr = preg_match_all("/(\w+)\s*=\s*($val)/", $attr, $matches, PREG_SET_ORDER);