-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.php
57 lines (36 loc) · 1.43 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
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
* The template for displaying Search Results pages.
*
* @package MIT_Libraries_Child
* @since 2.2.2
*/
get_header( 'child' ); ?>
<?php get_template_part( 'inc/breadcrumbs', 'child' ); ?>
<div id="stage" class="inner group" role="main">
<?php get_template_part( 'inc/postHead' ); ?>
<div id="content" class="content has-sidebar">
<div class="content-main main-content">
<?php if ( have_posts() ) : ?>
<header class="search-header">
<h2 class="page-title search-title"><?php printf( 'Search Results for: %s', '<span>' . get_search_query() . '</span>' ); ?></h2>
</header>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'inc/content', 'snippet' ); ?>
<?php endwhile; ?>
<?php twentytwelve_content_nav( 'nav-below' ); ?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<h2 class="entry-title search-title"><?php esc_html_e( 'Nothing Found', 'twentytwelve' ); ?></h2>
<div class="entry-content">
<p><?php esc_html_e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentytwelve' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php endif; ?>
</div><!-- .mainContent -->
<?php get_sidebar(); ?>
</div><!-- .allContent -->
</div><!-- #stage -->
<?php get_footer(); ?>