- 找到并修改当前theme下的include.php文件
//注册插件(default为主题名称)
RegisterPlugin("default", "ActivePlugin_default");
//挂载插件(default为主题名称)
function ActivePlugin_default(){
global $zbp;
Add_Filter_Plugin('Filter_Plugin_Edit_Response5', 'add_customChart');
}
Add_Filter_Plugin函数第一个参数(Filter_Plugin_Edit_Response5),参考:Z-BlogPHP 系统接口列表
Add_Filter_Plugin函数第二个参数(add_customChart),即插件实现函数
- 编写插件实现函数
function add_customChart(){
global $zbp,$article;
echo ''.
'';
}
// input的name应为meta_字段名
// input的value应为htmlspecialchars($字段名)
- 文章显示调用:
//文件位于:根目录/zb_users/theme/主题名称/template/post-single.php //在需要显示的地方调用,如:来源:{$article.Metas.province}
- over !



