-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.php
37 lines (20 loc) · 881 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
<?php get_header(); ?>
<main id="main" role="main" class="main<?php if ( is_active_sidebar( 'rightside' ) ): ?> hasside<?php endif; ?>">
<h1 class="title search-title"><?php printf( __( 'Search results for: %s', 'minart' ), get_search_query() ); ?></h1>
<?php if (have_posts()) : ?>
<ul class="cf" role="list" aria-label="<?php _e( 'List of posts', 'minart' ); ?>">
<?php while (have_posts()) : the_post();
get_template_part( 'content', get_post_format() );
endwhile;
?>
</ul>
<nav id="nav-main" class="navs" role="navigation" aria-label="<?php _e( 'Posts navigation', 'minart' ); ?>">
<p><?php posts_nav_link( ' ', __('Newer', 'minart'), __( 'Older', 'minart') ); ?></p>
</nav>
<?php
else: ?>
<p><?php _e('Sorry, no posts found.', 'minart'); ?></p>
<?php endif; ?>
</main> <!-- end main -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>