-
Notifications
You must be signed in to change notification settings - Fork 3
/
search.php
49 lines (33 loc) · 1006 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
44
45
46
47
48
49
<?php
/**
* The template for displaying search results pages.
*
* @package WordPress
* @subpackage Riiskit
* @since Riiskit 1.0
*/
get_header(); ?>
<section id="primary" class="primary">
<main class="content" role="main">
<?php if ( have_posts() ) : ?>
<header class="content__header">
<h1 class="content__title">
<?php printf( __( 'Search Results for: %s', 'riiskit' ), get_search_query() ); ?>
</h1>
</header> <!-- .content__header -->
<?php
while ( have_posts() ) : the_post();
get_template_part( 'content', 'search' );
endwhile;
the_posts_pagination( array(
'prev_text' => __( 'Previous page', 'riiskit' ),
'next_text' => __( 'Next page', 'riiskit' ),
'before_page_number' => '<span class="meta-nav screenreader">' . __( 'Page', 'riiskit' ) . ' </span>',
) );
else :
get_template_part( 'content', 'none' );
endif;
?>
</main> <!-- .content -->
</section> <!-- .primary -->
<?php get_footer(); ?>