mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-16 14:33:53 +00:00
43 lines
No EOL
1.5 KiB
PHP
43 lines
No EOL
1.5 KiB
PHP
<?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.
|
|
*
|
|
*/
|
|
use Friendica\Core\Hook;
|
|
|
|
function smilies_adult_install() {
|
|
Hook::register('smilie', 'addon/smilies_adult/smilies_adult.php', 'smilies_adult_smilies');
|
|
}
|
|
|
|
function smilies_adult_uninstall() {
|
|
Hook::unregister('smilie', 'addon/smilies_adult/smilies_adult.php', 'smilies_adult_smilies');
|
|
}
|
|
|
|
|
|
|
|
function smilies_adult_smilies(&$a,&$b) {
|
|
|
|
$b['texts'][] = '(o)(o)';
|
|
$b['icons'][] = '<img class="smiley" src="' . $a->getBaseURL() . '/addon/smilies_adult/icons/tits.gif' . '" alt="' . '(o)(o)' . '" />';
|
|
|
|
$b['texts'][] = '(.)(.)';
|
|
$b['icons'][] = '<img class="smiley" src="' . $a->getBaseURL() . '/addon/smilies_adult/icons/tits.gif' . '" alt="' . '(.)(.)' . '" />';
|
|
|
|
$b['texts'][] = ':bong';
|
|
$b['icons'][] = '<img class="smiley" src="' . $a->getBaseURL() . '/addon/smilies_adult/icons/bong.gif' . '" alt="' . ':bong' . '" />';
|
|
|
|
$b['texts'][] = ':sperm';
|
|
$b['icons'][] = '<img class="smiley" src="' . $a->getBaseURL() . '/addon/smilies_adult/icons/sperm.gif' . '" alt="' . ':sperm' . '" />';
|
|
|
|
$b['texts'][] = ':drunk';
|
|
$b['icons'][] = '<img class="smiley" src="' . $a->getBaseURL() . '/addon/smilies_adult/icons/drunk.gif' . '" alt="' . ':drunk' . '" />';
|
|
|
|
$b['texts'][] = ':finger';
|
|
$b['icons'][] = '<img class="smiley" src="' . $a->getBaseURL() . '/addon/smilies_adult/icons/finger.gif' . '" alt="' . ':finger' . '" />';
|
|
|
|
} |