| | |
| | | $this->register_action('about', array($this, 'action')); |
| | | $this->register_action('license', array($this, 'action')); |
| | | |
| | | $this->add_hook('startup', array($this, 'startup')); |
| | | } |
| | | |
| | | function startup($args) |
| | | { |
| | | $rcmail = rcmail::get_instance(); |
| | | |
| | | // add taskbar button |
| | |
| | | function tablink($attrib) |
| | | { |
| | | $rcmail = rcmail::get_instance(); |
| | | |
| | | $attrib['name'] = 'helplink' . $attrib['action']; |
| | | $attrib['href'] = $rcmail->url(array('_action' => $attrib['action'], '_extwin' => !empty($_REQUEST['_extwin']) ? 1 : null)); |
| | | |
| | | // title might be already translated here, so revert to it's initial value |
| | | // so button() will translate it correctly |
| | | $attrib['title'] = $attrib['label']; |
| | | |
| | | return $rcmail->output->button($attrib); |
| | | } |
| | | |