这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 | 后一修订版 两侧同时换到之后的修订记录 | ||
zblogphp:development:plugin:interfaces:filter_plugin_zbp_maketemplatetags [2017/12/07 09:24] 未寒 [调用示例] |
zblogphp:development:plugin:interfaces:filter_plugin_zbp_maketemplatetags [2017/12/07 09:25] 唐朝 [调用示例] |
||
---|---|---|---|
行 22: | 行 22: | ||
<code php> | <code php> | ||
RegisterPlugin("demo","ActivePlugin_demo");//注册插件 | RegisterPlugin("demo","ActivePlugin_demo");//注册插件 | ||
- | + | ||
function ActivePlugin_demo() { | function ActivePlugin_demo() { | ||
Add_Filter_Plugin('Filter_Plugin_Zbp_MakeTemplatetags','demo'); | Add_Filter_Plugin('Filter_Plugin_Zbp_MakeTemplatetags','demo'); | ||
行 30: | 行 30: | ||
$zbp->header .= "<script type=\"text/javascript\" src=\"{$zbp->host}zb_users/plugin/demo/js.js\"></script>\r\n"; | $zbp->header .= "<script type=\"text/javascript\" src=\"{$zbp->host}zb_users/plugin/demo/js.js\"></script>\r\n"; | ||
$zbp->header .= "<link rel=\"stylesheet\" href=\"{$zbp->host}zb_users/plugin/demo/css.css\" type=\"text/css\" />\r\n"; | $zbp->header .= "<link rel=\"stylesheet\" href=\"{$zbp->host}zb_users/plugin/demo/css.css\" type=\"text/css\" />\r\n"; | ||
+ | //配置全局标签 | ||
+ | $template['ytzblog']="自定义全局标签,前台调用的时候直接用{$ytzblog}"; | ||
} | } | ||
</code> | </code> | ||