为你的WordPress主题添加表情功能

发布于 / 技术教程

WordPress表情

前言

每次在评论回复的时候都想着要是有表情那该多好啊,偶然一次看见@Shawn的主题做了OwO表情,本着不耻下问的精神问了博主怎么做到的,耐心的Shawn告诉了我OwO表情的作者源码地址以及@兰陵对OwO二改的文章,在此我要感谢Shawn以及开发出OwO的作者!其实网上添加表情的教程有很多,但是!!!这个OwO表情里包含了我喜欢的滑稽等表情。下面来几张表情预览。

###预览图:

开始

下载所需资源

好了,废话不多说,下面就开始教程!因为博主使用的是路易的Inspire主题,所以该教程暂时只适用于同意使用该主题的同志们。

下载一份OwO源码,好了这个无视,因为我用的也不是源码,下载一份兰陵二改版源码(这里我给大家下载好了,见文章底部)。alu、paopao是表情的图片文件夹,OwO.min.css是表情按钮用到的样式,同理.js是表情用到的脚本。OwO.min.json是表情使用到的本地源,因为调用的是本地的资源不是使用的接口,下面我们需要修改json文件中的内容。

引用css文件

下载好了css与js文件,下面我们需要把它们正确引用。如下面代码所示,并不需要跟我一样,只要能正确引用都可以的啦。

wp_enqueue_style( 'owo', THEME_URL . '/assets/css/OwO.min.css', array(), THEME_VERSION, 'all' );

宏定义表情图片,json文件地址

//定义OwO json,图片地址
define( 'OwO_API', get_bloginfo('template_directory').'/OwO/OwO.min.json' );
define( 'OwO_alu', get_bloginfo('template_directory').'/OwO/alu' );
define( 'OwO_paopao', get_bloginfo('template_directory').'/OwO/paopao' );

在comment.php文件中引用js文件与定义OwO表情按钮


<div class="comment-textarea error">
		<textarea class="OwO-textarea" id="comment" name="comment" cols="45" rows="1" maxlength="65525" aria-required="true" required="required" tabindex="4" placeholder="<?php hitokoto(); ?>"></textarea>
		<div class="OwO"></div>
		<script type='text/javascript' src='<?php echo THEME_URL.'/assets/js/OwO.min.js' ?>'></script>
		<script>var s = new OwO({
			logo: 'OωO表情',
			container: document.getElementsByClassName('OwO')[0],  //获取表情标签
			target: document.getElementsByClassName('OwO-textarea')[0], //获取评论输入区
			position: 'down',
			width: '100%',
			maxHeight: '210px',
			api:"<?php echo OwO_API?>"
		});
		</script>	
</div><!-- .comment-textarea -->

注意上述代码的意思是,找到评论输入框然后再下面定义一个OwO表情的按钮,其中target获取到的类名必须跟评论输入框的类名一致,不然获取不到节点。api因为是使用的本地json文件,所以使用php脚本直接打印出之前宏定义的json路径。需要注意的是,在自定义js脚本的上面我们需要引用OwO.min.js文件

添加comment_add_owo()函数

好了,做到这里你以为就可以了吗,下面我们还需要使用上之前宏定义的图片。


