diff --git a/controller/index.php b/controller/index.php index d358c65..33b6ec9 100644 --- a/controller/index.php +++ b/controller/index.php @@ -104,6 +104,13 @@ function base64($url){ //获取版本号 $version = get_version(); +//载入js扩展 +if( file_exists('templates/admin/static/extend.js') ) { + $onenav['extend'] = ''; +} +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 cc24350..b44faae 100644 --- a/templates/default/index.php +++ b/templates/default/index.php @@ -12,6 +12,8 @@ + +