zblog支持2处菜单的添加,分别是后台顶部和后台左侧。
1、给后台顶部导航栏添加菜单
点击复制代码 PHP
function ActivePlugin_tc_cs() {
Add_Filter_Plugin('Filter_Plugin_Admin_TopMenu','ytecn_Admin_TopMenu');
}
function ytecn_Admin_TopMenu(&$m) {
global $zbp;
$m[]=MakeTopMenu('root', '插件配置',$zbp->host."zb_users/plugin/ytecn/main.php",'',"topmenu_pjonip","icon-grid-1x2-fill");
}
2、给后台左侧导航栏添加菜单
点击复制代码 PHP
function ActivePlugin_tc_cs() {
Add_Filter_Plugin('Filter_Plugin_Admin_LeftMenu','ytecn_Admin_LeftMenu');
}
function ytecn_Admin_LeftMenu(&$m){
global $zbp;
$m['nav_ytecn'] = MakeLeftMenu("root", '插件配置', $zbp->host . "zb_users/plugin/ytecn/main.php", "nav_ytecn", "aAppCentre", "", "icon-zblog-appcenter");
}