-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsearch.php
executable file
·46 lines (33 loc) · 1.26 KB
/
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
<?php
/**
* The template for displaying search results.
*
* @package Dorayaki
* @since Dorayaki 1.0
*/
get_header(); ?>
<div id="main-wrap">
<div id="site-content">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h2 class="page-title"><?php echo $wp_query->found_posts; ?> <?php printf( __( 'Search Results for ‘%s’', 'dorayaki' ), '<span>' . get_search_query() . '</span>' ); ?></h2>
</header><!--end .page-header -->
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; // end of the loop. ?>
<?php dorayaki_content_nav( 'nav-below' ); ?>
<?php else : ?>
<article id="post-0" class="page no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'dorayaki' ); ?></h1>
</header><!--end .entry-header -->
<div class="entry-content">
<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'dorayaki' ); ?></p>
</div><!-- end .entry-content -->
</article>
<?php endif; ?>
</div><!-- end #content -->
<?php get_sidebar(); ?>
</div><!-- end #main-wrap -->
<?php get_footer(); ?>