mirror of
https://github.com/mashirozx/sakura.git
synced 2024-11-22 14:58:14 +08:00
fix
This commit is contained in:
parent
236d263a26
commit
79ea6a20e3
@ -1592,7 +1592,7 @@ function html_tag_parser($content) {
|
|||||||
//Github cards
|
//Github cards
|
||||||
$content=preg_replace(
|
$content=preg_replace(
|
||||||
'/\[github repo=[\'"]([^\'"]+)[\'"]\]/i',
|
'/\[github repo=[\'"]([^\'"]+)[\'"]\]/i',
|
||||||
'<a href="https://github.com/$1"',
|
'<a href="https://github.com/$1">',
|
||||||
$content
|
$content
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1067,14 +1067,14 @@ function optionsframework_options() {
|
|||||||
|
|
||||||
$options[] = array(
|
$options[] = array(
|
||||||
'name' => __('Enable live search', 'sakura'),/*启用实时搜索*/
|
'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',
|
'id' => 'live_search',
|
||||||
'std' => '0',
|
'std' => '0',
|
||||||
'type' => 'checkbox');
|
'type' => 'checkbox');
|
||||||
|
|
||||||
$options[] = array(
|
$options[] = array(
|
||||||
'name' => __('Include comments in live search', 'sakura'),/*实时搜索包含评论*/
|
'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',
|
'id' => 'live_search_comment',
|
||||||
'std' => '0',
|
'std' => '0',
|
||||||
'type' => 'checkbox');
|
'type' => 'checkbox');
|
||||||
|
@ -8500,6 +8500,12 @@ h1[id*=toc-head]::before,h2[id*=toc-head]::before,h3[id*=toc-head]::before,h4[id
|
|||||||
visibility:hidden
|
visibility:hidden
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width:860px) {
|
||||||
|
.widget-area{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.widget-area {
|
.widget-area {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 100px;
|
top: 100px;
|
||||||
|
Loading…
Reference in New Issue
Block a user