diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-11-10 07:36:51 +0100 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-11-10 07:36:51 +0100 |
commit | b782c46e518afd0713f92fabb76aea9a7c3e5d77 (patch) | |
tree | c28dc5d4f45988a01c56876d1ae41d92a73d6191 /doc/hook/smilie.bb | |
parent | eaa47760bc7bb024b4c41bd41be62fd16f1237ec (diff) | |
parent | 7ec687988746e1037d86d25186c2dd5f2addb15b (diff) | |
download | volse-hubzilla-b782c46e518afd0713f92fabb76aea9a7c3e5d77.tar.gz volse-hubzilla-b782c46e518afd0713f92fabb76aea9a7c3e5d77.tar.bz2 volse-hubzilla-b782c46e518afd0713f92fabb76aea9a7c3e5d77.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'doc/hook/smilie.bb')
-rw-r--r-- | doc/hook/smilie.bb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/hook/smilie.bb b/doc/hook/smilie.bb index cea3e0c94..575acc178 100644 --- a/doc/hook/smilie.bb +++ b/doc/hook/smilie.bb @@ -1 +1,19 @@ [h2]smilie[/h2] + + +Called when processing translation of emoticons. It is passed an array containing two sub-arrays: + + array( + 'texts' => array('text1','text2',...), + 'icons' => array('icon1','icon2',...) + ); + + texts is the emoticon text - for example ':-)' for a traditional smile face. + icons is the HTML used as a replacement. For example + '<img class="smiley" src="https://localhost/images/smiley-smile.gif" alt=":-)" />' + + If adding or removing an entry from either array, the corresponding element from the matching array must also + be added or removed. Emoticons less than three characters in length or not recommended as they get triggered + incorrectly quite often. Extended emoticons are indicated by convention using a preceding colon, for example + + :walrus_kissing_a_baby
\ No newline at end of file |