1: <?php
2: /**
3: * Class that extends the base emoticons class to allow output of Horde image
4: * tags.
5: *
6: * Copyright 2010-2012 Horde LLC (http://www.horde.org/)
7: *
8: * See the enclosed file COPYING for license information (LGPL). If you
9: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
10: *
11: * @author Michael Slusarz <slusarz@horde.org>
12: * @category Horde
13: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
14: * @package Core
15: */
16: class Horde_Core_Text_Filter_Emoticons extends Horde_Text_Filter_Emoticons
17: {
18: /**
19: * Return the HTML image tag needed to display an emoticon.
20: *
21: * @param string $icon The emoticon name.
22: *
23: * @return string The HTML image code.
24: */
25: public function getIcon($icon)
26: {
27: return Horde::img('emoticons/' . $this->getIcons($icon) . '.png', $icon, array('align' => 'middle', 'title' => $icon));
28: }
29:
30: }
31: