Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jielive authored Mar 9, 2022
1 parent 063d378 commit d24d312
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 11 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Typecho主题 - Initial 简约而不简单(v2.5.2
# Typecho主题 - Initial 简约而不简单(v2.5.3

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

Expand All @@ -12,7 +12,7 @@
* 轻量级设计,极速浏览体验
* 傻瓜式后台设置,告别使用疑惑
* 公共资源支持切换源:Staticfile、jsDelivr、CDNJS
* Gravatar头像支持切换源:官方源、国内源、V2EX源
* Gravatar头像支持切换源:官方源、国内源、七牛源等
* 支持主题静态文件、文章附件自定义链接,实现镜像加速
* 全站Pjax、Ajax评论、Ajax翻页、HTML压缩、CSS与JS文件压缩
* 支持自定义Favicon图标,自定义头部跟随或固定,自定义标题或LOGO,自定义导航栏显示等
Expand Down Expand Up @@ -64,6 +64,13 @@
<br>2020/09/11:更新2.5版本
<br>2020/09/16:更新2.5.1版本
<br>2020/10/21:更新2.5.2版本
<br>2022/03/09:更新2.5.3版本

### 2.5.3版更新内容

> * 修复Ajax翻页双击(多击)问题
> * 修改过度样式,解决刷新页面后页面移动问题
> * 更新几个Gravatar头像源
### 2.5.2版更新内容

Expand Down
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<?php endif; ?>
<p>&copy; <?php echo date('Y'); ?> <a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a>. Powered by <a href="http://www.typecho.org" target="_blank">Typecho</a> &amp; <a href="http://www.offodd.com/17.html" target="_blank">Initial</a>.</p>
<?php if ($this->options->ICPbeian): ?>
<p><a href="http://beian.miit.gov.cn" class="icpnum" target="_blank" rel="nofollow"><?php $this->options->ICPbeian(); ?></a></p>
<p><a href="http://beian.miit.gov.cn" class="icpnum" target="_blank" rel="noreferrer"><?php $this->options->ICPbeian(); ?></a></p>
<?php endif; if ($this->options->AjaxLoad): ?>
<input id="token" type="hidden" value="<?php echo Typecho_Widget::widget('Widget_Security')->getTokenUrl('Token'); ?>" readonly="readonly" />
<?php endif; ?>
Expand Down
12 changes: 7 additions & 5 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.2');
define('INITIAL_VERSION_NUMBER', '2.5.3');
if (Helper::options()->GravatarUrl) define('__TYPECHO_GRAVATAR_PREFIX__', Helper::options()->GravatarUrl);

function themeConfig($form) {
Expand Down Expand Up @@ -79,14 +79,16 @@ function themeConfig($form) {
array('jd' => _t('jsDelivr'),
'sc' => _t('Staticfile'),
'cf' => _t('CDNJS')),
'jd', _t('公共静态资源来源'), _t('默认jsDelivr,请根据需求选择合适来源'));
'jd', _t('公共静态资源来源'), _t('默认jsDelivr,若JS文件异常,可尝试切换来源'));
$form->addInput($cjCDN);

$GravatarUrl = new Typecho_Widget_Helper_Form_Element_Radio('GravatarUrl',
array(false => _t('官方源'),
'https://cn.gravatar.com/avatar/' => _t('国内源'),
'https://cdn.v2ex.com/gravatar/' => _t('V2EX源')),
false, _t('Gravatar头像源'), _t('默认官方源'));
'https://gravatar.loli.net/avatar/' => _t('loli源'),
'https://sdn.geekzu.org/avatar/' => _t('极客族源'),
'https://dn-qiniu-avatar.qbox.me/avatar/' => _t('七牛源')),
false, _t('Gravatar头像源'), _t('默认官方源,若头像显示异常,可尝试切换来源'));
$form->addInput($GravatarUrl);

$compressHtml = new Typecho_Widget_Helper_Form_Element_Radio('compressHtml',
Expand All @@ -105,7 +107,7 @@ function themeConfig($form) {
array('auto' => _t('自动'),
'click' => _t('点击'),
0 => _t('关闭')),
0, _t('Ajax翻页'), _t('默认关闭,启用则会使用Ajax加载文章翻页'));
0, _t('Ajax翻页'), _t('默认关闭,启用则会使用Ajax加载下一页的文章'));
$form->addInput($AjaxLoad);

$Highlight = new Typecho_Widget_Helper_Form_Element_Radio('Highlight',
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.2
* @version 2.5.3
* @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.

Loading

0 comments on commit d24d312

Please sign in to comment.