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


