Changeset View
Changeset View
Standalone View
Standalone View
plugins/libkolab/libkolab.php
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | public function init() | ||||
$this->add_texts('localization/', false); | $this->add_texts('localization/', false); | ||||
if (!empty($rcmail->output->type) && $rcmail->output->type == 'html') { | if (!empty($rcmail->output->type) && $rcmail->output->type == 'html') { | ||||
$rcmail->output->add_handler('libkolab.folder_search_form', array($this, 'folder_search_form')); | $rcmail->output->add_handler('libkolab.folder_search_form', array($this, 'folder_search_form')); | ||||
$this->include_stylesheet($this->local_skin_path() . '/libkolab.css'); | $this->include_stylesheet($this->local_skin_path() . '/libkolab.css'); | ||||
} | } | ||||
// embed scripts and templates for email message audit trail | // embed scripts and templates for email message audit trail | ||||
if ($rcmail->task == 'mail' && self::get_bonnie_api()) { | if (property_exists($rcmail, 'task') && $rcmail->task == 'mail' && self::get_bonnie_api()) { | ||||
if ($rcmail->output->type == 'html') { | if ($rcmail->output->type == 'html') { | ||||
$this->add_hook('render_page', array($this, 'bonnie_render_page')); | $this->add_hook('render_page', array($this, 'bonnie_render_page')); | ||||
$this->include_script('libkolab.js'); | $this->include_script('libkolab.js'); | ||||
// add 'Show history' item to message menu | // add 'Show history' item to message menu | ||||
$this->api->add_content(html::tag('li', array('role' => 'menuitem'), | $this->api->add_content(html::tag('li', array('role' => 'menuitem'), | ||||
$this->api->output->button(array( | $this->api->output->button(array( | ||||
'command' => 'kolab-mail-history', | 'command' => 'kolab-mail-history', | ||||
▲ Show 20 Lines • Show All 314 Lines • Show Last 20 Lines |