-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsearch.php
43 lines (31 loc) · 871 Bytes
/
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
39
40
41
42
43
<?php
/**
* The template for displaying search results pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
*
* @package wp-indigo
*/
get_header();
?>
<main id="primary" class="c-main <?php wp_indigo_get_fade_in_animation(); ?> site-main">
<header class="c-main__header">
<h1 class="c-main__page-title"><?php esc_html_e( 'Search Result', 'wp-indigo' ); ?></h1>
</header>
<section class="c-main__content c-main__content--search">
<?php
if ( have_posts() ) :
/* Start the Loop */
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content' );
endwhile;
wp_indigo_get_default_pagination();
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>
</section>
</main><!-- #main -->
<?php
get_footer();