From b369eab6a7375f8075ad8c7c463fbde9908a8814 Mon Sep 17 00:00:00 2001 From: xiaoz Date: Wed, 23 Dec 2020 23:11:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=BB=E9=A2=98=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=8F=B3=E9=94=AE=E7=AE=A1=E7=90=86=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/index.php | 6 ++ templates/default/index.php | 22 ++--- templates/default/static/embed.js | 143 +++++++++++++++++++++++------ templates/default/static/style.css | 11 +++ version.txt | 2 +- 5 files changed, 139 insertions(+), 45 deletions(-) diff --git a/controller/index.php b/controller/index.php index 33b6ec9..00a78a2 100644 --- a/controller/index.php +++ b/controller/index.php @@ -19,6 +19,8 @@ if( is_login() ){ ]); return $links; } + //右键菜单标识 + $onenav['right_menu'] = 'admin_menu();'; } //如果没有登录,只获取公有链接 else{ @@ -38,6 +40,8 @@ else{ ]); return $links; } + //右键菜单标识 + $onenav['right_menu'] = 'user_menu();'; } @@ -111,6 +115,8 @@ if( file_exists('templates/admin/static/extend.js') ) { else{ $onenav['extend'] = ''; } + + // 载入前台首页模板 require('templates/'.TEMPLATE.'/index.php'); ?> \ No newline at end of file diff --git a/templates/default/index.php b/templates/default/index.php index 09198f9..9fc66b3 100644 --- a/templates/default/index.php +++ b/templates/default/index.php @@ -115,7 +115,7 @@ //var_dump($link); ?> -