public function interpret(Node $node){ $ret = '<div data-role="header">'; $ret .= parent::interpret($node); $ret .= '</div>'; return $ret; }
public function interpret(Node $node){ $name = $node->getAttribute('#'); $theme = $node->getAttribute('@0'); $ret = '<div data-role="page" id="'.$node->getAttribute('id').'"'; if($theme != ''){ $ret .= ' data-theme="'.$theme.'" '; } $ret .='>'; $ret .= parent::interpret($node); $ret .='</div>'; return $ret; }
public function iterate(Node $node){ return parent::interpret($node); }
function li(Node $node, Node $parent){ $text = $node->getAttribute('@0'); $style = $node->getAttribute('style'); if($text == ''){ $text = $node->getAttribute('[]'); } $ret = '<li data-icon="false"'; if($style != ''){ $ret .= ' style="'.$style.'"'; } $ret .= '>'; if($text != ''){ $ret .= $text; }else{ $ret .=parent::interpret($node); } $ret .= '</li>'; return $ret; }