Emoticon
Emoticon using icon fonts.
Something looks broken? We accept bounties to fix them faster.
^ | 49 Downloads |
---|---|
v2.3.2 | 98 Downloads |
v2.3.1 | 44 Downloads |

This extension replaces every emoticon and smiley patterns (which you can also set it yourself) into a graphical emoticon icons. Icon font credit to Icomoon.
Open .\lot\x\emoticon\state.php
file to configure:
return [
'type' => 1, // Can be `0` or `1`
// Determine character(s) to be recognized as emoticon(s)
// Order does matter!
'alter' => [
'angry' => '>:( >:( ๐ ', // Must come before `:(`
'baffle' => 'o_o O_o o_O ๐ฏ',
'confuse' => ':s :S ๐',
'cool' => 'B) ๐',
'cry' => ':\'( T_T ๐ข ๐ญ',
'evil' => '>:) >:) ๐', // Must come before `:)`
'frustrate' => '>:O >:O ๐ซ',
'grin' => ':)) ๐', // Must come before `:)`
'happy' => ':D =D ๐',
'hipster' => ':3',
'neutral' => ':| ๐',
'sad' => ':( ๐ ๐ โน',
'sleepy' => ':OzZ ๐ช', // Must come before `:O`
'shock' => ':O ๐ฒ ๐จ',
'smile' => ':) ๐ โบ',
'tongue' => ':p :P ๐ ๐ ๐ ๐',
'wink' => ';) ๐',
'wonder' => ':\ :/ ๐ค'
]
];
Any pattern defined in the array value, plus a :key:
syntax, will be replaced with <span class="emoticon:key"></span>
element. Any pattern found in the HTML opening tag (as a tag name, attribute name or value) will be ignored. Any pattern found in the HTML contents of <code>
, <kbd>
, <pre>
, <script>
, <style>
and <textarea>
will also be ignored.
You might also like: