From 2f7ec6793e95e3a5fb729efb2cd7ae8107ec461a Mon Sep 17 00:00:00 2001 From: augushong Date: Tue, 12 May 2020 19:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=90=8C=E7=9A=AE=E8=82=A4=E7=94=A8?= =?UTF-8?q?=E4=B8=8D=E5=90=8C=E7=9A=84=E6=96=87=E7=AB=A0=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/model/Category.php | 2 +- view/admin/category/create.html | 2 +- view/admin/category/edit.html | 2 +- view/admin/category/index.html | 2 +- view/admin/common/_header.html | 14 +++++++++++++- view/admin/common/left_post.html | 6 +++--- view/admin/common/left_system.html | 3 ++- view/admin/post/create.html | 2 +- view/admin/post/edit.html | 2 +- view/admin/post/index.html | 2 +- view/admin/tag/index.html | 2 +- 11 files changed, 26 insertions(+), 13 deletions(-) diff --git a/app/model/Category.php b/app/model/Category.php index e0f2589..ad70228 100644 --- a/app/model/Category.php +++ b/app/model/Category.php @@ -28,7 +28,7 @@ class Category extends Model if(empty(self::$allCategory)){ - $model_list = Category::select(); + $model_list = Category::where('type',$type)->select(); self::$allCategory = array2level($model_list,0,0); } diff --git a/view/admin/category/create.html b/view/admin/category/create.html index de08355..5f6d356 100644 --- a/view/admin/category/create.html +++ b/view/admin/category/create.html @@ -9,7 +9,7 @@ {include file="common/_require"} diff --git a/view/admin/category/edit.html b/view/admin/category/edit.html index 317ffdf..92134cb 100644 --- a/view/admin/category/edit.html +++ b/view/admin/category/edit.html @@ -9,7 +9,7 @@ {include file="common/_require"} diff --git a/view/admin/category/index.html b/view/admin/category/index.html index 42f35dc..cc9cf01 100644 --- a/view/admin/category/index.html +++ b/view/admin/category/index.html @@ -9,7 +9,7 @@ {include file="common/_require"} diff --git a/view/admin/common/_header.html b/view/admin/common/_header.html index 904d231..d68a00f 100644 --- a/view/admin/common/_header.html +++ b/view/admin/common/_header.html @@ -5,7 +5,19 @@
  • 首页
  • 用户管理
  • 文件管理
  • -
  • 内容管理
  • +
  • 内容管理
  • + {if get_system_config('index_tpl_name') == 'easy_blue_' } +
  • 简约蓝官网
  • + {/if} + {if get_system_config('index_tpl_name') == 'articles_' } +
  • 头条资讯
  • + {/if} + {if get_system_config('index_tpl_name') == 'documents_' } +
  • 文档
  • + {/if} + {if get_system_config('index_tpl_name') == 'blog_' } +
  • 博客
  • + {/if}
  • 管理员管理
  • 系统设置
  • diff --git a/view/admin/common/left_post.html b/view/admin/common/left_post.html index 3db2c5b..b9b214a 100644 --- a/view/admin/common/left_post.html +++ b/view/admin/common/left_post.html @@ -3,13 +3,13 @@ diff --git a/view/admin/common/left_system.html b/view/admin/common/left_system.html index 920bf57..2418b09 100644 --- a/view/admin/common/left_system.html +++ b/view/admin/common/left_system.html @@ -21,7 +21,7 @@ diff --git a/view/admin/post/create.html b/view/admin/post/create.html index 70b6868..65354ad 100644 --- a/view/admin/post/create.html +++ b/view/admin/post/create.html @@ -10,7 +10,7 @@ diff --git a/view/admin/post/edit.html b/view/admin/post/edit.html index 69f2ae4..0aafebc 100644 --- a/view/admin/post/edit.html +++ b/view/admin/post/edit.html @@ -10,7 +10,7 @@ diff --git a/view/admin/post/index.html b/view/admin/post/index.html index 4f0f55a..aa8da90 100644 --- a/view/admin/post/index.html +++ b/view/admin/post/index.html @@ -9,7 +9,7 @@ {include file="common/_require"} diff --git a/view/admin/tag/index.html b/view/admin/tag/index.html index 557de02..1fae6d9 100644 --- a/view/admin/tag/index.html +++ b/view/admin/tag/index.html @@ -9,7 +9,7 @@ {include file="common/_require"}