Browse Source

20210726

pull/23/head
xiaoz 3 years ago
parent
commit
1554f30f6f
  1. 9
      controller/index.php
  2. 18
      data/update.log
  3. 5
      templates/admin/index.php
  4. 2
      templates/default/index.php
  5. 12
      templates/default/static/style.css
  6. 2
      version.txt

9
controller/index.php

@ -118,5 +118,12 @@ else{ @@ -118,5 +118,12 @@ else{
// 载入前台首页模板
require('templates/'.TEMPLATE.'/index.php');
//判断文件夹是否存在
if( is_dir('templates/'.TEMPLATE) ){
$tpl_dir = 'templates/';
}
else{
$tpl_dir = 'data/templates/';
}
require($tpl_dir.TEMPLATE.'/index.php');
?>

18
data/update.log

@ -6,4 +6,20 @@ @@ -6,4 +6,20 @@
1. 更改初始化数据库位置
2. 修复分类目录不按权重排序的问题
3. 书签导入
4. 书签批量删除
4. 书签批量删除
20210412
CREATE TABLE on_options (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"key" TEXT(64) NOT NULL,
value TEXT,
extend TEXT
);
CREATE INDEX on_options_id_IDX ON on_options (id,"key");
CREATE INDEX on_options_key_IDX ON on_options ("key");
20210726
1. 修复后台QQ群2
2. 后台添加社区支持链接
3. 修复默认主题顶部遮挡问题

5
templates/admin/index.php

@ -14,7 +14,10 @@ @@ -14,7 +14,10 @@
<div class = "admin-msg">QQ群1:147687134</div>
</div>
<div class="layui-col-lg4">
<div class = "admin-msg">QQ群2:147687134</div>
<div class = "admin-msg">QQ群2:932795364</div>
</div>
<div class="layui-col-lg4">
<div class = "admin-msg">社区支持:<a href="https://dwz.ovh/vd0bw" rel = "nofollow" target="_blank" title="访问下问社区">https://dwz.ovh/vd0bw</a></div>
</div>
<div class="layui-col-lg4">
<div class = "admin-msg">项目地址:<a href="https://github.com/helloxz/onenav" rel = "nofollow" target="_blank">https://github.com/helloxz/onenav</a></div>

2
templates/default/index.php

@ -129,7 +129,7 @@ @@ -129,7 +129,7 @@
$property = '';
}
?>
<div id = "category-<?php echo $category['id']; ?>" class = "mdui-col-xs-12 mdui-typo-title cat-title" style = "margin-top:1.5em;">
<div id = "category-<?php echo $category['id']; ?>" class = "mdui-col-xs-12 mdui-typo-title cat-title">
<?php echo $category['name']; ?> <?php echo $property; ?>
<span class = "mdui-typo-caption"><?php echo $category['description']; ?></span>
</div>

12
templates/default/static/style.css

@ -135,4 +135,14 @@ footer a{ @@ -135,4 +135,14 @@ footer a{
}
.mdui-snackbar-top{
background-color: #FF2377;
}
}
.cat-title{
margin-top: -68px;
padding-top:68px;
/* margin-bottom: 0; */
}
/* :target {
padding-top: 70px;
margin-top: -70px;
} */

2
version.txt

@ -1 +1 @@ @@ -1 +1 @@
v0.9.11-20210411
v0.9.12-20210726
Loading…
Cancel
Save