4 * Description: Smily icons that could or should not be included in core
6 * Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
8 * This is a template for how to extend the "smily" code.
13 use Friendica\Core\Hook;
16 function smilies_adult_install() {
17 Hook::register('smilie', 'addon/smilies_adult/smilies_adult.php', 'smilies_adult_smilies');
20 function smilies_adult_smilies(array &$b)
22 $b['texts'][] = '(o)(o)';
23 $b['icons'][] = '<img class="smiley" src="' . DI::baseUrl() . '/addon/smilies_adult/icons/tits.gif' . '" alt="' . '(o)(o)' . '" />';
25 $b['texts'][] = '(.)(.)';
26 $b['icons'][] = '<img class="smiley" src="' . DI::baseUrl() . '/addon/smilies_adult/icons/tits.gif' . '" alt="' . '(.)(.)' . '" />';
28 $b['texts'][] = ':bong';
29 $b['icons'][] = '<img class="smiley" src="' . DI::baseUrl() . '/addon/smilies_adult/icons/bong.gif' . '" alt="' . ':bong' . '" />';
31 $b['texts'][] = ':sperm';
32 $b['icons'][] = '<img class="smiley" src="' . DI::baseUrl() . '/addon/smilies_adult/icons/sperm.gif' . '" alt="' . ':sperm' . '" />';
34 $b['texts'][] = ':drunk';
35 $b['icons'][] = '<img class="smiley" src="' . DI::baseUrl() . '/addon/smilies_adult/icons/drunk.gif' . '" alt="' . ':drunk' . '" />';
37 $b['texts'][] = ':finger';
38 $b['icons'][] = '<img class="smiley" src="' . DI::baseUrl() . '/addon/smilies_adult/icons/finger.gif' . '" alt="' . ':finger' . '" />';