X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=smiley_pack%2Fsmiley_pack.php;h=258ade767495fd5fea97e6b747a203da4ef8da10;hb=d52dccac43f99ebf0b9dd7c0fc3fd3bed3ccabb4;hp=ff2d866215ddc193fc2cef1ef46804e55bc64ded;hpb=0bc7e1302d1458cfccc5187d7736a5bb504d6629;p=friendica-addons.git diff --git a/smiley_pack/smiley_pack.php b/smiley_pack/smiley_pack.php index ff2d8662..258ade76 100644 --- a/smiley_pack/smiley_pack.php +++ b/smiley_pack/smiley_pack.php @@ -2,18 +2,20 @@ /* * Name: Smiley Pack * Description: Pack of smileys that make master too AOLish. - * Version: 1.0 + * Version: 1.04 * Author: Thomas Willingham (based on Mike Macgirvin's Adult Smile template) * All smileys from sites offering them as Public Domain - * - * */ +/** + +*/ + function smiley_pack_install() { register_hook('smilie', 'addon/smiley_pack/smiley_pack.php', 'smiley_pack_smilies'); } -function smiley_pack__uninstall() { +function smiley_pack_uninstall() { unregister_hook('smilie', 'addon/smiley_pack/smiley_pack.php', 'smiley_pack_smilies'); } @@ -21,13 +23,22 @@ function smiley_pack__uninstall() { function smiley_pack_smilies(&$a,&$b) { +#Smileys are split into various directories by the intended range of emotions. This is in case we get too big and need to modularise things. We can then cut and paste the right lines, move the right directory, and just change the name of the addon to happy_smilies or whatever. + +#Be careful with invocation strings. If you have a smiley called foo, and another called foobar, typing :foobar will call foo. Avoid this with clever naming, using ~ instead of : +#when all else fails. + + + +#Animal smileys. + $b['texts'][] = ':bunnyflowers'; $b['icons'][] = '' . ':bunnyflowers' . ''; $b['texts'][] = ':chick'; $b['icons'][] = '' . ':chick' . ''; - $b['texts'][] = ':bee'; + $b['texts'][] = ':bumblebee'; $b['icons'][] = '' . ':bee' . ''; $b['texts'][] = ':ladybird'; @@ -42,9 +53,6 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':bunny'; $b['icons'][] = '' . ':bunny' . ''; - $b['texts'][] = ':chick'; - $b['icons'][] = '' . ':chick' . ''; - $b['texts'][] = ':cow'; $b['icons'][] = '' . ':cow' . ''; @@ -84,6 +92,21 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':dog'; $b['icons'][] = '' . ':dog' . ''; + $b['texts'][] = ':elephant'; + $b['icons'][] = '' . ':elephant' . ''; + + $b['texts'][] = ':fish'; + $b['icons'][] = '' . ':fish' . ''; + + $b['texts'][] = ':giraffe'; + $b['icons'][] = '' . ':giraffe' . ''; + + $b['texts'][] = ':pig'; + $b['icons'][] = '' . ':pig' . ''; + + + +#Baby Smileys $b['texts'][] = ':baby'; $b['icons'][] = '' . ':baby' . ''; @@ -98,7 +121,8 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':stork'; $b['icons'][] = '' . ':stork' . ''; - + +#Confused Smileys $b['texts'][] = ':confused'; $b['icons'][] = '' . ':confused' . ''; @@ -108,11 +132,16 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':stupid'; $b['icons'][] = '' . ':stupid' . ''; + $b['texts'][] = ':dazed'; + $b['icons'][] = '' . ':dazed' . ''; + + +#Cool Smileys + $b['texts'][] = ':affro'; $b['icons'][] = '' . ':affro' . ''; - $b['texts'][] = ':cool'; - $b['icons'][] = '' . ':cool' . ''; +#Devil/Angel Smileys $b['texts'][] = ':angel'; $b['icons'][] = '' . ':angel' . ''; @@ -126,21 +155,33 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':catdevil'; $b['icons'][] = '' . ':catdevil' . ''; - $b['texts'][] = ':devil'; - $b['icons'][] = '' . ':devil' . ''; + $b['texts'][] = ':devillish'; + $b['icons'][] = '' . ':devillish' . ''; + + $b['texts'][] = ':daseesaw'; + $b['icons'][] = '' . ':daseesaw' . ''; + + $b['texts'][] = ':turnevil'; + $b['icons'][] = '' . ':turnevil' . ''; + $b['texts'][] = ':saint'; + $b['icons'][] = '' . ':saint' . ''; $b['texts'][] = ':graveside'; $b['icons'][] = '' . ':graveside' . ''; +#Unpleasent smileys. + $b['texts'][] = ':toilet'; $b['icons'][] = '' . ':toilet' . ''; $b['texts'][] = ':fartinbed'; $b['icons'][] = '' . ':fartinbed' . ''; - $b['texts'][] = ':vomit'; - $b['icons'][] = '' . ':vomit' . ''; + $b['texts'][] = ':fartblush'; + $b['icons'][] = '' . ':fartblush' . ''; + +#Drinks $b['texts'][] = ':tea'; $b['icons'][] = '' . ':tea' . ''; @@ -148,23 +189,32 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':drool'; $b['icons'][] = '' . ':drool' . ''; +#Sad smileys + $b['texts'][] = ':crying'; $b['icons'][] = '' . ':crying' . ''; $b['texts'][] = ':prisoner'; $b['icons'][] = '' . ':prisoner' . ''; + $b['texts'][] = ':sigh'; + $b['icons'][] = '' . ':sigh' . ''; + +#Smoking - only one smiley in here, maybe it needs moving elsewhere? + $b['texts'][] = ':smoking'; $b['icons'][] = '' . ':smoking' . ''; +#Sport smileys + $b['texts'][] = ':basketball'; $b['icons'][] = '' . ':basketball' . ''; - $b['texts'][] = ':bowling'; - $b['icons'][] = '' . ':bowling' . ''; + $b['texts'][] = '~bowling'; + $b['icons'][] = '' . '~bowling' . ''; $b['texts'][] = ':cycling'; - $b['icons'][] = '' . ':cycling' . ''; + $b['icons'][] = '' . ':cycling' . ''; $b['texts'][] = ':darts'; $b['icons'][] = '' . ':darts' . ''; @@ -172,22 +222,33 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':fencing'; $b['icons'][] = '' . ':fencing' . ''; - $b['texts'][] = ':golf'; - $b['icons'][] = '' . ':golf' . ''; - $b['texts'][] = ':juggling'; $b['icons'][] = '' . ':juggling' . ''; $b['texts'][] = ':skipping'; $b['icons'][] = '' . ':skipping' . ''; + $b['texts'][] = ':archery'; + $b['icons'][] = '' . ':archery' . ''; + + $b['texts'][] = ':surfing'; + $b['icons'][] = '' . ':surfing' . ''; + + $b['texts'][] = ':snooker'; + $b['icons'][] = '' . ':snooker' . ''; + + $b['texts'][] = ':horseriding'; + $b['icons'][] = '' . ':horseriding' . ''; + +#Love smileys + $b['texts'][] = ':iloveyou'; $b['icons'][] = '' . ':iloveyou' . ''; $b['texts'][] = ':inlove'; $b['icons'][] = '' . ':inlove' . ''; - $b['texts'][] = ':love'; + $b['texts'][] = '~love'; $b['icons'][] = '' . ':love' . ''; $b['texts'][] = ':lovebear'; @@ -199,6 +260,8 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':loveheart'; $b['icons'][] = '' . ':loveheart' . ''; +#Tired/Sleep smileys + $b['texts'][] = ':countsheep'; $b['icons'][] = '' . ':countsheep' . ''; @@ -208,6 +271,11 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':pillow'; $b['icons'][] = '' . ':pillow' . ''; + $b['texts'][] = ':yawn'; + $b['icons'][] = '' . ':yawn' . ''; + +#Fight/Flame/Violent smileys + $b['texts'][] = ':2guns'; $b['icons'][] = '' . ':2guns' . ''; @@ -247,17 +315,10 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':machinegun'; $b['icons'][] = '' . ':machinegun' . ''; - $b['texts'][] = ':marine'; - $b['icons'][] = '' . ':marine' . ''; - - $b['texts'][] = ':sabre'; - $b['icons'][] = '' . ':sabre' . ''; - - $b['texts'][] = ':tank'; - $b['icons'][] = '' . ':tank' . ''; + $b['texts'][] = ':acid'; + $b['icons'][] = '' . ':acid' . ''; - $b['texts'][] = ':viking'; - $b['icons'][] = '' . ':viking' . ''; +#Fantasy smileys - monsters and dragons fantasy. The other type of fantasy belongs in adult smileys $b['texts'][] = ':alienmonster'; $b['icons'][] = '' . ':alienmonster' . ''; @@ -271,8 +332,8 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':dragon'; $b['icons'][] = '' . ':dragon' . ''; - $b['texts'][] = ':dragonwhelp'; - $b['icons'][] = '' . ':dragonwhelp' . ''; + $b['texts'][] = ':draco'; + $b['icons'][] = '' . ':draco' . ''; $b['texts'][] = ':ghost'; $b['icons'][] = '' . ':ghost' . ''; @@ -280,6 +341,8 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':mummy'; $b['icons'][] = '' . ':mummy' . ''; +#Food smileys + $b['texts'][] = ':apple'; $b['icons'][] = '' . ':apple' . ''; @@ -298,6 +361,16 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':tomato'; $b['icons'][] = '' . ':tomato' . ''; + $b['texts'][] = ':banana'; + $b['icons'][] = '' . ':banana' . ''; + + $b['texts'][] = ':cooking'; + $b['icons'][] = '' . ':cooking' . ''; + + $b['texts'][] = ':fryegg'; + $b['icons'][] = '' . ':fryegg' . ''; + +#Happy smileys $b['texts'][] = ':cloud9'; $b['icons'][] = '' . ':cloud9' . ''; @@ -305,5 +378,118 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':tearsofjoy'; $b['icons'][] = '' . ':tearsofjoy' . ''; +#Repsect smileys + + $b['texts'][] = ':bow'; + $b['icons'][] = '' . ':bow' . ''; + + $b['texts'][] = ':bravo'; + $b['icons'][] = '' . ':bravo' . ''; + + $b['texts'][] = ':hailking'; + $b['icons'][] = '' . ':hailking' . ''; + + $b['texts'][] = ':number1'; + $b['icons'][] = '' . ':number1' . ''; + +#Laugh smileys + + $b['texts'][] = ':hahaha'; + $b['icons'][] = '' . ':hahaha' . ''; + + $b['texts'][] = ':loltv'; + $b['icons'][] = '' . ':loltv' . ''; + + $b['texts'][] = ':rofl'; + $b['icons'][] = '' . ':rofl' . ''; + +#Music smileys + + $b['texts'][] = ':drums'; + $b['icons'][] = '' . ':drums' . ''; + + + $b['texts'][] = ':guitar'; + $b['icons'][] = '' . ':guitar' . ''; + + $b['texts'][] = ':trumpet'; + $b['icons'][] = '' . ':trumpet' . ''; + +#Smileys that used to be in core + + $b['texts'][] = ':headbang'; + $b['icons'][] = '' . ':headbang' . ''; + + $b['texts'][] = ':beard'; + $b['icons'][] = '' . ':beard' . ''; + + $b['texts'][] = ':whitebeard'; + $b['icons'][] = '' . ':whitebeard' . ''; + + $b['texts'][] = ':shaka'; + $b['icons'][] = '' . ':shaka' . ''; + + $b['texts'][] = ':\\.../'; + $b['icons'][] = '' . ':\\.../' . ''; + + $b['texts'][] = ':\\ooo/'; + $b['icons'][] = '' . ':\\ooo/' . ''; + + $b['texts'][] = ':headdesk'; + $b['icons'][] = '' . ':headdesk' . ''; + +#These two are still in core, so oldcore isn't strictly right, but we don't want too many directories + + $b['texts'][] = ':-d'; + $b['icons'][] = '' . ':-d' . ''; + + $b['texts'][] = ':-o'; + $b['icons'][] = '' . ':-o' . ''; + +# Regex killers - stick these at the bottom so they appear at the end of the English and +# at the start of $OtherLanguage. + + $b['texts'][] = ':cool'; + $b['icons'][] = '' . ':cool' . ''; + + $b['texts'][] = ':vomit'; + $b['icons'][] = '' . ':vomit' . ''; + + $b['texts'][] = ':golf'; + $b['icons'][] = '' . ':golf' . ''; + + $b['texts'][] = ':football'; + $b['icons'][] = '' . ':football' . ''; + + $b['texts'][] = ':tennis'; + $b['icons'][] = '' . ':tennis' . ''; + + $b['texts'][] = ':alpha'; + $b['icons'][] = '' . ':alpha' . ''; + + $b['texts'][] = ':marine'; + $b['icons'][] = '' . ':marine' . ''; + + $b['texts'][] = ':sabre'; + $b['icons'][] = '' . ':sabre' . ''; + + $b['texts'][] = ':tank'; + $b['icons'][] = '' . ':tank' . ''; + + $b['texts'][] = ':viking'; + $b['icons'][] = '' . ':viking' . ''; + + $b['texts'][] = ':gangs'; + $b['icons'][] = '' . ':gangs' . ''; + + + $b['texts'][] = ':dj'; + $b['icons'][] = '' . ':dj' . ''; + + + $b['texts'][] = ':elvis'; + $b['icons'][] = '' . ':elivs' . ''; + $b['texts'][] = ':violin'; + $b['icons'][] = '' . ':violin' . ''; }