X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=smiley_pack%2Fsmiley_pack.php;h=ed4d0e651405e8d56d57f8794779c61f7b8628dd;hb=10843ca8aca8ace932bdc107d35f140c2f82bea5;hp=6df5b38c3e72f8415a2eb29b957d26d4da5e5be8;hpb=9ac0113c0805216e23a8dc0e4c971f23a2d1090a;p=friendica-addons.git diff --git a/smiley_pack/smiley_pack.php b/smiley_pack/smiley_pack.php index 6df5b38c..ed4d0e65 100644 --- a/smiley_pack/smiley_pack.php +++ b/smiley_pack/smiley_pack.php @@ -13,7 +13,7 @@ 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 +21,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'; @@ -84,6 +93,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 +122,8 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':stork'; $b['icons'][] = '' . ':stork' . ''; - + +#Confused Smileys $b['texts'][] = ':confused'; $b['icons'][] = '' . ':confused' . ''; @@ -108,12 +133,20 @@ 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,13 +159,23 @@ 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' . ''; @@ -142,29 +185,40 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':vomit'; $b['icons'][] = '' . ':vomit' . ''; + $b['texts'][] = ':fartblush'; + $b['icons'][] = '' . ':fartblush' . ''; + +#Drinks + $b['texts'][] = ':tea'; $b['icons'][] = '' . ':tea' . ''; $b['texts'][] = ':drool'; $b['icons'][] = '' . ':drool' . ''; +#Sad smileys + $b['texts'][] = ':crying'; $b['icons'][] = '' . ':crying' . ''; $b['texts'][] = ':prisoner'; $b['icons'][] = '' . ':prisoner' . ''; +#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' . ''; @@ -181,13 +235,33 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':skipping'; $b['icons'][] = '' . ':skipping' . ''; + $b['texts'][] = ':archery'; + $b['icons'][] = '' . ':archery' . ''; + + $b['texts'][] = ':football'; + $b['icons'][] = '' . ':football' . ''; + + $b['texts'][] = ':surfing'; + $b['icons'][] = '' . ':surfing' . ''; + + $b['texts'][] = ':snooker'; + $b['icons'][] = '' . ':snooker' . ''; + + $b['texts'][] = ':tennis'; + $b['icons'][] = '' . ':tennis' . ''; + + $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,4 +273,216 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':loveheart'; $b['icons'][] = '' . ':loveheart' . ''; +#Tired/Sleep smileys + + $b['texts'][] = ':countsheep'; + $b['icons'][] = '' . ':countsheep' . ''; + + $b['texts'][] = ':hammock'; + $b['icons'][] = '' . ':hammock' . ''; + + $b['texts'][] = ':pillow'; + $b['icons'][] = '' . ':pillow' . ''; + + $b['texts'][] = ':yawn'; + $b['icons'][] = '' . ':yawn' . ''; + +#Fight/Flame/Violent smileys + + $b['texts'][] = ':2guns'; + $b['icons'][] = '' . ':2guns' . ''; + + $b['texts'][] = ':alienfight'; + $b['icons'][] = '' . ':alienfight' . ''; + + $b['texts'][] = ':army'; + $b['icons'][] = '' . ':army' . ''; + + $b['texts'][] = ':arrowhead'; + $b['icons'][] = '' . ':arrowhead' . ''; + + $b['texts'][] = ':bfg'; + $b['icons'][] = '' . ':bfg' . ''; + + $b['texts'][] = ':bowman'; + $b['icons'][] = '' . ':bowman' . ''; + + $b['texts'][] = ':chainsaw'; + $b['icons'][] = '' . ':chainsaw' . ''; + + $b['texts'][] = ':crossbow'; + $b['icons'][] = '' . ':crossbow' . ''; + + $b['texts'][] = ':crusader'; + $b['icons'][] = '' . ':crusader' . ''; + + $b['texts'][] = ':dead'; + $b['icons'][] = '' . ':dead' . ''; + + $b['texts'][] = ':hammersplat'; + $b['icons'][] = '' . ':hammersplat' . ''; + + $b['texts'][] = ':lasergun'; + $b['icons'][] = '' . ':lasergun' . ''; + + $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'][] = ':viking'; + $b['icons'][] = '' . ':viking' . ''; + + $b['texts'][] = ':gangs'; + $b['icons'][] = '' . ':gangs' . ''; + + $b['texts'][] = ':acid'; + $b['icons'][] = '' . ':acid' . ''; + +#Fantasy smileys - monsters and dragons fantasy. The other type of fantasy belongs in adult smileys + + $b['texts'][] = ':alienmonster'; + $b['icons'][] = '' . ':alienmonster' . ''; + + $b['texts'][] = ':barbarian'; + $b['icons'][] = '' . ':barbarian' . ''; + + $b['texts'][] = ':dinosaur'; + $b['icons'][] = '' . ':dinosaur' . ''; + + $b['texts'][] = ':dragon'; + $b['icons'][] = '' . ':dragon' . ''; + + $b['texts'][] = ':draco'; + $b['icons'][] = '' . ':draco' . ''; + + $b['texts'][] = ':ghost'; + $b['icons'][] = '' . ':ghost' . ''; + + $b['texts'][] = ':mummy'; + $b['icons'][] = '' . ':mummy' . ''; + +#Food smileys + + $b['texts'][] = ':apple'; + $b['icons'][] = '' . ':apple' . ''; + + $b['texts'][] = ':broccoli'; + $b['icons'][] = '' . ':brocolli' . ''; + + $b['texts'][] = ':cake'; + $b['icons'][] = '' . ':cake' . ''; + + $b['texts'][] = ':carrot'; + $b['icons'][] = '' . ':carrot' . ''; + + $b['texts'][] = ':popcorn'; + $b['icons'][] = '' . ':popcorn' . ''; + + $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' . ''; + + $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'][] = ':dj'; + $b['icons'][] = '' . ':dj' . ''; + + $b['texts'][] = ':drums'; + $b['icons'][] = '' . ':drums' . ''; + + $b['texts'][] = ':elvis'; + $b['icons'][] = '' . ':elivs' . ''; + + $b['texts'][] = ':guitar'; + $b['icons'][] = '' . ':guitar' . ''; + + $b['texts'][] = ':trumpet'; + $b['icons'][] = '' . ':trumpet' . ''; + + $b['texts'][] = ':violin'; + $b['icons'][] = '' . ':violin' . ''; + +#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' . ''; + + + + }