-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.php
53 lines (34 loc) · 1021 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
50
51
52
53
<?php
/*
* Omnibus Prime search template file: search.php
*
* @package Omnibus Prime
* @since 1.0
* @version 1.0
*/
get_header(); ?>
<div class="grid">
<main id="main__content" class="h-feed col-xs-12 col-md-8" role="main">
<h2><?php _e( 'Search results', 'omnibus-prime' ); ?></h2>
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
get_template_part( 'article' );
}
if ( paginate_links() ) {
get_template_part( 'article-pagination' );
}
} else {
?>
<div class="alert info" role="alert">
<?php _e( 'Sorry, no posts matched your criteria.', 'omnibus-prime' ); ?>
</div>
<button class="btn solid primary" onclick="document.getElementById('s').focus();" type="button">
<?php _e( 'Search again', 'omnibus-prime' ); ?>
</button>
<?php } ?>
</main>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>