forked from Codeinwp/FlatX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
25 lines (22 loc) · 807 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
<?php get_header(); ?>
<?php flat_hook_search_before(); ?>
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'flat' ), get_search_query() ); ?></h1>
<div id="content" class="site-content" role="main">
<?php flat_hook_search_top(); ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php the_posts_pagination(
array(
'prev_text' => __( '<i class="fa fa-chevron-left"></i>', 'flat' ),
'next_text' => __( '<i class="fa fa-chevron-right"></i>', 'flat' ),
)
); ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
<?php flat_hook_search_bottom(); ?>
</div>
<?php flat_hook_search_after(); ?>
<?php get_footer(); ?>