Skip to content

Commit

Permalink
更新2.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jielive committed Feb 20, 2023
1 parent 24857c1 commit 1c68cb9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Typecho主题 - Initial 简约而不简单(v2.5.4
# Typecho主题 - Initial 简约而不简单(v2.5.5

![主题封面](https://www.offodd.com/usr/uploads/2018/09/111355748.png)

Expand Down Expand Up @@ -66,6 +66,12 @@
<br>2020/10/21:更新2.5.2版本
<br>2022/03/09:更新2.5.3版本
<br>2022/10/12:更新2.5.4版本
<br>2023/02/20:更新2.5.5版本

### 2.5.5版更新内容

> * 修复部分用户背景音乐播放音量无法设置的问题
> * 适配返回顶部新算法,修复返回顶部后无法继续下拉的问题
### 2.5.4版更新内容

Expand Down
6 changes: 3 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
error_reporting(0);
define('INITIAL_VERSION_NUMBER', '2.5.4');
define('INITIAL_VERSION_NUMBER', '2.5.5');
if (Helper::options()->GravatarUrl) define('__TYPECHO_GRAVATAR_PREFIX__', Helper::options()->GravatarUrl);

function themeConfig($form) {
Expand All @@ -27,7 +27,7 @@ function themeConfig($form) {
$CustomCSS = new Typecho_Widget_Helper_Form_Element_Textarea('CustomCSS', NULL, NULL, _t('自定义样式'), _t('在这里填入你的自定义样式(直接填入css,无需&lt;style&gt;标签)'));
$form->addInput($CustomCSS);

$cjcdnAddress = new Typecho_Widget_Helper_Form_Element_Text('cjcdnAddress', NULL, NULL, _t('主题静态文件(css和js)的链接地址替换'), _t('请输入你的CDN云存储地址,例如://cdn.jsdelivr.net/gh/jielive/initial@<b class="notice">{version}</b>/<br><b>被替换的原地址为主题文件位置,即:http://www.example.com/usr/themes/initial/</b>'));
$cjcdnAddress = new Typecho_Widget_Helper_Form_Element_Text('cjcdnAddress', NULL, NULL, _t('主题静态文件(css和js)的链接地址替换'), _t('请输入你的CDN云存储地址,例如:<b class="notice">//cdn.jsdelivr.net/gh/jielive/initial/</b><br><b>被替换的原地址为主题文件位置,即:http://www.example.com/usr/themes/initial/</b>'));
$form->addInput($cjcdnAddress);

$AttUrlReplace = new Typecho_Widget_Helper_Form_Element_Textarea('AttUrlReplace', NULL, NULL, _t('文章内的链接地址替换(建议用在图片等静态资源的链接上)'), _t('按照格式输入你的CDN链接以替换原链接,格式:<br><b class="notice">原地址=替换地址</b><br>原地址与新地址之间用等号“=”分隔,例如:<br><b>http://www.example.com/usr/uploads/=http://cdn.example.com/usr/uploads/</b><br>可设置多个规则,换行即可,一行一个'));
Expand Down Expand Up @@ -140,7 +140,7 @@ function themeConfig($form) {
$form->addInput($MusicUrl);

$MusicVol = new Typecho_Widget_Helper_Form_Element_Text('MusicVol', NULL, NULL, _t('背景音乐播放音量(输入范围:0~1)'), _t('请输入一个0到1之间的小数(0为静音 0.5为50%音量 1为100%最大音量)输入错误内容或留空则使用默认音量100%'));
$form->addInput($MusicVol->addRule('isInteger', _t('请填入一个0~1内的数字')));
$form->addInput($MusicVol);

$InsideLinksIcon = new Typecho_Widget_Helper_Form_Element_Radio('InsideLinksIcon',
array(1 => _t('启用'),
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @package Initial
* @author JIElive
* @version 2.5.4
* @version 2.5.5
* @link http://www.offodd.com/
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
Expand Down
2 changes: 1 addition & 1 deletion main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1c68cb9

Please sign in to comment.