From 79ea6a20e302f6efa7d396702ba138bfefbcda5e Mon Sep 17 00:00:00 2001 From: spirit Date: Wed, 27 Nov 2019 08:48:12 +0800 Subject: [PATCH] fix --- functions.php | 2 +- options.php | 4 ++-- style.css | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 84c5e3b..dfab6c8 100644 --- a/functions.php +++ b/functions.php @@ -1592,7 +1592,7 @@ function html_tag_parser($content) { //Github cards $content=preg_replace( '/\[github repo=[\'"]([^\'"]+)[\'"]\]/i', - '', $content ); } diff --git a/options.php b/options.php index b8b1fa2..5690edb 100644 --- a/options.php +++ b/options.php @@ -1067,14 +1067,14 @@ function optionsframework_options() { $options[] = array( 'name' => __('Enable live search', 'sakura'),/*启用实时搜索*/ - 'desc' => __('Real-time search in the foreground, call the Rest API to update the cache every hour, you can manually set the cache time in functions.php'),/*前台实现实时搜索,调用 Rest API 每小时更新一次缓存,可在 functions.php 里手动设置缓存时间*/ + 'desc' => __('Real-time search in the foreground, call the Rest API to update the cache every hour, you can manually set the cache time in functions.php', 'sakura'),/*前台实现实时搜索,调用 Rest API 每小时更新一次缓存,可在 functions.php 里手动设置缓存时间*/ 'id' => 'live_search', 'std' => '0', 'type' => 'checkbox'); $options[] = array( 'name' => __('Include comments in live search', 'sakura'),/*实时搜索包含评论*/ - 'desc' => __('Search for comments in real-time search (not recommended if there are too many comments on the site)'),/*在实时搜索中搜索评论(如果网站评论数量太多不建议开启)*/ + 'desc' => __('Search for comments in real-time search (not recommended if there are too many comments on the site)', 'sakura'),/*在实时搜索中搜索评论(如果网站评论数量太多不建议开启)*/ 'id' => 'live_search_comment', 'std' => '0', 'type' => 'checkbox'); diff --git a/style.css b/style.css index 76366f1..39a7cb1 100644 --- a/style.css +++ b/style.css @@ -8500,6 +8500,12 @@ h1[id*=toc-head]::before,h2[id*=toc-head]::before,h3[id*=toc-head]::before,h4[id visibility:hidden } +@media (max-width:860px) { + .widget-area{ + display: none; + } +} + .widget-area { position: fixed; top: 100px;