| | |
| | | |
| | | $this->load_config(); |
| | | |
| | | if (!$rcube->config->get('emoticons_compose', true)) { |
| | | $args['disabled_plugins'][] = 'emoticons'; |
| | | $args['disabled_buttons'][] = 'emoticons'; |
| | | if ($rcube->config->get('emoticons_compose', true)) { |
| | | $args['extra_plugins'][] = 'emoticons'; |
| | | $args['extra_buttons'][] = 'emoticons'; |
| | | } |
| | | |
| | | return $args; |
| | |
| | | $dont_override = $rcube->config->get('dont_override', array()); |
| | | |
| | | if ($args['section'] == 'mailview' && !in_array('emoticons_display', $dont_override)) { |
| | | $args['prefs']['emoticons_display'] = rcube_utils::get_input_value('_emoticons_display', rcube_utils::INPUT_POST) ? true : false; |
| | | $args['prefs']['emoticons_display'] = !empty(rcube_utils::get_input_value('_emoticons_display', rcube_utils::INPUT_POST)); |
| | | } |
| | | else if ($args['section'] == 'compose' && !in_array('emoticons_compose', $dont_override)) { |
| | | $args['prefs']['emoticons_compose'] = rcube_utils::get_input_value('_emoticons_compose', rcube_utils::INPUT_POST) ? true : false; |
| | | $args['prefs']['emoticons_compose'] = !empty(rcube_utils::get_input_value('_emoticons_compose', rcube_utils::INPUT_POST)); |
| | | } |
| | | |
| | | return $args; |