pull/144/head
spirit 2019-11-27 08:48:12 +08:00
parent 236d263a26
commit 79ea6a20e3
3 changed files with 9 additions and 3 deletions

View File

@ -1592,7 +1592,7 @@ function html_tag_parser($content) {
//Github cards
$content=preg_replace(
'/\[github repo=[\'"]([^\'"]+)[\'"]\]/i',
'<a href="https://github.com/$1"',
'<a href="https://github.com/$1">',
$content
);
}

View File

@ -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');

View File

@ -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;