]> git.mxchange.org Git - friendica-addons.git/commitdiff
adult_smile addon
authorfriendica <info@friendica.com>
Tue, 13 Mar 2012 09:01:24 +0000 (02:01 -0700)
committerfriendica <info@friendica.com>
Tue, 13 Mar 2012 09:01:24 +0000 (02:01 -0700)
adult_smile.tgz [new file with mode: 0644]
adult_smile/adult_smile.php [new file with mode: 0644]
adult_smile/icons/bong.gif [new file with mode: 0644]
adult_smile/icons/tits.gif [new file with mode: 0644]

diff --git a/adult_smile.tgz b/adult_smile.tgz
new file mode 100644 (file)
index 0000000..59d7437
Binary files /dev/null and b/adult_smile.tgz differ
diff --git a/adult_smile/adult_smile.php b/adult_smile/adult_smile.php
new file mode 100644 (file)
index 0000000..4657414
--- /dev/null
@@ -0,0 +1,34 @@
+<?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.
+ * 
+ */
+
+function adult_smile_install() {
+       register_hook('smilie', 'addon/adult_smile/adult_smile.php', 'adult_smile_smilies');
+}
+
+function adult_smile_uninstall() {
+       unregister_hook('smilie', 'addon/adult_smile/adult_smile.php', 'adult_smile_smilies');
+}
+
+
+function adult_smile_smilies(&$a,&$b) {
+
+       $b['texts'][] = '(o)(o)';
+       $b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/adult_smile/icons/tits.gif' . '" alt="' . '(o)(o)' . '" />';
+
+       $b['texts'][] = '(.)(.)';
+       $b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/adult_smile/icons/tits.gif' . '" alt="' . '(.)(.)' . '" />';
+
+       $b['texts'][] = ':bong';
+       $b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/adult_smile/icons/bong.gif' . '" alt="' . ':bong' . '" />';
+
+
+}
\ No newline at end of file
diff --git a/adult_smile/icons/bong.gif b/adult_smile/icons/bong.gif
new file mode 100644 (file)
index 0000000..4b67122
Binary files /dev/null and b/adult_smile/icons/bong.gif differ
diff --git a/adult_smile/icons/tits.gif b/adult_smile/icons/tits.gif
new file mode 100644 (file)
index 0000000..4c1658c
Binary files /dev/null and b/adult_smile/icons/tits.gif differ