_getInfo($name, $value, $attribs); extract($info); // name, id, value, attribs, options, listsep, disable, escape // Get content $content = ''; if (isset($attribs['content'])) { $content = $attribs['content']; unset($attribs['content']); } else { $content = $value; } // Ensure type is sane $type = 'button'; if (isset($attribs['type'])) { $attribs['type'] = strtolower($attribs['type']); if (in_array($attribs['type'], array('submit', 'reset', 'button'))) { $type = $attribs['type']; } unset($attribs['type']); } // build the element if ($disable) { $attribs['disabled'] = 'disabled'; } $content = ($escape) ? $this->view->escape($content) : $content; $xhtml = 'view->escape($value) . '"'; } // add attributes and close start tag $xhtml .= $this->_htmlAttribs($attribs) . '>'; // add content and end tag $xhtml .= $content . ''; return $xhtml; } }