function comment_add_owo($comment_text) {
    $data_OwO = array(
        '@(暗地观察)' => '<img src="'.OwO_alu.'/暗地观察.png" alt="暗地观察" style="vertical-align: middle;">',
        '@(便便)' => '<img src="'.OwO_alu.'/便便.png" alt="便便" style="vertical-align: middle;">',
        '@(不出所料)' => '<img src="'.OwO_alu.'/不出所料.png" alt="不出所料" style="vertical-align: middle;">',
        '@(不高兴)' => '<img src="'.OwO_alu.'/不高兴.png" alt="不高兴" style="vertical-align: middle;">',
        '@(不说话)' => '<img src="'.OwO_alu.'/不说话.png" alt="不说话" style="vertical-align: middle;">',
        '@(抽烟)' => '<img src="'.OwO_alu.'/抽烟.png" alt="抽烟" style="vertical-align: middle;">',
        '@(呲牙)' => '<img src="'.OwO_alu.'/呲牙.png" alt="呲牙" style="vertical-align: middle;">',
        '@(大囧)' => '<img src="'.OwO_alu.'/大囧.png" alt="大囧" style="vertical-align: middle;">',
        '@(得意)' => '<img src="'.OwO_alu.'/alu/得意.png" alt="得意" style="vertical-align: middle;">',
        '@(愤怒)' => '<img src="'.OwO_alu.'/愤怒.png" alt="愤怒" style="vertical-align: middle;">',
        '@(尴尬)' => '<img src="'.OwO_alu.'/尴尬.png" alt="尴尬" style="vertical-align: middle;">',
        '@(高兴)' => '<img src="'.OwO_alu.'/高兴.png" alt="高兴" style="vertical-align: middle;">',
        '@(鼓掌)' => '<img src="'.OwO_alu.'/鼓掌.png" alt="鼓掌" style="vertical-align: middle;">',
        '@(观察)' => '<img src="'.OwO_alu.'/观察.png" alt="观察" style="vertical-align: middle;">',
        '@(害羞)' => '<img src="'.OwO_alu.'/害羞.png" alt="害羞" style="vertical-align: middle;">',
        '@(汗)' => '  <img src="'.OwO_alu.'/汗.png" alt="汗" style="vertical-align: middle;">',
        '@(黑线)' => '<img src="'.OwO_alu.'/黑线.png" alt="黑线" style="vertical-align: middle;">',
        '@(欢呼)' => '<img src="'.OwO_alu.'/欢呼.png" alt="欢呼" style="vertical-align: middle;">',
        '@(击掌)' => '<img src="'.OwO_alu.'/击掌.png" alt="击掌" style="vertical-align: middle;">',
        '@(惊喜)' => '<img src="'.OwO_alu.'/惊喜.png" alt="惊喜" style="vertical-align: middle;">',
        '@(看不见)' => '<img src="'.OwO_alu.'/看不见.png" alt="看不见" style="vertical-align: middle;">',
        '@(看热闹)' => '<img src="'.OwO_alu.'/看热闹.png" alt="看热闹" style="vertical-align: middle;">',
        '@(抠鼻)' => '<img src="'.OwO_alu.'/抠鼻.png" alt="抠鼻" style="vertical-align: middle;">',
        '@(口水)' => '<img src="'.OwO_alu.'/口水.png" alt="口水" style="vertical-align: middle;">',
        '@(哭泣)' => '<img src="'.OwO_alu.'/哭泣.png" alt="哭泣" style="vertical-align: middle;">',
        '@(狂汗)' => '<img src="'.OwO_alu.'/狂汗.png" alt="狂汗" style="vertical-align: middle;">',
        '@(蜡烛)' => '<img src="'.OwO_alu.'/蜡烛.png" alt="蜡烛" style="vertical-align: middle;">',
        '@(脸红)' => '<img src="'.OwO_alu.'/脸红.png" alt="脸红" style="vertical-align: middle;">',
        '@(内伤)' => '<img src="'.OwO_alu.'/内伤.png" alt="内伤" style="vertical-align: middle;">',
        '@(喷水)' => '<img src="'.OwO_alu.'/喷水.png" alt="喷水" style="vertical-align: middle;">',
        '@(喷血)' => '<img src="'.OwO_alu.'/喷血.png" alt="喷血" style="vertical-align: middle;">',
        '@(期待)' => '<img src="'.OwO_alu.'/期待.png" alt="期待" style="vertical-align: middle;">',
        '@(亲亲)' => '<img src="'.OwO_alu.'/亲亲.png" alt="亲亲" style="vertical-align: middle;">',
        '@(傻笑)' => '<img src="'.OwO_alu.'/傻笑.png" alt="傻笑" style="vertical-align: middle;">',
        '@(扇耳光)' => '<img src="'.OwO_alu.'/扇耳光.png" alt="扇耳光" style="vertical-align: middle;">',
        '@(深思)' => '<img src="'.OwO_alu.'/深思.png" alt="深思" style="vertical-align: middle;">',
        '@(锁眉)' => '<img src="'.OwO_alu.'/锁眉.png" alt="锁眉" style="vertical-align: middle;">',
        '@(投降)' => '<img src="'.OwO_alu.'/投降.png" alt="投降" style="vertical-align: middle;">',
        '@(吐)' => '<img src="'.OwO_alu.'/吐.png" alt="吐" style="vertical-align: middle;">',
        '@(吐舌)' => '<img src="'.OwO_alu.'/吐舌.png" alt="吐舌" style="vertical-align: middle;">',
        '@(吐血倒地)' => '<img src="'.OwO_alu.'/吐血倒地.png" alt="吐血倒地" style="vertical-align: middle;">',
        '@(无奈)' => '<img src="'.OwO_alu.'/无奈.png" alt="无奈" style="vertical-align: middle;">',
        '@(无所谓)' => '<img src="'.OwO_alu.'/无所谓.png" alt="无所谓" style="vertical-align: middle;">',
        '@(无语)' => '<img src="'.OwO_alu.'/无语.png" alt="无语" style="vertical-align: middle;">',
        '@(喜极而泣)' => '<img src="'.OwO_alu.'/喜极而泣.png" alt="喜极而泣" style="vertical-align: middle;">',
        '@(献花)' => '<img src="'.OwO_alu.'/献花.png" alt="献花" style="vertical-align: middle;">',
        '@(献黄瓜)' => '<img src="'.OwO_alu.'/献黄瓜.png" alt="献黄瓜" style="vertical-align: middle;">',
        '@(想一想)' => '<img src="'.OwO_alu.'/想一想.png" alt="想一想" style="vertical-align: middle;">',
        '@(小怒)' => '<img src="'.OwO_alu.'/小怒.png" alt="小怒" style="vertical-align: middle;">',
        '@(小眼睛)' => '<img src="'.OwO_alu.'/小眼睛.png" alt="小眼睛" style="vertical-align: middle;">',
        '@(邪恶)' => '<img src="'.OwO_alu.'/邪恶.png" alt="邪恶" style="vertical-align: middle;">',
        '@(咽气)' => '<img src="'.OwO_alu.'/咽气.png" alt="咽气" style="vertical-align: middle;">',
        '@(阴暗)' => '<img src="'.OwO_alu.'/阴暗.png" alt="阴暗" style="vertical-align: middle;">',
        '@(赞一个)' => '<img src="'.OwO_alu.'/赞一个.png" alt="赞一个" style="vertical-align: middle;">',
        '@(长草)' => '<img src="'.OwO_alu.'/长草.png" alt="长草" style="vertical-align: middle;">',
        '@(中刀)' => '<img src="'.OwO_alu.'/中刀.png" alt="中刀" style="vertical-align: middle;">',
        '@(中枪)' => '<img src="'.OwO_alu.'/中枪.png" alt="中枪" style="vertical-align: middle;">',
        '@(中指)' => '<img src="'.OwO_alu.'/中指.png" alt="中指" style="vertical-align: middle;">',
        '@(肿包)' => '<img src="'.OwO_alu.'/肿包.png" alt="肿包" style="vertical-align: middle;">',
        '@(皱眉)' => '<img src="'.OwO_alu.'/皱眉.png" alt="皱眉" style="vertical-align: middle;">',
        '@(装大款)' => '<img src="'.OwO_alu.'/装大款.png" alt="装大款" style="vertical-align: middle;">',
        '@(坐等)' => '<img src="'.OwO_alu.'/坐等.png" alt="坐等" style="vertical-align: middle;">',
        '@[啊]' => '<img src="'.OwO_paopao.'/啊.png" alt="啊" style="vertical-align: middle;">',
        '@[爱心]' => '<img src="'.OwO_paopao.'/爱心.png" alt="爱心" style="vertical-align: middle;">',
        '@[鄙视]' => '<img src="'.OwO_paopao.'/鄙视.png" alt="鄙视" style="vertical-align: middle;">',
        '@[便便]' => '<img src="'.OwO_paopao.'/便便.png" alt="便便" style="vertical-align: middle;">',
        '@[不高兴]' => '<img src="'.OwO_paopao.'/不高兴.png" alt="不高兴" style="vertical-align: middle;">',
        '@[彩虹]' => '<img src="'.OwO_paopao.'/彩虹.png" alt="彩虹" style="vertical-align: middle;">',
        '@[茶杯]' => '<img src="'.OwO_paopao.'/茶杯.png" alt="茶杯" style="vertical-align: middle;">',
        '@[吃瓜]' => '<img src="'.OwO_paopao.'/吃瓜.png" alt="吃瓜" style="vertical-align: middle;">',
        '@[吃翔]' => '<img src="'.OwO_paopao.'/吃翔.png" alt="吃翔" style="vertical-align: middle;">',
        '@[大拇指]' => '<img src="'.OwO_paopao.'/大拇指.png" alt="大拇指" style="vertical-align: middle;">',
        '@[蛋糕]' => '<img src="'.OwO_paopao.'/蛋糕.png" alt="蛋糕" style="vertical-align: middle;">',
        '@[嘚瑟]' => '<img src="'.OwO_paopao.'/嘚瑟.png" alt="嘚瑟" style="vertical-align: middle;">',
        '@[灯泡]' => '<img src="'.OwO_paopao.'/灯泡.png" alt="灯泡" style="vertical-align: middle;">',
        '@[乖]' => '<img src="'.OwO_paopao.'/乖.png" alt="乖" style="vertical-align: middle;">',
        '@[哈哈]' => '<img src="'.OwO_paopao.'/哈哈.png" alt="哈哈" style="vertical-align: middle;">',
        '@[汗]' => '<img src="'.OwO_paopao.'/汗.png" alt="汗" style="vertical-align: middle;">',
        '@[呵呵]' => '<img src="'.OwO_paopao.'/呵呵.png" alt="呵呵" style="vertical-align: middle;">',
        '@[黑线]' => '<img src="'.OwO_paopao.'/黑线.png" alt="黑线" style="vertical-align: middle;">',
        '@[红领巾]' => '<img src="'.OwO_paopao.'/红领巾.png" alt="红领巾" style="vertical-align: middle;">',
        '@[呼]' => '<img src="'.OwO_paopao.'/呼.png" alt="呼" style="vertical-align: middle;">',
        '@[花心]' => '<img src="'.OwO_paopao.'/花心.png" alt="花心" style="vertical-align: middle;">',
        '@[滑稽]' => '<img src="'.OwO_paopao.'/滑稽.png" alt="滑稽" style="vertical-align: middle;">',
        '@[惊恐]' => '<img src="'.OwO_paopao.'/惊恐.png" alt="惊恐" style="vertical-align: middle;">',
        '@[惊哭]' => '<img src="'.OwO_paopao.'/惊哭.png" alt="惊哭" style="vertical-align: middle;">',
        '@[惊讶]' => '<img src="'.OwO_paopao.'/惊讶.png" alt="惊讶" style="vertical-align: middle;">',
        '@[开心]' => '<img src="'.OwO_paopao.'/开心.png" alt="开心" style="vertical-align: middle;">',
        '@[酷]' => '<img src="'.OwO_paopao.'/酷.png" alt="酷" style="vertical-align: middle;">',
        '@[狂汗]' => '<img src="'.OwO_paopao.'/狂汗.png" alt="狂汗" style="vertical-align: middle;">',
        '@[蜡烛]' => '<img src="'.OwO_paopao.'/蜡烛.png" alt="蜡烛" style="vertical-align: middle;">',
        '@[懒得理]' => '<img src="'.OwO_paopao.'/懒得理.png" alt="懒得理" style="vertical-align: middle;">',
        '@[泪]' => '<img src="'.OwO_paopao.'/泪.png" alt="泪" style="vertical-align: middle;">',
        '@[冷]' => '<img src="'.OwO_paopao.'/冷.png" alt="冷" style="vertical-align: middle;">',
        '@[礼物]' => '<img src="'.OwO_paopao.'/礼物.png" alt="礼物" style="vertical-align: middle;">',
        '@[玫瑰]' => '<img src="'.OwO_paopao.'/玫瑰.png" alt="玫瑰" style="vertical-align: middle;">',
        '@[勉强]' => '<img src="'.OwO_paopao.'/勉强.png" alt="勉强" style="vertical-align: middle;">',
        '@[你懂的]' => '<img src="'.OwO_paopao.'/你懂的.png" alt="你懂的" style="vertical-align: middle;">',
        '@[怒]' => '<img src="'.OwO_paopao.'/怒.png" alt="怒" style="vertical-align: middle;">',
        '@[喷]' => '<img src="'.OwO_paopao.'/喷.png" alt="喷" style="vertical-align: middle;">',
        '@[钱]' => '<img src="'.OwO_paopao.'/钱.png" alt="钱" style="vertical-align: middle;">',
        '@[钱币]' => '<img src="'.OwO_paopao.'/钱币.png" alt="钱币" style="vertical-align: middle;">',
        '@[弱]' => '<img src="'.OwO_paopao.'/弱.png" alt="弱" style="vertical-align: middle;">',
        '@[三道杠]' => '<img src="'.OwO_paopao.'/三道杠.png" alt="三道杠" style="vertical-align: middle;">',
        '@[沙发]' => '<img src="'.OwO_paopao.'/沙发.png" alt="沙发" style="vertical-align: middle;">',
        '@[生气]' => '<img src="'.OwO_paopao.'/生气.png" alt="生气" style="vertical-align: middle;">',
        '@[胜利]' => '<img src="'.OwO_paopao.'/胜利.png" alt="胜利" style="vertical-align: middle;">',
        '@[手纸]' => '<img src="'.OwO_paopao.'/手纸.png" alt="手纸" style="vertical-align: middle;">',
        '@[睡觉]' => '<img src="'.OwO_paopao.'/睡觉.png" alt="睡觉" style="vertical-align: middle;">',
        '@[酸爽]' => '<img src="'.OwO_paopao.'/酸爽.png" alt="酸爽" style="vertical-align: middle;">',
        '@[太开心]' => '<img src="'.OwO_paopao.'/太开心.png" alt="太开心" style="vertical-align: middle;">',
        '@[太阳]' => '<img src="'.OwO_paopao.'/太阳.png" alt="太阳" style="vertical-align: middle;">',
        '@[吐]' => '<img src="'.OwO_paopao.'/吐.png" alt="吐" style="vertical-align: middle;">',
        '@[吐舌]' => '<img src="'.OwO_paopao.'/吐舌.png" alt="吐舌" style="vertical-align: middle;">',
        '@[挖鼻]' => '<img src="'.OwO_paopao.'/挖鼻.png" alt="挖鼻" style="vertical-align: middle;">',
        '@[委屈]' => '<img src="'.OwO_paopao.'/委屈.png" alt="委屈" style="vertical-align: middle;">',
        '@[捂嘴笑]' => '<img src="'.OwO_paopao.'/捂嘴笑.png" alt="捂嘴笑" style="vertical-align: middle;">',
        '@[犀利]' => '<img src="'.OwO_paopao.'/犀利.png" alt="犀利" style="vertical-align: middle;">',
        '@[香蕉]' => '<img src="'.OwO_paopao.'/香蕉.png" alt="香蕉" style="vertical-align: middle;">',
        '@[小乖]' => '<img src="'.OwO_paopao.'/小乖.png" alt="小乖" style="vertical-align: middle;">',
        '@[小红脸]' => '<img src="'.OwO_paopao.'/小红脸.png" alt="小红脸" style="vertical-align: middle;">',
        '@[笑尿]' => '<img src="'.OwO_paopao.'/笑尿.png" alt="笑尿" style="vertical-align: middle;">',
        '@[笑眼]' => '<img src="'.OwO_paopao.'/笑眼.png" alt="笑眼" style="vertical-align: middle;">',
        '@[心碎]' => '<img src="'.OwO_paopao.'/心碎.png" alt="心碎" style="vertical-align: middle;">',
        '@[星星月亮]' => '<img src="'.OwO_paopao.'/星星月亮.png" alt="星星月亮" style="vertical-align: middle;">',
        '@[呀咩爹]' => '<img src="'.OwO_paopao.'/呀咩爹.png" alt="呀咩爹" style="vertical-align: middle;">',
        '@[药丸]' => '<img src="'.OwO_paopao.'/药丸.png" alt="药丸" style="vertical-align: middle;">',
        '@[咦]' => '<img src="'.OwO_paopao.'/咦.png" alt="咦" style="vertical-align: middle;">',
        '@[疑问]' => '<img src="'.OwO_paopao.'/疑问.png" alt="疑问" style="vertical-align: middle;">',
        '@[阴险]' => '<img src="'.OwO_paopao.'/阴险.png" alt="阴险" style="vertical-align: middle;">',
        '@[音乐]' => '<img src="'.OwO_paopao.'/音乐.png" alt="音乐" style="vertical-align: middle;">',
        '@[真棒]' => '<img src="'.OwO_paopao.'/真棒.png" alt="真棒" style="vertical-align: middle;">',
        '@[nico]' => '<img src="'.OwO_paopao.'/nico.png" alt="nico" style="vertical-align: middle;">',
        '@[OK]' => '<img src="'.OwO_paopao.'/OK.png" alt="OK" style="vertical-align: middle;">',
        '@[what]' => '<img src="'.OwO_paopao.'/what.png" alt="what" style="vertical-align: middle;">'
    );
    return strtr($comment_text,$data_OwO);
}
add_filter( 'comment_text' , 'comment_add_owo', 20, 2);

