Initial commit
This commit is contained in:
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
|
||||
namespace app\controller\admin;
|
||||
|
||||
|
||||
use app\BaseController;
|
||||
|
||||
class Menu extends BaseController
|
||||
{
|
||||
public function get(){
|
||||
|
||||
$homeInfo = [
|
||||
'title' => '主页',
|
||||
'href' => 'page/dashboard.html',
|
||||
];
|
||||
$logoInfo = [
|
||||
'title' => '工具网后台',
|
||||
'image' => 'images/logo.png',
|
||||
'href' => './',
|
||||
];
|
||||
$menuInfo = [
|
||||
[
|
||||
"title" => "常规管理",
|
||||
"icon" => "fa fa-address-book",
|
||||
"href" => "",
|
||||
"target" => "_self",
|
||||
"child" => [
|
||||
[
|
||||
"title" => "主页",
|
||||
"icon" => "fa fa-home",
|
||||
"target" => "_self",
|
||||
"href" => "page/dashboard.html",
|
||||
],
|
||||
[
|
||||
"title" => "分类管理",
|
||||
"href" => "page/category.html",
|
||||
"icon" => "fa fa-bookmark-o",
|
||||
"target" => "_self",
|
||||
],
|
||||
[
|
||||
"title" => "插件管理",
|
||||
"href" => "",
|
||||
"icon" => "fa fa-puzzle-piece",
|
||||
"target" => "_self",
|
||||
"child" => [
|
||||
[
|
||||
"title" => "插件列表",
|
||||
"href" => "page/plugin.html",
|
||||
"icon" => "fa fa-list",
|
||||
"target" => "_self"
|
||||
],
|
||||
[
|
||||
"title" => "安装新插件",
|
||||
"href" => "page/plugin/install.html",
|
||||
"icon" => "fa fa-cloud-upload",
|
||||
"target" => "_self"
|
||||
],
|
||||
]
|
||||
],
|
||||
[
|
||||
"title" => "用户管理",
|
||||
"href" => "page/user.html",
|
||||
"icon" => "fa fa-user",
|
||||
"target" => "_self",
|
||||
],
|
||||
[
|
||||
"title" => "留言管理",
|
||||
"href" => "page/comment.html",
|
||||
"icon" => "fa fa-comments",
|
||||
"target" => "_self",
|
||||
],
|
||||
[
|
||||
"title" => "上传记录",
|
||||
"href" => "page/uploadlog.html",
|
||||
"icon" => "fa fa-cloud-upload",
|
||||
"target" => "_self",
|
||||
],
|
||||
[
|
||||
"title" => "友链管理",
|
||||
"href" => "page/link.html",
|
||||
"icon" => "fa fa-link",
|
||||
"target" => "_self",
|
||||
],
|
||||
[
|
||||
"title" => "系统配置",
|
||||
"href" => "",
|
||||
"icon" => "fa fa-cogs",
|
||||
"target" => "_self",
|
||||
"child" => [
|
||||
[
|
||||
"title" => "基本信息配置",
|
||||
"href" => "page/system.html",
|
||||
"icon" => "fa fa-cog",
|
||||
"target" => "_self"
|
||||
],
|
||||
[
|
||||
"title" => "管理员配置",
|
||||
"href" => "page/account.html",
|
||||
"icon" => "fa fa-user",
|
||||
"target" => "_self"
|
||||
],
|
||||
]
|
||||
],
|
||||
/*[
|
||||
"title" => "在线升级",
|
||||
"href" => "page/update.html",
|
||||
"icon" => "fa fa-cloud-upload",
|
||||
"target" => "_self",
|
||||
],*/
|
||||
],
|
||||
]
|
||||
];
|
||||
$systemInit = [
|
||||
'homeInfo' => $homeInfo,
|
||||
'logoInfo' => $logoInfo,
|
||||
'menuInfo' => $menuInfo,
|
||||
];
|
||||
return json($systemInit);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user