($taglib ? $taglib . ',' : '') . 'addons\\links\\taglib\\Links'], 'view'); } /** * 插件安装方法 * @return bool */ public function install() { $menu = [ [ "name" => "links", "title" => "友情链接", "icon" => "iconfont icon-link-m", "sublist" => [ [ "name" => "links.admin", "title" => "友情链接", "icon" => "iconfont icon-link-m", "listorder" => 9, "sublist" => [ ["name" => "links.admin/index", "title" => "查看"], ["name" => "links.admin/add", "title" => "新增"], ["name" => "links.admin/edit", "title" => "编辑"], ["name" => "links.admin/del", "title" => "删除"], ["name" => "links.admin/multi", "title" => "批量更新"], ], ], [ "name" => "links.terms", "title" => "分类管理", "icon" => "iconfont icon-list-unordered", "sublist" => [ ["name" => "links.terms/index", "title" => "查看"], ["name" => "links.terms/add", "title" => "新增"], ["name" => "links.terms/edit", "title" => "编辑"], ["name" => "links.terms/del", "title" => "删除"], ], ], ], ], ]; Menu::create($menu); return true; } /** * 插件卸载方法 * @return bool */ public function uninstall() { Menu::delete("links"); return true; } /** * 插件启用方法 * @return bool */ public function enable() { Menu::enable("links"); return true; } /** * 插件禁用方法 * @return bool */ public function disable() { Menu::disable("links"); return true; } }