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); ?> -