/*
Plugin Name: Live2d——伊斯特瓦尔(Histoire)
Version: 1.06
Plugin URL:http://wikimoe.com
Description: 给博客加上live2d伊斯特瓦尔
Author: 广树
Author URL: http://wikimoe.com
*/
!defined('EMLOG_ROOT') && exit('Access Deined!');
if(function_exists('emLoadJQuery')) {
emLoadJQuery();
}
//首页微语调用
function index_t($num){
$newtws_cache = Cache::getInstance()->readCache('newtw');
$newtws_json = json_encode($newtws_cache);
return '';
}
//获得live2d
function get_live2d(){
$data = live2d_dataGet();
echo index_t(5);
echo '
echo '
echo '';
echo '';
echo '';
echo '';
if(!empty($data['msra'])){
echo '';
}
if(!empty($data['msrb'])){
echo '';
}
if(!empty($data['msrc'])){
echo '';
}
if(!empty($data['msrd'])){
echo '';
}
if(!empty($data['msre'])){
echo '';
}
}
function live2d_dataGet() {
$data = unserialize(ltrim(file_get_contents(dirname(__FILE__).'/live2d.com.php'),'<?php die; ?>'));
return $data;
}
addAction('index_footer', 'get_live2d');
function Live2dHistoire_menu()
{
echo '
';}
addAction('adm_sidebar_ext', 'Live2dHistoire_menu');
?>
一键复制
编辑
Web IDE
原始数据
按行查看
历史