| | |
| | | // check inheritance... |
| | | if (is_subclass_of($plugin, 'rcube_plugin')) { |
| | | // ... task, request type and framed mode |
| | | if ((!$plugin->task || preg_match('/^('.$plugin->task.')$/i', $rcmail->task)) /* |
| | | if ((!$plugin->task || preg_match('/^('.$plugin->task.')$/i', $rcmail->task)) |
| | | && (!$plugin->noajax || is_a($rcmail->output, 'rcube_template')) |
| | | && (!$plugin->noframe || empty($_REQUEST['_framed']))*/ |
| | | && (!$plugin->noframe || empty($_REQUEST['_framed'])) |
| | | ) { |
| | | $plugin->init(); |
| | | $this->plugins[$plugin_name] = $plugin; |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Include a plugin stylesheet in the current HTML page |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Save the given HTML content to be added to a template container |
| | | * |
| | |
| | | { |
| | | $this->template_contents[$container] .= $html . "\n"; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Callback for template_container hooks |
| | |
| | | return array('content' => $attrib['content'] . $this->template_contents[$container]); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Make the given file name link into the plugins directory |
| | | * |