From 63a3dc5fde5a3ceed4f03c19c5015aab19050bee Mon Sep 17 00:00:00 2001 From: till Date: Sat, 20 Mar 2010 14:20:01 +0000 Subject: moved plugins --- plugins/help/help.php | 96 --------------------------------------------------- 1 file changed, 96 deletions(-) delete mode 100644 plugins/help/help.php (limited to 'plugins/help/help.php') diff --git a/plugins/help/help.php b/plugins/help/help.php deleted file mode 100644 index a7b3d5793..000000000 --- a/plugins/help/help.php +++ /dev/null @@ -1,96 +0,0 @@ -add_texts('localization/', false); - - // register actions - $this->register_action('plugin.help', array($this, 'action')); - $this->register_action('plugin.helpabout', array($this, 'action')); - $this->register_action('plugin.helplicense', array($this, 'action')); - - // add taskbar button - $this->add_button(array( - 'name' => 'helptask', - 'class' => 'button-help', - 'label' => 'help.help', - 'href' => './?_task=dummy&_action=plugin.help', - ), 'taskbar'); - - $skin = $rcmail->config->get('skin'); - if (!file_exists($this->home."/skins/$skin/help.css")) - $skin = 'default'; - - // add style for taskbar button (must be here) and Help UI - $this->include_stylesheet("skins/$skin/help.css"); - } - - function action() - { - $rcmail = rcmail::get_instance(); - - $this->load_config(); - - // register UI objects - $rcmail->output->add_handlers(array( - 'helpcontent' => array($this, 'content'), - )); - - if ($rcmail->action == 'plugin.helpabout') - $rcmail->output->set_pagetitle($this->gettext('about')); - else if ($rcmail->action == 'plugin.helplicense') - $rcmail->output->set_pagetitle($this->gettext('license')); - else - $rcmail->output->set_pagetitle($this->gettext('help')); - - $rcmail->output->send('help.help'); - } - - function content($attrib) - { - $rcmail = rcmail::get_instance(); - - if ($rcmail->action == 'plugin.helpabout') { - return @file_get_contents($this->home.'/content/about.html'); - } - else if ($rcmail->action == 'plugin.helplicense') { - return @file_get_contents($this->home.'/content/license.html'); - } - - // default content: iframe - - if ($src = $rcmail->config->get('help_source')) - $attrib['src'] = $src; - - if (empty($attrib['id'])) - $attrib['id'] = 'rcmailhelpcontent'; - - // allow the following attributes to be added to the '."\n", $framename, $attrib_str); - - return $out; - } - -} - -?> -- cgit v1.2.3