2012-04-04 19:07:55 +00: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.
|
|
|
|
*
|
|
|
|
*/
|
2022-06-23 05:16:22 +00:00
|
|
|
|
|
|
|
use Friendica\App;
|
2018-12-26 07:28:16 +00:00
|
|
|
use Friendica\Core\Hook;
|
2019-12-30 02:55:10 +00:00
|
|
|
use Friendica\DI;
|
2012-04-04 19:07:55 +00:00
|
|
|
|
2012-04-04 22:43:34 +00:00
|
|
|
function smilies_adult_install() {
|
2018-12-26 07:28:16 +00:00
|
|
|
Hook::register('smilie', 'addon/smilies_adult/smilies_adult.php', 'smilies_adult_smilies');
|
2012-04-04 19:07:55 +00:00
|
|
|
}
|
|
|
|
|
2023-01-14 02:16:09 +00:00
|
|
|
function smilies_adult_smilies(array &$b)
|
2022-06-23 05:16:22 +00:00
|
|
|
{
|
2012-04-04 19:07:55 +00:00
|
|
|
$b['texts'][] = '(o)(o)';
|
2023-02-18 19:57:09 +00:00
|
|
|
$b['icons'][] = '<img class="smiley" src="' . DI::baseUrl() . '/addon/smilies_adult/icons/tits.gif' . '" alt="' . '(o)(o)' . '" />';
|
2012-04-04 19:07:55 +00:00
|
|
|
|
|
|
|
$b['texts'][] = '(.)(.)';
|
2023-02-18 19:57:09 +00:00
|
|
|
$b['icons'][] = '<img class="smiley" src="' . DI::baseUrl() . '/addon/smilies_adult/icons/tits.gif' . '" alt="' . '(.)(.)' . '" />';
|
2012-04-04 19:07:55 +00:00
|
|
|
|
|
|
|
$b['texts'][] = ':bong';
|
2023-02-18 19:57:09 +00:00
|
|
|
$b['icons'][] = '<img class="smiley" src="' . DI::baseUrl() . '/addon/smilies_adult/icons/bong.gif' . '" alt="' . ':bong' . '" />';
|
2012-04-04 19:07:55 +00:00
|
|
|
|
|
|
|
$b['texts'][] = ':sperm';
|
2023-02-18 19:57:09 +00:00
|
|
|
$b['icons'][] = '<img class="smiley" src="' . DI::baseUrl() . '/addon/smilies_adult/icons/sperm.gif' . '" alt="' . ':sperm' . '" />';
|
2012-04-04 19:07:55 +00:00
|
|
|
|
|
|
|
$b['texts'][] = ':drunk';
|
2023-02-18 19:57:09 +00:00
|
|
|
$b['icons'][] = '<img class="smiley" src="' . DI::baseUrl() . '/addon/smilies_adult/icons/drunk.gif' . '" alt="' . ':drunk' . '" />';
|
2012-06-08 00:51:54 +00:00
|
|
|
|
|
|
|
$b['texts'][] = ':finger';
|
2023-02-18 19:57:09 +00:00
|
|
|
$b['icons'][] = '<img class="smiley" src="' . DI::baseUrl() . '/addon/smilies_adult/icons/finger.gif' . '" alt="' . ':finger' . '" />';
|
2022-06-23 05:16:22 +00:00
|
|
|
}
|