コード例 #1
0
 function tag($name, $text = null, $attributes = array())
 {
     $self =& WpOgp_FormComponent::getInstance();
     if (!is_array($attributes)) {
         $attributes = array('class' => $attributes);
     }
     if ($text === null) {
         $tag = 'tagstart';
     } else {
         $tag = 'tag';
     }
     return sprintf($self->_tags[$tag], $name, $self->_parseAttributes($attributes, null, ' ', ''), $text, $name);
 }