修复AJAX 引擎
This commit is contained in:
+4
-6
@@ -110,12 +110,10 @@ if (is_active_sidebar('search_top_fluid')) {
|
||||
}
|
||||
?>
|
||||
<?php elseif ($search_type === 'post' && $wp_query->have_posts()) : ?>
|
||||
<div class="posts-row mtn6">
|
||||
<?php
|
||||
$config = function_exists('aksrt_archive_get_render_config') ? aksrt_archive_get_render_config(['context' => 'search', 'highlight_query' => $search_query]) : ['context' => 'search', 'mode' => 'list'];
|
||||
aksrt_render_post_list(array_merge($config, ['wrapper_class' => '']), $wp_query);
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
$config = function_exists('aksrt_archive_get_render_config') ? aksrt_archive_get_render_config(['context' => 'search', 'highlight_query' => $search_query]) : ['context' => 'search', 'mode' => 'list'];
|
||||
aksrt_render_post_list(array_merge($config, ['wrapper_class' => 'mtn6']), $wp_query);
|
||||
?>
|
||||
<?php aksrt_render_pagination($wp_query, ['query_context' => 'search', 'render_config' => $config]); ?>
|
||||
<?php else : ?>
|
||||
<div class="aksrt-panel search-content"><div class="text-center muted-2-color padding-20"><?php esc_html_e('未找到相关内容', 'aksrt'); ?></div></div>
|
||||
|
||||
Reference in New Issue
Block a user