这里代码有点长是因为需要把每一个图片都加载进来。

修改OwO.min.json文件


{"颜文字": {"type": "emoticon","container": [
{"icon": "OωO","text": "Author: DIYgod"},
{"icon": "|´・ω・)ノ","text": "Hi"},
{"icon": "ヾ(≧∇≦*)ゝ","text": "开心"},
{"icon": "(☆ω☆)","text": "星星眼"},
{"icon": "(╯‵□′)╯︵┴─┴","text": "掀桌"},
{"icon": " ̄﹃ ̄","text": "流口水"},
{"icon": "(*/ω\*)","text": "捂脸"},
{"icon": "∠( ᐛ 」∠)_","text": "给跪"},
{"icon": "(๑•̀ㅁ•́ฅ)","text": "Hi"},
{"icon": "→_→","text": "斜眼"},
{"icon": "୧(๑•̀⌄•́๑)૭","text": "加油"},
{"icon": "٩(ˊᗜˋ*)و","text": "有木有WiFi"},
{"icon": "(ノ°ο°)ノ","text": "前方高能预警"},
{"icon": "(´இ皿இ`)","text": "我从未见过如此厚颜无耻之人"},
{"icon": "⌇●﹏●⌇","text": "吓死宝宝惹"},
{"icon": "(ฅ´ω`ฅ)","text": "已阅留爪"},
{"icon": "(╯°A°)╯︵○○○","text": "去吧大师球"},
{"icon": "φ( ̄∇ ̄o)","text": "太萌惹"},
{"icon": "ヾ(´・ ・`。)ノ\"","text": "咦咦咦"},
{"icon": "( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃","text": "气呼呼"},
{"icon": "(ó﹏ò。)","text": "我受到了惊吓"},
{"icon": "Σ(っ °Д °;)っ","text": "什么鬼"},
{"icon": "( ,,´・ω・)ノ\"(´っω・`。)","text": "摸摸头"},
{"icon": "╮(╯▽╰)╭ ","text": "无奈"},
{"icon": "o(*////▽////*)q ","text": "脸红"},
{"icon": ">﹏<","text": ""},
{"icon": "( ๑´•ω•) \"(ㆆᴗㆆ)","text": ""},
{"icon": "(。•ˇ‸ˇ•。)","text": ""},
{"icon": "(๑•̀ω•́๑)","text": ""},
{"icon": "(๑•́ ₃ •̀๑)","text": ""},
{"icon": "(灬°ω°灬)","text": ""},
{"icon": "(*^ω^*)","text": ""},
{"icon": "✧*。٩(ˊωˋ*)و✧*。","text": ""},
{"icon": "( ̄y▽ ̄)~*捂嘴偷笑","text": ""},
{"icon": "(o`•ω•)ノ(ノД`)","text": ""},
{"icon": "(⌒▽⌒)","text": ""},
{"icon": "( ̄▽ ̄)","text": ""},
{"icon": "(=・ω・=)","text": ""},
{"icon": "(`・ω・´)","text": ""},
{"icon": "(〜 ̄△ ̄)〜","text": ""},
{"icon": "(・∀・)","text": ""},
{"icon": "(°∀°)ノ","text": ""},
{"icon": "( ̄3 ̄)","text": ""},
{"icon": "╮( ̄▽ ̄)╭","text": ""},
{"icon": "( ´_ゝ`)","text": ""},
{"icon": "←_←","text": ""},
{"icon": "→_→","text": ""},
{"icon": "(<_<)","text": ""},
{"icon": "(>_>)","text": ""},
{"icon": "(;¬_¬)","text": ""},
{"icon": "(\"▔□▔)","text": ""},
{"icon": "(゚Д゚≡゚д゚)!?","text": ""},
{"icon": "Σ(゚д゚;)","text": ""},
{"icon": "Σ(  ̄□ ̄||)","text": ""},
{"icon": "(´;ω;`)","text": ""},
{"icon": "(/TДT)/","text": ""},
{"icon": "(^・ω・^ )","text": ""},
{"icon": "(。・ω・。)","text": ""},
{"icon": "(● ̄(エ) ̄●)","text": ""},
{"icon": "ε=ε=(ノ≧∇≦)ノ","text": ""},
{"icon": "(´・_・`)","text": ""},
{"icon": "(-_-#)","text": ""},
{"icon": "( ̄へ ̄)","text": ""},
{"icon": "( ̄ε(# ̄) Σ","text": ""},
{"icon": "ヽ(`Д´)ノ","text": ""},
{"icon": "(╯°口°)╯(┴—┴","text": ""},
{"icon": "(#-_-)┯━┯","text": ""},
{"icon": "_(:3」∠)_","text": ""},
{"icon": "_(•̀ω•́ 」∠)_","text": ""},
{"icon": "─=≡Σ((( つ•̀ω•́)つ","text": ""},
{"icon": "(ಥ_ಥ)","text": ""},
{"icon": "(๑•̀ㅂ•́)و✧","text": ""},
{"icon": "(๑╹∀╹๑)","text": ""},
{"icon": "눈_눈","text": ""},
{"icon": "ᕦ(ò_óˇ)ᕤ","text": ""},
{"icon": "(๑•ั็ω•็ั๑)","text": ""},
{"icon": "( *・ω・)✄╰ひ╯","text": ""},
{"icon": "~( ̄▽ ̄)C❀(捏菊花)","text": ""},
{"icon": "(((┏(; ̄▽ ̄)┛装完逼就跑","text": ""}
]},
"阿鲁": {"type": "image","container": [
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/暗地观察.png\" alt=\"暗地观察\" style=\"vertical-align: middle;\">","text": "暗地观察"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/便便.png\" alt=\"便便\" style=\"vertical-align: middle;\">","text": "便便"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/不出所料.png\" alt=\"不出所料\" style=\"vertical-align: middle;\">","text": "不出所料"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/不高兴.png\" alt=\"不高兴\" style=\"vertical-align: middle;\">","text": "不高兴"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/不说话.png\" alt=\"不说话\" style=\"vertical-align: middle;\">","text": "不说话"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/抽烟.png\" alt=\"抽烟\" style=\"vertical-align: middle;\">","text": "抽烟"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/呲牙.png\" alt=\"呲牙\" style=\"vertical-align: middle;\">","text": "呲牙"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/大囧.png\" alt=\"大囧\" style=\"vertical-align: middle;\">","text": "大囧"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/得意.png\" alt=\"得意\" style=\"vertical-align: middle;\">","text": "得意"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/愤怒.png\" alt=\"愤怒\" style=\"vertical-align: middle;\">","text": "愤怒"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/尴尬.png\" alt=\"尴尬\" style=\"vertical-align: middle;\">","text": "尴尬"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/高兴.png\" alt=\"高兴\" style=\"vertical-align: middle;\">","text": "高兴"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/鼓掌.png\" alt=\"鼓掌\" style=\"vertical-align: middle;\">","text": "鼓掌"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/观察.png\" alt=\"观察\" style=\"vertical-align: middle;\">","text": "观察"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/害羞.png\" alt=\"害羞\" style=\"vertical-align: middle;\">","text": "害羞"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/汗.png\" alt=\"汗\" style=\"vertical-align: middle;\">","text": "汗"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/黑线.png\" alt=\"黑线\" style=\"vertical-align: middle;\">","text": "黑线"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/欢呼.png\" alt=\"欢呼\" style=\"vertical-align: middle;\">","text": "欢呼"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/击掌.png\" alt=\"击掌\" style=\"vertical-align: middle;\">","text": "击掌"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/惊喜.png\" alt=\"惊喜\" style=\"vertical-align: middle;\">","text": "惊喜"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/看不见.png\" alt=\"看不见\" style=\"vertical-align: middle;\">","text": "看不见"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/看热闹.png\" alt=\"看热闹\" style=\"vertical-align: middle;\">","text": "看热闹"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/抠鼻.png\" alt=\"抠鼻\" style=\"vertical-align: middle;\">","text": "抠鼻"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/口水.png\" alt=\"口水\" style=\"vertical-align: middle;\">","text": "口水"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/哭泣.png\" alt=\"哭泣\" style=\"vertical-align: middle;\">","text": "哭泣"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/狂汗.png\" alt=\"狂汗\" style=\"vertical-align: middle;\">","text": "狂汗"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/蜡烛.png\" alt=\"蜡烛\" style=\"vertical-align: middle;\">","text": "蜡烛"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/脸红.png\" alt=\"脸红\" style=\"vertical-align: middle;\">","text": "脸红"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/内伤.png\" alt=\"内伤\" style=\"vertical-align: middle;\">","text": "内伤"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/喷水.png\" alt=\"喷水\" style=\"vertical-align: middle;\">","text": "喷水"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/喷血.png\" alt=\"喷血\" style=\"vertical-align: middle;\">","text": "喷血"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/期待.png\" alt=\"期待\" style=\"vertical-align: middle;\">","text": "期待"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/亲亲.png\" alt=\"亲亲\" style=\"vertical-align: middle;\">","text": "亲亲"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/傻笑.png\" alt=\"傻笑\" style=\"vertical-align: middle;\">","text": "傻笑"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/扇耳光.png\" alt=\"扇耳光\" style=\"vertical-align: middle;\">","text": "扇耳光"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/深思.png\" alt=\"深思\" style=\"vertical-align: middle;\">","text": "深思"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/锁眉.png\" alt=\"锁眉\" style=\"vertical-align: middle;\">","text": "锁眉"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/投降.png\" alt=\"投降\" style=\"vertical-align: middle;\">","text": "投降"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/吐.png\" alt=\"吐\" style=\"vertical-align: middle;\">","text": "吐"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/吐舌.png\" alt=\"吐舌\" style=\"vertical-align: middle;\">","text": "吐舌"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/吐血倒地.png\" alt=\"吐血倒地\" style=\"vertical-align: middle;\">","text": "吐血倒地"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/无奈.png\" alt=\"无奈\" style=\"vertical-align: middle;\">","text": "无奈"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/无所谓.png\" alt=\"无所谓\" style=\"vertical-align: middle;\">","text": "无所谓"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/无语.png\" alt=\"无语\" style=\"vertical-align: middle;\">","text": "无语"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/喜极而泣.png\" alt=\"喜极而泣\" style=\"vertical-align: middle;\">","text": "喜极而泣"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/献花.png\" alt=\"献花\" style=\"vertical-align: middle;\">","text": "献花"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/献黄瓜.png\" alt=\"献黄瓜\" style=\"vertical-align: middle;\">","text": "献黄瓜"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/想一想.png\" alt=\"想一想\" style=\"vertical-align: middle;\">","text": "想一想"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/小怒.png\" alt=\"小怒\" style=\"vertical-align: middle;\">","text": "小怒"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/小眼睛.png\" alt=\"小眼睛\" style=\"vertical-align: middle;\">","text": "小眼睛"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/邪恶.png\" alt=\"邪恶\" style=\"vertical-align: middle;\">","text": "邪恶"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/咽气.png\" alt=\"咽气\" style=\"vertical-align: middle;\">","text": "咽气"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/阴暗.png\" alt=\"阴暗\" style=\"vertical-align: middle;\">","text": "阴暗"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/赞一个.png\" alt=\"赞一个\" style=\"vertical-align: middle;\">","text": "赞一个"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/长草.png\" alt=\"长草\" style=\"vertical-align: middle;\">","text": "长草"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/中刀.png\" alt=\"中刀\" style=\"vertical-align: middle;\">","text": "中刀"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/中枪.png\" alt=\"中枪\" style=\"vertical-align: middle;\">","text": "中枪"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/中指.png\" alt=\"中指\" style=\"vertical-align: middle;\">","text": "中指"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/肿包.png\" alt=\"肿包\" style=\"vertical-align: middle;\">","text": "肿包"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/皱眉.png\" alt=\"皱眉\" style=\"vertical-align: middle;\">","text": "皱眉"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/装大款.png\" alt=\"装大款\" style=\"vertical-align: middle;\">","text": "装大款"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/alu/坐等.png\" alt=\"坐等\" style=\"vertical-align: middle;\">","text": "坐等"}
]},
"泡泡": {"type": "image","container": [
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/啊.png\" alt=\"啊\" style=\"vertical-align: middle;\">","text": "啊"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/爱心.png\" alt=\"爱心\" style=\"vertical-align: middle;\">","text": "爱心"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/鄙视.png\" alt=\"鄙视\" style=\"vertical-align: middle;\">","text": "鄙视"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/便便.png\" alt=\"便便\" style=\"vertical-align: middle;\">","text": "便便"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/不高兴.png\" alt=\"不高兴\" style=\"vertical-align: middle;\">","text": "不高兴"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/彩虹.png\" alt=\"彩虹\" style=\"vertical-align: middle;\">","text": "彩虹"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/茶杯.png\" alt=\"茶杯\" style=\"vertical-align: middle;\">","text": "茶杯"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/大拇指.png\" alt=\"大拇指\" style=\"vertical-align: middle;\">","text": "大拇指"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/蛋糕.png\" alt=\"蛋糕\" style=\"vertical-align: middle;\">","text": "蛋糕"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/灯泡.png\" alt=\"灯泡\" style=\"vertical-align: middle;\">","text": "灯泡"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/乖.png\" alt=\"乖\" style=\"vertical-align: middle;\">","text": "乖"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/哈哈.png\" alt=\"哈哈\" style=\"vertical-align: middle;\">","text": "哈哈"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/汗.png\" alt=\"汗\" style=\"vertical-align: middle;\">","text": "汗"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/呵呵.png\" alt=\"呵呵\" style=\"vertical-align: middle;\">","text": "呵呵"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/黑线.png\" alt=\"黑线\" style=\"vertical-align: middle;\">","text": "黑线"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/红领巾.png\" alt=\"红领巾\" style=\"vertical-align: middle;\">","text": "红领巾"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/呼.png\" alt=\"呼\" style=\"vertical-align: middle;\">","text": "呼"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/花心.png\" alt=\"花心\" style=\"vertical-align: middle;\">","text": "花心"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/滑稽.png\" alt=\"滑稽\" style=\"vertical-align: middle;\">","text": "滑稽"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/惊哭.png\" alt=\"惊哭\" style=\"vertical-align: middle;\">","text": "惊哭"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/惊讶.png\" alt=\"惊讶\" style=\"vertical-align: middle;\">","text": "惊讶"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/开心.png\" alt=\"开心\" style=\"vertical-align: middle;\">","text": "开心"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/酷.png\" alt=\"酷\" style=\"vertical-align: middle;\">","text": "酷"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/狂汗.png\" alt=\"狂汗\" style=\"vertical-align: middle;\">","text": "狂汗"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/蜡烛.png\" alt=\"蜡烛\" style=\"vertical-align: middle;\">","text": "蜡烛"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/懒得理.png\" alt=\"懒得理\" style=\"vertical-align: middle;\">","text": "懒得理"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/泪.png\" alt=\"泪\" style=\"vertical-align: middle;\">","text": "泪"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/冷.png\" alt=\"冷\" style=\"vertical-align: middle;\">","text": "冷"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/礼物.png\" alt=\"礼物\" style=\"vertical-align: middle;\">","text": "礼物"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/玫瑰.png\" alt=\"玫瑰\" style=\"vertical-align: middle;\">","text": "玫瑰"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/勉强.png\" alt=\"勉强\" style=\"vertical-align: middle;\">","text": "勉强"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/你懂的.png\" alt=\"你懂的\" style=\"vertical-align: middle;\">","text": "你懂的"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/怒.png\" alt=\"怒\" style=\"vertical-align: middle;\">","text": "怒"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/喷.png\" alt=\"喷\" style=\"vertical-align: middle;\">","text": "喷"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/钱.png\" alt=\"钱\" style=\"vertical-align: middle;\">","text": "钱"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/钱币.png\" alt=\"钱币\" style=\"vertical-align: middle;\">","text": "钱币"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/弱.png\" alt=\"弱\" style=\"vertical-align: middle;\">","text": "弱"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/三道杠.png\" alt=\"三道杠\" style=\"vertical-align: middle;\">","text": "三道杠"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/沙发.png\" alt=\"沙发\" style=\"vertical-align: middle;\">","text": "沙发"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/生气.png\" alt=\"生气\" style=\"vertical-align: middle;\">","text": "生气"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/胜利.png\" alt=\"胜利\" style=\"vertical-align: middle;\">","text": "胜利"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/手纸.png\" alt=\"手纸\" style=\"vertical-align: middle;\">","text": "手纸"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/睡觉.png\" alt=\"睡觉\" style=\"vertical-align: middle;\">","text": "睡觉"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/酸爽.png\" alt=\"酸爽\" style=\"vertical-align: middle;\">","text": "酸爽"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/太开心.png\" alt=\"太开心\" style=\"vertical-align: middle;\">","text": "太开心"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/太阳.png\" alt=\"太阳\" style=\"vertical-align: middle;\">","text": "太阳"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/吐.png\" alt=\"吐\" style=\"vertical-align: middle;\">","text": "吐"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/吐舌.png\" alt=\"吐舌\" style=\"vertical-align: middle;\">","text": "吐舌"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/挖鼻.png\" alt=\"挖鼻\" style=\"vertical-align: middle;\">","text": "挖鼻"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/委屈.png\" alt=\"委屈\" style=\"vertical-align: middle;\">","text": "委屈"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/捂嘴笑.png\" alt=\"捂嘴笑\" style=\"vertical-align: middle;\">","text": "捂嘴笑"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/犀利.png\" alt=\"犀利\" style=\"vertical-align: middle;\">","text": "犀利"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/香蕉.png\" alt=\"香蕉\" style=\"vertical-align: middle;\">","text": "香蕉"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/小乖.png\" alt=\"小乖\" style=\"vertical-align: middle;\">","text": "小乖"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/小红脸.png\" alt=\"小红脸\" style=\"vertical-align: middle;\">","text": "小红脸"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/笑尿.png\" alt=\"笑尿\" style=\"vertical-align: middle;\">","text": "笑尿"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/笑眼.png\" alt=\"笑眼\" style=\"vertical-align: middle;\">","text": "笑眼"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/心碎.png\" alt=\"心碎\" style=\"vertical-align: middle;\">","text": "心碎"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/星星月亮.png\" alt=\"星星月亮\" style=\"vertical-align: middle;\">","text": "星星月亮"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/呀咩爹.png\" alt=\"呀咩爹\" style=\"vertical-align: middle;\">","text": "呀咩爹"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/药丸.png\" alt=\"药丸\" style=\"vertical-align: middle;\">","text": "药丸"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/咦.png\" alt=\"咦\" style=\"vertical-align: middle;\">","text": "咦"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/疑问.png\" alt=\"疑问\" style=\"vertical-align: middle;\">","text": "疑问"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/阴险.png\" alt=\"阴险\" style=\"vertical-align: middle;\">","text": "阴险"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/音乐.png\" alt=\"音乐\" style=\"vertical-align: middle;\">","text": "音乐"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/真棒.png\" alt=\"真棒\" style=\"vertical-align: middle;\">","text": "真棒"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/nico.png\" alt=\"nico\" style=\"vertical-align: middle;\">","text": "nico"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/OK.png\" alt=\"OK\" style=\"vertical-align: middle;\">","text": "OK"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/what.png\" alt=\"what\" style=\"vertical-align: middle;\">","text": "what"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/吃瓜.png\" alt=\"吃瓜\" style=\"vertical-align: middle;\">","text": "吃瓜"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/吃翔.png\" alt=\"吃翔\" style=\"vertical-align: middle;\">","text": "吃翔"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/嘚瑟.png\" alt=\"嘚瑟\" style=\"vertical-align: middle;\">","text": "嘚瑟"},
{"icon": "<img src=\"/wp-content/themes/Giselle/OwO/paopao/惊恐.png\" alt=\"惊恐\" style=\"vertical-align: middle;\">","text": "惊恐"}
]}}

在json文件中,需要手动把每一个Giselle改成自己的主题名(获取到路径即可)。

总结

一开始是不想写这个教程的,但是宣宣每次都在群里说快更快更,无奈只能写下了,其实这个表情功能在我加到Inspire主题上的是有问题的,第一个评论的可以使用,回复再使用的时候表情就显示不出来了,这是一个bug。可惜本博主是个菜鸟不知道怎么修改,后期会修改吧(可能或许)。

如果有照着这样修改还不行的可以问我,不一定能够解决,总之借用路易一句话;拆机不保修

这样调用表情太复杂了,后期博主会定义成api接口,直接调用即可这样省时省力。

下载

下载这个:OwO.zip

参考

https://blog.thkira.com/2017/05/owo.html

2018-02-22更新:对于Inspire主题,1、以文章中最新的comment_add_owo()函数为主2、修改meta.php下comment_list这个函数中将最下面的echo get_comment_text()替换为comment_text();

本文采用 CC BY-NC-SA 3.0 Unported 协议进行许可
本文链接: https://www.ahwgs.cn/wordpress-weinidezhutitianshangbiaoqinggongneng.html