diff options
author | till <till@php.net> | 2010-03-20 14:20:01 +0000 |
---|---|---|
committer | till <till@php.net> | 2010-03-20 14:20:01 +0000 |
commit | 63a3dc5fde5a3ceed4f03c19c5015aab19050bee (patch) | |
tree | 50aafccdad5fe36c59f10d194298c35f046afd2f /plugins/emoticons/emoticons.php | |
parent | 0f8ff20ae2e8c949d58b9ca02bda95e388f7d142 (diff) |
moved plugins
Diffstat (limited to 'plugins/emoticons/emoticons.php')
-rw-r--r-- | plugins/emoticons/emoticons.php | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/plugins/emoticons/emoticons.php b/plugins/emoticons/emoticons.php deleted file mode 100644 index be736b625..000000000 --- a/plugins/emoticons/emoticons.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php - -/** - * Display Emoticons - * - * Sample plugin to replace emoticons in plain text message body with real icons - * - * @version 1.0.1 - * @author Thomas Bruederli - * @website http://roundcube.net - */ -class emoticons extends rcube_plugin -{ - public $task = 'mail'; - private $map; - - function init() - { - $this->task = 'mail'; - $this->add_hook('message_part_after', array($this, 'replace')); - - $this->map = array( - ':)' => html::img(array('src' => './program/js/tiny_mce/plugins/emotions/img/smiley-smile.gif', 'alt' => ':)')), - ':-)' => html::img(array('src' => './program/js/tiny_mce/plugins/emotions/img/smiley-smile.gif', 'alt' => ':-)')), - ':(' => html::img(array('src' => './program/js/tiny_mce/plugins/emotions/img/smiley-cry.gif', 'alt' => ':(')), - ':-(' => html::img(array('src' => './program/js/tiny_mce/plugins/emotions/img/smiley-cry.gif', 'alt' => ':-(')), - ); - } - - function replace($args) - { - if ($args['type'] == 'plain') - return array('body' => strtr($args['body'], $this->map)); - - return null; - } - -} - |