feat: upgrade to version 4.1.0

pull/475/head
Seaton Jiang 2022-01-28 16:40:49 +08:00
parent 27bfddba24
commit cd0826c852
No known key found for this signature in database
GPG Key ID: B79682F6FE8D30E3
7 changed files with 66 additions and 57 deletions

View File

@ -1,22 +1,32 @@
<p align="center">
<img src="https://cdn.jsdelivr.net/gh/seatonjiang/kratos@main/assets/img/options/about.png">
</p>
<p align="center">
<img src="https://img.shields.io/badge/php-%3E7.2.5-blue">
<img src="https://img.shields.io/badge/wordpress-v5.9%20alpha%20tested-%234c1">
<a title="Crowdin" target="_blank" href="https://crowdin.com/project/kratos"><img src="https://badges.crowdin.net/kratos/localized.svg"></a>
<a href="https://www.jsdelivr.com/package/gh/seatonjiang/kratos" target="_blank"><img src="https://data.jsdelivr.com/v1/package/gh/seatonjiang/kratos/badge?style=rounded"></a>
<img src="https://img.shields.io/github/license/seatonjiang/kratos?color=%234c1">
</p>
English | [简体中文](README.zh-CN.md)
## About
<p align="center">
<img src="https://cdn.seatonjiang.com/kratos@4.1.0/assets/img/options/about.png">
</p>
Kratos is a responsive WordPress theme focused on the user reading experience, just for fun 🎉
<p align="center">
<img src="https://img.shields.io/badge/PHP-%3E7.4-777BB4?style=flat-square&logo=php&logoColor=#777BB4">
<img src="https://img.shields.io/badge/WordPress-v6.0%20alpha%20tested-21759B?style=flat-square&logo=wordpress">
<a href="https://github.com/seatonjiang/kratos/issues">
<img src="https://img.shields.io/github/issues/seatonjiang/kratos?style=flat-square&color=blue">
</a>
<a href="https://github.com/seatonjiang/kratos/pulls">
<img src="https://img.shields.io/github/issues-pr/seatonjiang/kratos?style=flat-square&color=brightgreen">
</a>
<a href="https://github.com/seatonjiang/kratos/blob/main/LICENSE">
<img src="https://img.shields.io/github/license/seatonjiang/kratos?&style=flat-square">
</a>
</p>
## Install
<p align="center">
<a href="https://github.com/seatonjiang/kratos/issues">Report Bug</a>
·
<a href="https://github.com/seatonjiang/kratos/issues">Request Feature</a>
</p>
<p align="center">A responsive WordPress theme focused on user reading experience</p>
## 🚀 Quick start
1. First download the theme's .zip file from the source file to your local computer.
@ -28,12 +38,6 @@ Kratos is a responsive WordPress theme focused on the user reading experience, j
5. The theme can now be activated from the administrator. Select the `Appearance` tab, then open the theme catalog, find the theme, and click the `Activate link`.
## Changelog
## 🤝 Contributing
Detailed changes for each release are documented in the [release notes](https://github.com/seatonjiang/kratos/releases).
## License
The code is available under the [GPL-3.0](https://github.com/seatonjiang/kratos/blob/main/LICENSE) license.
The document is licensed under a [Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License](http://creativecommons.org/licenses/by-nc-nd/4.0/).
We welcome all contributions. You can submit any ideas as pull requests or as GitHub issues, have a good time! :)

View File

@ -1,22 +1,32 @@
<p align="center">
<img src="https://cdn.jsdelivr.net/gh/seatonjiang/kratos@main/assets/img/options/about.png">
</p>
<p align="center">
<img src="https://img.shields.io/badge/php-%3E7.2.5-blue">
<img src="https://img.shields.io/badge/wordpress-v5.9%20alpha%20tested-%234c1">
<a title="Crowdin" target="_blank" href="https://crowdin.com/project/kratos"><img src="https://badges.crowdin.net/kratos/localized.svg"></a>
<a href="https://www.jsdelivr.com/package/gh/seatonjiang/kratos" target="_blank"><img src="https://data.jsdelivr.com/v1/package/gh/seatonjiang/kratos/badge?style=rounded"></a>
<img src="https://img.shields.io/github/license/seatonjiang/kratos?color=%234c1">
</p>
[English](README.md) | 简体中文
## 关于主题
<p align="center">
<img src="https://cdn.seatonjiang.com/kratos@4.1.0/assets/img/options/about.png">
</p>
Kratos 是一款专注于用户阅读体验的响应式 WordPress 主题,整体布局简洁大方,针对资源加载进行了优化。
<p align="center">
<img src="https://img.shields.io/badge/PHP-%3E7.4-777BB4?style=flat-square&logo=php&logoColor=#777BB4">
<img src="https://img.shields.io/badge/WordPress-v6.0%20alpha%20tested-21759B?style=flat-square&logo=wordpress">
<a href="https://github.com/seatonjiang/kratos/issues">
<img src="https://img.shields.io/github/issues/seatonjiang/kratos?style=flat-square&color=blue">
</a>
<a href="https://github.com/seatonjiang/kratos/pulls">
<img src="https://img.shields.io/github/issues-pr/seatonjiang/kratos?style=flat-square&color=brightgreen">
</a>
<a href="https://github.com/seatonjiang/kratos/blob/main/LICENSE">
<img src="https://img.shields.io/github/license/seatonjiang/kratos?&style=flat-square">
</a>
</p>
## 安装方法
<p align="center">
<a href="https://github.com/seatonjiang/kratos/issues">报告问题</a>
·
<a href="https://github.com/seatonjiang/kratos/issues">功能需求</a>
</p>
<p align="center">Kratos 是一款专注于用户阅读体验的响应式 WordPress 主题</p>
## 🚀 使用说明
1. 下载最新发行版本的 .zip 格式安装包;
@ -28,18 +38,18 @@ Kratos 是一款专注于用户阅读体验的响应式 WordPress 主题,整
5. 进入 `外观` > `主题` 页面,找到 Kratos 主题,然后点击 `启用` 即可。
## 讨论交流
## 💬 讨论交流
<p align="center">
<img src="https://cdn.jsdelivr.net/gh/seatonjiang/kratos@main/assets/img/options/discuss.png">
<img src="https://cdn.seatonjiang.com/kratos@4.1.0/assets/img/options/discuss.png">
</p>
## 打赏捐赠
## 🧧 打赏捐赠
<p align="center">
<img src="https://cdn.jsdelivr.net/gh/seatonjiang/kratos@main/assets/img/options/donate.png">
<img src="https://cdn.seatonjiang.com/kratos@4.1.0/assets/img/options/donate.png">
</p>
## 版权说明
## 🤝 参与共建
该仓库代码文件使用 [GPL-3.0](https://github.com/seatonjiang/kratos/blob/main/LICENSE) 协议进行授权,文档文件使用 [署名-非商业性使用-禁止演绎 4.0 国际](http://creativecommons.org/licenses/by-nc-nd/4.0/) 协议进行授权。
我们欢迎所有的贡献,你可以将任何想法作为 pull requests 或 GitHub issues 提交,顺颂商祺 :)

View File

@ -5,7 +5,7 @@
;(function () {
'use strict'
var KRATOS_VERSION = '4.0.2'
var KRATOS_VERSION = '4.1.0'
var navbarConfig = function () {
$('#navbutton').on('click', function () {

View File

@ -4,10 +4,10 @@
* 模板函数
* @author Seaton Jiang <hi@seatonjiang.com>
* @license GPL-3.0 License
* @version 2022.01.26
* @version 2022.01.28
*/
define('THEME_VERSION', '4.0.3');
define('THEME_VERSION', '4.1.0');
// 主题配置
require get_template_directory() . '/inc/codestar-framework/autoload.php';

View File

@ -1122,7 +1122,7 @@ CSF::createSection($prefix, array(
),
array(
'type' => 'content',
'content' => '<ul style="margin: 0 auto;"> <li>' . __('说明文档:', 'kratos') . '<a href="https://seatonjiang.com/" target="_blank">https://seatonjiang.com/</a></li> <li>' . __('讨论反馈:', 'kratos') . '<a href="https://github.com/seatonjiang/kratos/discussions" target="_blank">https://github.com/seatonjiang/kratos/discussions</a></li> <li>' . __('常见问题', 'kratos') . '<a href="https://github.com/seatonjiang/kratos/wiki" target="_blank">https://github.com/seatonjiang/kratos/wiki</a></li> <li>' . __('更新日志:', 'kratos') . '<a href="https://github.com/seatonjiang/kratos/releases" target="_blank">https://github.com/seatonjiang/kratos/releases</a></li> <li>' . __('捐赠记录:', 'kratos') . '<a href="https://docs.qq.com/sheet/DV2p4Rkt5U1N1bXhG" target="_blank">https://docs.qq.com/sheet/DV2p4Rkt5U1N1bXhG</a></li> </ul>',
'content' => '<ul style="margin: 0 auto;"><li>' . __('问题反馈:', 'kratos') . '<a href="https://github.com/seatonjiang/kratos/issues" target="_blank">https://github.com/seatonjiang/kratos/issues</a></li> <li>' . __('使用说明', 'kratos') . '<a href="https://github.com/seatonjiang/kratos/wiki" target="_blank">https://github.com/seatonjiang/kratos/wiki</a></li> <li>' . __('更新日志:', 'kratos') . '<a href="https://github.com/seatonjiang/kratos/releases" target="_blank">https://github.com/seatonjiang/kratos/releases</a></li> <li>' . __('捐赠记录:', 'kratos') . '<a href="https://docs.qq.com/sheet/DV2p4Rkt5U1N1bXhG" target="_blank">https://docs.qq.com/sheet/DV2p4Rkt5U1N1bXhG</a></li> </ul>',
),
array(
'type' => 'subheading',
@ -1138,7 +1138,7 @@ CSF::createSection($prefix, array(
),
array(
'type' => 'content',
'content' => '<div style="max-width:800px;"><img style="width: 100%;height: auto;" src="https://cdn.jsdelivr.net/gh/seatonjiang/kratos@main/assets/img/options/discuss.png"></div>',
'content' => '<div style="max-width:800px;"><img style="width: 100%;height: auto;" src="https://cdn.seatonjiang.com/kratos@4.1.0/assets/img/options/discuss.png"></div>',
),
array(
'type' => 'subheading',
@ -1146,7 +1146,7 @@ CSF::createSection($prefix, array(
),
array(
'type' => 'content',
'content' => '<div style="max-width:800px;"><img style="width: 100%;height: auto;" src="https://cdn.jsdelivr.net/gh/seatonjiang/kratos@main/assets/img/options/donate.png"></div>',
'content' => '<div style="max-width:800px;"><img style="width: 100%;height: auto;" src="https://cdn.seatonjiang.com/kratos@4.1.0/assets/img/options/donate.png"></div>',
),
),
));

View File

@ -1,5 +0,0 @@
{
"version": "4.0.3",
"details_url": "https://github.com/seatonjiang/kratos/releases/tag/v4.0.3",
"download_url": "https://mirrors.seatonjiang.com/kratos/v4.0.3.zip"
}

View File

@ -2,8 +2,8 @@
/*
Theme Name: Kratos
Text Domain: kratos
Version: 4.0.3
Requires PHP: 7.2.5
Version: 4.1.0
Requires PHP: 7.4
Description:
Tags: , , , , , , , , , , , , ,
Author: Seaton Jiang