forked from solstice23/argon-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
38 lines (34 loc) · 1.03 KB
/
search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?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" role="main">
<?php if ( have_posts() ) : ?>
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', get_post_format() );
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(); ?>