X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=smiley_pack%2Fsmiley_pack.php;h=258ade767495fd5fea97e6b747a203da4ef8da10;hb=c43a3773c8337c4efbfa5f963f4cf888029055f3;hp=ed4d0e651405e8d56d57f8794779c61f7b8628dd;hpb=6e280e71433431b3ff297f8be2c2ee05f1cfba7f;p=friendica-addons.git diff --git a/smiley_pack/smiley_pack.php b/smiley_pack/smiley_pack.php index ed4d0e65..258ade76 100644 --- a/smiley_pack/smiley_pack.php +++ b/smiley_pack/smiley_pack.php @@ -2,13 +2,15 @@ /* * 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'); } @@ -51,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' . ''; @@ -142,9 +141,6 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':affro'; $b['icons'][] = '' . ':affro' . ''; - $b['texts'][] = ':cool'; - $b['icons'][] = '' . ':cool' . ''; - #Devil/Angel Smileys $b['texts'][] = ':angel'; @@ -182,9 +178,6 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':fartinbed'; $b['icons'][] = '' . ':fartinbed' . ''; - $b['texts'][] = ':vomit'; - $b['icons'][] = '' . ':vomit' . ''; - $b['texts'][] = ':fartblush'; $b['icons'][] = '' . ':fartblush' . ''; @@ -204,6 +197,9 @@ function smiley_pack_smilies(&$a,&$b) { $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'; @@ -226,9 +222,6 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':fencing'; $b['icons'][] = '' . ':fencing' . ''; - $b['texts'][] = ':golf'; - $b['icons'][] = '' . ':golf' . ''; - $b['texts'][] = ':juggling'; $b['icons'][] = '' . ':juggling' . ''; @@ -238,18 +231,12 @@ function smiley_pack_smilies(&$a,&$b) { $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' . ''; @@ -328,21 +315,6 @@ 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'][] = ':viking'; - $b['icons'][] = '' . ':viking' . ''; - - $b['texts'][] = ':gangs'; - $b['icons'][] = '' . ':gangs' . ''; - $b['texts'][] = ':acid'; $b['icons'][] = '' . ':acid' . ''; @@ -433,14 +405,9 @@ function smiley_pack_smilies(&$a,&$b) { #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' . ''; @@ -448,9 +415,6 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':trumpet'; $b['icons'][] = '' . ':trumpet' . ''; - $b['texts'][] = ':violin'; - $b['icons'][] = '' . ':violin' . ''; - #Smileys that used to be in core $b['texts'][] = ':headbang'; @@ -472,7 +436,7 @@ function smiley_pack_smilies(&$a,&$b) { $b['icons'][] = '' . ':\\ooo/' . ''; $b['texts'][] = ':headdesk'; - $b['icons'][] = '' . ':headdesk' . ''; + $b['icons'][] = '' . ':headdesk' . ''; #These two are still in core, so oldcore isn't strictly right, but we don't want too many directories @@ -482,7 +446,50 @@ function smiley_pack_smilies(&$a,&$b) { $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' . ''; }