From 9c422d6285919b307539328ff6a6ffda68f991e1 Mon Sep 17 00:00:00 2001 From: Karson Date: Wed, 15 Mar 2023 16:34:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=AE=80=E6=B4=81=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Index.php | 2 +- application/admin/lang/zh-cn/index.php | 2 ++ application/admin/view/common/control.html | 5 +++-- application/admin/view/common/header.html | 2 ++ application/config.php | 2 ++ public/assets/js/backend/index.js | 10 +++++++++- 6 files changed, 19 insertions(+), 4 deletions(-) diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index 862c2243..7a6a6a4a 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -32,7 +32,7 @@ class Index extends Backend */ public function index() { - $cookieArr = ['adminskin' => "/^skin\-([a-z\-]+)\$/i", 'multiplenav' => "/^(0|1)\$/", 'multipletab' => "/^(0|1)\$/", 'show_submenu' => "/^(0|1)\$/"]; + $cookieArr = ['adminskin' => "/^skin\-([a-z\-]+)\$/i", 'simplenav' => "/^(0|1)\$/", 'multiplenav' => "/^(0|1)\$/", 'multipletab' => "/^(0|1)\$/", 'show_submenu' => "/^(0|1)\$/"]; foreach ($cookieArr as $key => $regex) { $cookieValue = $this->request->cookie($key); if (!is_null($cookieValue) && preg_match($regex, $cookieValue)) { diff --git a/application/admin/lang/zh-cn/index.php b/application/admin/lang/zh-cn/index.php index 316de2aa..ea6e26b7 100644 --- a/application/admin/lang/zh-cn/index.php +++ b/application/admin/lang/zh-cn/index.php @@ -16,6 +16,8 @@ return [ 'Toggle between slide over content and push content effects' => '切换右侧操作栏覆盖或独占', 'Toggle Right Sidebar Skin' => '切换右侧操作栏背景', 'Toggle between dark and light skins for the right sidebar' => '将右侧操作栏背景亮色或深色切换', + 'Simple nav' => '简洁导航模式', + 'Simple nav tips' => '启用后顶部导航将不再显示,同时每次点击菜单都会刷新右侧内容', 'Multiple nav' => '多级菜单导航', 'Toggle the top menu state (multiple or single)' => '切换顶部菜单为多级菜单导航模式', 'Multiple tab' => '多选项卡', diff --git a/application/admin/view/common/control.html b/application/admin/view/common/control.html index 69bc449b..ed99947e 100644 --- a/application/admin/view/common/control.html +++ b/application/admin/view/common/control.html @@ -30,8 +30,9 @@

{:__('Layout Options')}

-

{:__("Toggle the top menu state (multiple or single)")}

-

{:__("Always show multiple tab when multiple nav is set")}

+

{:__("Simple nav tips")}

+

{:__("Toggle the top menu state (multiple or single)")}

+

{:__("Always show multiple tab when multiple nav is set")}

{:__("Toggle the left sidebar's state (open or collapse)")}

{:__('Let the sidebar mini expand on hover')}

{:__('Always show sub menu')}

diff --git a/application/admin/view/common/header.html b/application/admin/view/common/header.html index 5efa6b05..6b8269d2 100755 --- a/application/admin/view/common/header.html +++ b/application/admin/view/common/header.html @@ -18,7 +18,9 @@