From 088cb16d85072d935df22caf07f2f05686b88823 Mon Sep 17 00:00:00 2001 From: wehaox Date: Fri, 20 Jan 2023 22:38:13 +0800 Subject: [PATCH] update 1.7.3 --- css/style.css | 4 +- footer.php | 11 +-- functions.php | 6 +- header_com.php | 92 ++++++++++++------------ index.css | 2 +- index.php | 36 +++++----- js/main.js | 175 +++++++++++++++++++++++++++------------------ js/snackbar.min.js | 14 ++-- js/tw_cn.js | 69 +++++++++++------- js/utils.js | 31 +++++--- page.php | 1 - page_header.php | 2 +- post.php | 14 ++-- post_sidebar.php | 2 +- public/nav.php | 6 +- sidebar.php | 2 +- 16 files changed, 266 insertions(+), 201 deletions(-) diff --git a/css/style.css b/css/style.css index e2260fd..2fb937e 100644 --- a/css/style.css +++ b/css/style.css @@ -479,8 +479,8 @@ code[class*="language-"], pre[class*="language-"] { } #card-newest-comments > .aside-list>.aside-list-item .thumbnail>img{ border-radius: 50%; - width: 53px; - height: 53px; + width: 50px!important; + height: 50px!important; } #card-newest-comments > .aside-list>.aside-list-item .thumbnail>img:hover { diff --git a/footer.php b/footer.php index 215ed24..03b3a46 100644 --- a/footer.php +++ b/footer.php @@ -70,7 +70,7 @@ options->CustomBodyEnd() ?> `; -// parent_div_git.innerHTML=item_html+parent_div_git.innerHTML // 无报错,但不影响使用(支持pjax跳转) -parent_div_git.insertAdjacentHTML("afterbegin", item_html) // 有报错,但不影响使用(支持pjax跳转) +parent_div_git.innerHTML=item_html+parent_div_git.innerHTML // 无报错,但不影响使用(支持pjax跳转) +// parent_div_git.insertAdjacentHTML("afterbegin", item_html) // 有报错,但不影响使用(支持pjax跳转) } if (document.getElementById('recent-posts') && (location.pathname === 'all' || 'all' === 'all')) { butterfly_swiper_injector_config()} @@ -186,7 +186,7 @@ function butterfly_swiper_injector_config() { -
+
@@ -224,7 +224,8 @@ function butterfly_swiper_injector_config() { - diff --git a/functions.php b/functions.php index f7c65b4..7c24643 100644 --- a/functions.php +++ b/functions.php @@ -136,7 +136,7 @@ function themeConfig($form) { $AD = new Typecho_Widget_Helper_Form_Element_Textarea('AD', NULL, NULL, _t('广告(由@yzl3014提供)'), _t('在这里填入广告,填入后自动显示在侧栏中公告栏的下方,支持html')); $form->addInput($AD); - $headerimg = new Typecho_Widget_Helper_Form_Element_Text('headerimg', NULL,_t('https://tva1.sinaimg.cn/large/007X0Rdyly1ghm1qiihrdj31hc0u07jk.jpg'), _t('主页顶图(banner image)'), _t('填入主页头图链接')); + $headerimg = new Typecho_Widget_Helper_Form_Element_Text('headerimg', NULL,_t('https://s2.loli.net/2023/01/18/bIJTVaR3MLPzcZ7.jpg'), _t('主页顶图(banner image)'), _t('填入主页头图链接')); $form->addInput($headerimg); $buildtime = new Typecho_Widget_Helper_Form_Element_Text('buildtime', NULL,_t('2021/04/05'), _t('建站时间'), _t('按照输入框内格式填写')); @@ -341,7 +341,7 @@ function themeConfig($form) { 'showLineNumber' => _t('是否显示代码块行号'), 'showSnackbar' => _t('是否显示主题以及简繁切换弹窗'), 'showLazyloadBlur' => _t('是否开启懒加载模糊效果'), - 'showButterflyClock' => _t('是否开启侧栏显示时钟'), + 'showButterflyClock' => _t('是否开启侧栏显示时钟(需要在下方填写和风和高德key)'), ), array('ShowTopimg','PostShowTopimg','PageShowTopimg','showLineNumber','showSnackbar','showLazyloadBlur'), _t('美化选项')); $beautifyBlock->setAttribute('id', 'beautifyBlock'); @@ -1816,4 +1816,4 @@ function weibohot(){ } echo '
'.$hot.'
'.$item['note'].'
'.$item['num'].'
'; } -} \ No newline at end of file +} diff --git a/header_com.php b/header_com.php index 71ce7a5..1a46765 100644 --- a/header_com.php +++ b/header_com.php @@ -21,8 +21,8 @@ - - + + options->beautifyBlock) && in_array('ShowBeautifyChange',$this->options->beautifyBlock)): ?> @@ -42,8 +42,8 @@ options->beautifyBlock) && in_array('showSnackbar',$this->options->beautifyBlock)): ?> - - + + options->beautifyBlock) && in_array('showLazyloadBlur',$this->options->beautifyBlock)): ?>