1 Star 0 Fork 3

李慧根/argon-theme

forked from spilgts/argon-theme 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
search.php 1.20 KB
Copy Edit Raw Blame History
solstice23 authored 2021-08-10 20:02 . add waterflow layout
<?php get_header(); ?>
<div class="page-information-card-container">
<div class="page-information-card card bg-gradient-secondary shadow-lg border-0">
<div class="card-body">
<h3 class="text-black mr-2 d-inline-block"> <?php echo get_search_query();?> </h3>
<p class="lead text-black mt-0 d-inline-block">
<?php _e('的搜索结果', 'argon');?>
</p>
<p class="text-black mt-3 mb-0 opacity-8">
<i class="fa fa-file-o mr-1"></i>
<?php global $wp_query; echo $wp_query -> found_posts; ?> <?php _e('个结果', 'argon');?>
</p>
</div>
</div>
</div>
<?php get_sidebar(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main article-list" role="main">
<?php if ( have_posts() ) : ?>
<?php
while ( have_posts() ) :
the_post();
if (get_post_type() == 'shuoshuo'){
get_template_part( 'template-parts/content-shuoshuo-preview' );
}else{
get_template_part( 'template-parts/content-preview', get_option('argon_article_list_layout', '1'));
}
endwhile;
?>
<?php
echo get_argon_formatted_paginate_links_for_all_platforms();
?>
<?php
else :
get_template_part( 'template-parts/content', 'none-search' );
endif;
?>
<?php get_footer(); ?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zoomLee/argon-theme.git
git@gitee.com:zoomLee/argon-theme.git
zoomLee
argon-theme
argon-theme
master

Search

0d507c66 1850385 C8b1a773 1850385