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'][] = '
';
- $b['texts'][] = ':chick';
- $b['icons'][] = '
';
-
$b['texts'][] = ':cow';
$b['icons'][] = '
';
@@ -142,9 +141,6 @@ function smiley_pack_smilies(&$a,&$b) {
$b['texts'][] = ':affro';
$b['icons'][] = '
';
- $b['texts'][] = ':cool';
- $b['icons'][] = '
';
-
#Devil/Angel Smileys
$b['texts'][] = ':angel';
@@ -182,9 +178,6 @@ function smiley_pack_smilies(&$a,&$b) {
$b['texts'][] = ':fartinbed';
$b['icons'][] = '
';
- $b['texts'][] = ':vomit';
- $b['icons'][] = '
';
-
$b['texts'][] = ':fartblush';
$b['icons'][] = '
';
@@ -204,6 +197,9 @@ function smiley_pack_smilies(&$a,&$b) {
$b['texts'][] = ':prisoner';
$b['icons'][] = '
';
+ $b['texts'][] = ':sigh';
+ $b['icons'][] = '
';
+
#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'][] = '
';
- $b['texts'][] = ':golf';
- $b['icons'][] = '
';
-
$b['texts'][] = ':juggling';
$b['icons'][] = '
';
@@ -238,18 +231,12 @@ function smiley_pack_smilies(&$a,&$b) {
$b['texts'][] = ':archery';
$b['icons'][] = '
';
- $b['texts'][] = ':football';
- $b['icons'][] = '
';
-
$b['texts'][] = ':surfing';
$b['icons'][] = '
';
$b['texts'][] = ':snooker';
$b['icons'][] = '
';
- $b['texts'][] = ':tennis';
- $b['icons'][] = '
';
-
$b['texts'][] = ':horseriding';
$b['icons'][] = '
';
@@ -328,21 +315,6 @@ function smiley_pack_smilies(&$a,&$b) {
$b['texts'][] = ':machinegun';
$b['icons'][] = '
';
- $b['texts'][] = ':marine';
- $b['icons'][] = '
';
-
- $b['texts'][] = ':sabre';
- $b['icons'][] = '
';
-
- $b['texts'][] = ':tank';
- $b['icons'][] = '
';
-
- $b['texts'][] = ':viking';
- $b['icons'][] = '
';
-
- $b['texts'][] = ':gangs';
- $b['icons'][] = '
';
-
$b['texts'][] = ':acid';
$b['icons'][] = '
';
@@ -433,14 +405,9 @@ function smiley_pack_smilies(&$a,&$b) {
#Music smileys
- $b['texts'][] = ':dj';
- $b['icons'][] = '
';
-
$b['texts'][] = ':drums';
$b['icons'][] = '
';
- $b['texts'][] = ':elvis';
- $b['icons'][] = '
';
$b['texts'][] = ':guitar';
$b['icons'][] = '
';
@@ -448,9 +415,6 @@ function smiley_pack_smilies(&$a,&$b) {
$b['texts'][] = ':trumpet';
$b['icons'][] = '
';
- $b['texts'][] = ':violin';
- $b['icons'][] = '
';
-
#Smileys that used to be in core
$b['texts'][] = ':headbang';
@@ -472,7 +436,7 @@ function smiley_pack_smilies(&$a,&$b) {
$b['icons'][] = '
';
$b['texts'][] = ':headdesk';
- $b['icons'][] = '
';
+ $b['icons'][] = '
';
#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'][] = '
';
+# 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'][] = '
';
+ $b['texts'][] = ':vomit';
+ $b['icons'][] = '
';
+ $b['texts'][] = ':golf';
+ $b['icons'][] = '
';
+
+ $b['texts'][] = ':football';
+ $b['icons'][] = '
';
+
+ $b['texts'][] = ':tennis';
+ $b['icons'][] = '
';
+
+ $b['texts'][] = ':alpha';
+ $b['icons'][] = '
';
+
+ $b['texts'][] = ':marine';
+ $b['icons'][] = '
';
+
+ $b['texts'][] = ':sabre';
+ $b['icons'][] = '
';
+
+ $b['texts'][] = ':tank';
+ $b['icons'][] = '
';
+
+ $b['texts'][] = ':viking';
+ $b['icons'][] = '
';
+
+ $b['texts'][] = ':gangs';
+ $b['icons'][] = '
';
+
+
+ $b['texts'][] = ':dj';
+ $b['icons'][] = '
';
+
+
+ $b['texts'][] = ':elvis';
+ $b['icons'][] = '
';
+
+ $b['texts'][] = ':violin';
+ $b['icons'][] = '
';
}