From ef2e7b3f9d264ec146d4dae257b1e295ab3b462a Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 21 Apr 2015 12:45:58 +0200 Subject: updates - plugins as a separate git folder --- plugins/hide_blockquote/hide_blockquote.php | 78 ----------------------------- 1 file changed, 78 deletions(-) delete mode 100644 plugins/hide_blockquote/hide_blockquote.php (limited to 'plugins/hide_blockquote/hide_blockquote.php') diff --git a/plugins/hide_blockquote/hide_blockquote.php b/plugins/hide_blockquote/hide_blockquote.php deleted file mode 100644 index 2ad5dd8ac..000000000 --- a/plugins/hide_blockquote/hide_blockquote.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ -class hide_blockquote extends rcube_plugin -{ - public $task = 'mail|settings'; - - function init() - { - $rcmail = rcmail::get_instance(); - - if ($rcmail->task == 'mail' - && ($rcmail->action == 'preview' || $rcmail->action == 'show') - && ($limit = $rcmail->config->get('hide_blockquote_limit')) - ) { - // include styles - $this->include_stylesheet($this->local_skin_path() . "/style.css"); - - // Script and localization - $this->include_script('hide_blockquote.js'); - $this->add_texts('localization', true); - - // set env variable for client - $rcmail->output->set_env('blockquote_limit', $limit); - } - else if ($rcmail->task == 'settings') { - $dont_override = $rcmail->config->get('dont_override', array()); - if (!in_array('hide_blockquote_limit', $dont_override)) { - $this->add_hook('preferences_list', array($this, 'prefs_table')); - $this->add_hook('preferences_save', array($this, 'save_prefs')); - } - } - } - - function prefs_table($args) - { - if ($args['section'] != 'mailview') { - return $args; - } - - $this->add_texts('localization'); - - $rcmail = rcmail::get_instance(); - $limit = (int) $rcmail->config->get('hide_blockquote_limit'); - $field_id = 'hide_blockquote_limit'; - $input = new html_inputfield(array('name' => '_'.$field_id, 'id' => $field_id, 'size' => 5)); - - $args['blocks']['main']['options']['hide_blockquote_limit'] = array( - 'title' => $this->gettext('quotelimit'), - 'content' => $input->show($limit ? $limit : '') - ); - - return $args; - } - - function save_prefs($args) - { - if ($args['section'] == 'mailview') { - $args['prefs']['hide_blockquote_limit'] = (int) rcube_utils::get_input_value('_hide_blockquote_limit', rcube_utils::INPUT_POST); - } - - return $args; - } - -} -- cgit v1.2.3