Merge pull request #126 from mashirozx/dev

fix search
This commit is contained in:
Mashiro 2019-11-10 11:07:21 +08:00 committed by GitHub
commit 6f6cf39b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -308,7 +308,7 @@ function the_headPattern(){
$t .= ' <span class="cat-des">'.$des.'</span>'; $t .= ' <span class="cat-des">'.$des.'</span>';
}elseif(is_search()){ }elseif(is_search()){
$full_image_url = get_random_bg_url(); $full_image_url = get_random_bg_url();
$t .= '<h1 class="entry-title search-title"> '.printf( __( "Search results for \" %s \"","sakura" ), get_search_query()) ./*关于“ '.get_search_query().' ”的搜索结果*/'</h1>'; $t .= '<h1 class="entry-title search-title"> '.sprintf( __( "Search results for \" %s \"","sakura" ), get_search_query()) ./*关于“ '.get_search_query().' ”的搜索结果*/'</h1>';
} }
if(akina_option('patternimg')) $full_image_url = false; if(akina_option('patternimg')) $full_image_url = false;
if(!is_home() && $full_image_url) : ?> if(!is_home() && $full_image_url) : ?>
@ -366,7 +366,7 @@ function the_video_headPattern_hls(){
}elseif(is_search()){ }elseif(is_search()){
$full_image_url = get_random_bg_url(); $full_image_url = get_random_bg_url();
$thubm_image_url = 'https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.1/img/svg/loader/orange.progress-bar-stripe-loader.svg'; $thubm_image_url = 'https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.1/img/svg/loader/orange.progress-bar-stripe-loader.svg';
$t .= '<h1 class="entry-title search-title"> '.printf( __( "Search results for \" %s \"","sakura" ), get_search_query()) ./*关于“ '.get_search_query().' ”的搜索结果*/'</h1>'; $t .= '<h1 class="entry-title search-title"> '.sprintf( __( "Search results for \" %s \"","sakura" ), get_search_query()) ./*关于“ '.get_search_query().' ”的搜索结果*/'</h1>';
} }
$thubm_image_url = $thubm_image_url . "#lazyload-blur"; $thubm_image_url = $thubm_image_url . "#lazyload-blur";
$thubm_image_url = str_replace(akina_option('qiniu_cdn'),'https://cdn.2heng.xin/',$thubm_image_url); $thubm_image_url = str_replace(akina_option('qiniu_cdn'),'https://cdn.2heng.xin/',$thubm_image_url);
@ -434,7 +434,7 @@ function the_video_headPattern_normal(){
}elseif(is_search()){ }elseif(is_search()){
$full_image_url = get_random_bg_url(); $full_image_url = get_random_bg_url();
$thubm_image_url = 'https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.1/img/svg/loader/orange.progress-bar-stripe-loader.svg'; $thubm_image_url = 'https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.1/img/svg/loader/orange.progress-bar-stripe-loader.svg';
$t .= '<h1 class="entry-title search-title"> '.printf( __( "Search results for \" %s \"","sakura" ), get_search_query()) ./*关于“ '.get_search_query().' ”的搜索结果*/'</h1>'; $t .= '<h1 class="entry-title search-title"> '.sprintf( __( "Search results for \" %s \"","sakura" ), get_search_query()) ./*关于“ '.get_search_query().' ”的搜索结果*/'</h1>';
} }
$thubm_image_url = $thubm_image_url . "#lazyload-blur"; $thubm_image_url = $thubm_image_url . "#lazyload-blur";
$thubm_image_url = str_replace(akina_option('qiniu_cdn'),'https://cdn.2heng.xin/',$thubm_image_url); $thubm_image_url = str_replace(akina_option('qiniu_cdn'),'https://cdn.2heng.xin/',$thubm_image_url);