Browse Source

优化默认主题

pull/4/merge 0.9.6
xiaoz 4 years ago
parent
commit
7e56ea003b
  1. 7
      controller/index.php
  2. 2
      templates/default/index.php

7
controller/index.php

@ -104,6 +104,13 @@ function base64($url){ @@ -104,6 +104,13 @@ function base64($url){
//获取版本号
$version = get_version();
//载入js扩展
if( file_exists('templates/admin/static/extend.js') ) {
$onenav['extend'] = '<script src = "templates/admin/static/extend.js"></script>';
}
else{
$onenav['extend'] = '';
}
// 载入前台首页模板
require('templates/'.TEMPLATE.'/index.php');
?>

2
templates/default/index.php

@ -12,6 +12,8 @@ @@ -12,6 +12,8 @@
<link rel="stylesheet" href="https://libs.xiaoz.top/font-awesome/4.7.0/css/font-awesome.css">
<link rel="stylesheet" href="templates/<?php echo TEMPLATE; ?>/static/style.css?v=<?php echo $version; ?>">
<script src = 'https://libs.xiaoz.top/mdui/v1.0.1/js/mdui.min.js'></script>
<?php echo $onenav['extend']; ?>
</head>
<body class = "mdui-drawer-body-left mdui-appbar-with-toolbar mdui-theme-primary-indigo mdui-theme-accent-pink mdui-loaded">
<!--导航工具-->

Loading…
Cancel
Save