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` for hollow icon or `1` for solid icon
// 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:
0 Comments
No comments yet.