Categories
Wordpress

WordPress 表情符号 测试

edwin-wang.com

难道 WordPress 表情符号一定要安装插件吗???哈哈非也 😀 我们来看看2.8的 /wp-includes/functions.php 中的定义:

if ( !isset( $wpsmiliestrans ) ) {
  $wpsmiliestrans = array(
  ':mrgreen:' => 'icon_mrgreen.gif',
  ':neutral:' => 'icon_neutral.gif',
  ':twisted:' => 'icon_twisted.gif',
    ':arrow:' => 'icon_arrow.gif',
    ':shock:' => 'icon_eek.gif',
    ':smile:' => 'icon_smile.gif',
      ':???:' => 'icon_confused.gif',
     ':cool:' => 'icon_cool.gif',
     ':evil:' => 'icon_evil.gif',
     ':grin:' => 'icon_biggrin.gif',
     ':idea:' => 'icon_idea.gif',
     ':oops:' => 'icon_redface.gif',
     ':razz:' => 'icon_razz.gif',
     ':roll:' => 'icon_rolleyes.gif',
     ':wink:' => 'icon_wink.gif',
      ':cry:' => 'icon_cry.gif',
      ':eek:' => 'icon_surprised.gif',
      ':lol:' => 'icon_lol.gif',
      ':mad:' => 'icon_mad.gif',
      ':sad:' => 'icon_sad.gif',
        '8-)' => 'icon_cool.gif',
        '8-O' => 'icon_eek.gif',
        ':-(' => 'icon_sad.gif',
        ':-)' => 'icon_smile.gif',
        ':-?' => 'icon_confused.gif',
        ':-D' => 'icon_biggrin.gif',
        ':-P' => 'icon_razz.gif',
        ':-o' => 'icon_surprised.gif',
        ':-x' => 'icon_mad.gif',
        ':-|' => 'icon_neutral.gif',
        ';-)' => 'icon_wink.gif',
         '8)' => 'icon_cool.gif',
         '8O' => 'icon_eek.gif',
         ':(' => 'icon_sad.gif',
         ':)' => 'icon_smile.gif',
         ':?' => 'icon_confused.gif',
         ':D' => 'icon_biggrin.gif',
         ':P' => 'icon_razz.gif',
         ':o' => 'icon_surprised.gif',
         ':x' => 'icon_mad.gif',
         ':|' => 'icon_neutral.gif',
         ';)' => 'icon_wink.gif',
        ':!:' => 'icon_exclaim.gif',
        ':?:' => 'icon_question.gif',
  );
}

图片全在/wp-includes/images/smiles 下边,大家也可以尝试着修改成自己喜欢的笑脸。 全局的噢,okay,这样子,大家可以在正文和回复中照常使用啦,注意噢,回复也可以的啦~ 😮 注意噢,在文本和表情间加个空格噢~

:-) Smile 笑脸 Shortcut: ‘:smile:’ , ‘:-)’ , ‘:)’
:-D Biggrin 咧嘴笑 Shortcut: ‘:grin:’ , ‘:-D’ , ‘:D’
:-( Sad 忧伤 Shortcut: ‘:sad:’ , ‘:-(’ , ‘:(’
:-o Surprised 吃惊 Shortcut: ‘:eek:’ , ‘:-o’ , ‘:o’
8-O eek 惊讶 Shortcut: ‘:shock:’ , ‘8-O’ , ‘8O’
:-? Confused 困惑 Shortcut: ‘:???:’ , ‘:-?’ , ‘:?’
8-) Cool 耍酷 Shortcut: ‘:cool:’ , ‘8-)’ , ‘8)’
:lol: LOL 大笑 Shortcut: ‘:lol:’
:-x Mad 抓狂 Shortcut: ‘:mad:’ , ‘:-x’ , ‘:x’
:-P Razz 冷笑 Shortcut: ‘:razz:’ , ‘:-P’ , ‘:P’
:oops: Red Face 红脸 Shortcut: ‘:oops:’
:cry: Cry 哭泣 Shortcut: ‘:cry:’
:evil: Evil 恶魔 Shortcut: ‘:evil:’
:twisted: Twisted 痛苦 Shortcut: ‘:twisted:’
:roll: Roll Eyes 转眼珠 Shortcut: ‘:roll:’
;-) Wink 眨眼 Shortcut: ‘:wink:’ , ‘;-)’ , ‘;)’
:!: Exclaim 感叹 Shortcut: ‘:!:’
:?: Question 疑问 Shortcut: ‘:?:’
:idea: Idea 好主意 Shortcut: ‘:idea:’
:arrow: Arrow 右箭头 Shortcut: ‘:arrow:’
:-| Neutral 自然的表情 Shortcut: ‘:neutral:’ , ‘:-|’ , ‘:|’
:mrgreen: Mr Green 绿脸先生 Shortcut: ‘:mrgreen:’