2012-04-04 15:07:55 -04:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* Name: Adult Smilies
|
|
|
|
* Description: Smily icons that could or should not be included in core
|
|
|
|
* Version: 1.0
|
|
|
|
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
|
|
|
*
|
|
|
|
* This is a template for how to extend the "smily" code.
|
|
|
|
*
|
|
|
|
*/
|
2018-12-26 02:28:16 -05:00
|
|
|
use Friendica\Core\Hook;
|
2012-04-04 15:07:55 -04:00
|
|
|
|
2012-04-04 18:43:34 -04:00
|
|
|
function smilies_adult_install() {
|
2018-12-26 02:28:16 -05:00
|
|
|
Hook::register('smilie', 'addon/smilies_adult/smilies_adult.php', 'smilies_adult_smilies');
|
2012-04-04 15:07:55 -04:00
|
|
|
}
|
|
|
|
|
2012-04-04 18:43:34 -04:00
|
|
|
function smilies_adult_uninstall() {
|
2018-12-26 02:28:16 -05:00
|
|
|
Hook::unregister('smilie', 'addon/smilies_adult/smilies_adult.php', 'smilies_adult_smilies');
|
2012-04-04 15:07:55 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-04-04 18:43:34 -04:00
|
|
|
function smilies_adult_smilies(&$a,&$b) {
|
2012-04-04 15:07:55 -04:00
|
|
|
|
|
|
|
$b['texts'][] = '(o)(o)';
|
2018-10-09 14:13:22 -04:00
|
|
|
$b['icons'][] = '<img class="smiley" src="' . $a->getBaseURL() . '/addon/smilies_adult/icons/tits.gif' . '" alt="' . '(o)(o)' . '" />';
|
2012-04-04 15:07:55 -04:00
|
|
|
|
|
|
|
$b['texts'][] = '(.)(.)';
|
2018-10-09 14:13:22 -04:00
|
|
|
$b['icons'][] = '<img class="smiley" src="' . $a->getBaseURL() . '/addon/smilies_adult/icons/tits.gif' . '" alt="' . '(.)(.)' . '" />';
|
2012-04-04 15:07:55 -04:00
|
|
|
|
|
|
|
$b['texts'][] = ':bong';
|
2018-10-09 14:13:22 -04:00
|
|
|
$b['icons'][] = '<img class="smiley" src="' . $a->getBaseURL() . '/addon/smilies_adult/icons/bong.gif' . '" alt="' . ':bong' . '" />';
|
2012-04-04 15:07:55 -04:00
|
|
|
|
|
|
|
$b['texts'][] = ':sperm';
|
2018-10-09 14:13:22 -04:00
|
|
|
$b['icons'][] = '<img class="smiley" src="' . $a->getBaseURL() . '/addon/smilies_adult/icons/sperm.gif' . '" alt="' . ':sperm' . '" />';
|
2012-04-04 15:07:55 -04:00
|
|
|
|
|
|
|
$b['texts'][] = ':drunk';
|
2018-10-09 14:13:22 -04:00
|
|
|
$b['icons'][] = '<img class="smiley" src="' . $a->getBaseURL() . '/addon/smilies_adult/icons/drunk.gif' . '" alt="' . ':drunk' . '" />';
|
2012-06-07 20:51:54 -04:00
|
|
|
|
|
|
|
$b['texts'][] = ':finger';
|
2018-10-09 14:13:22 -04:00
|
|
|
$b['icons'][] = '<img class="smiley" src="' . $a->getBaseURL() . '/addon/smilies_adult/icons/finger.gif' . '" alt="' . ':finger' . '" />';
|
2012-06-07 20:51:54 -04:00
|
|
|
|
2012-04-04 15:07:55 -04:00
|
|
|
}
|