forked from olospo/biocentaur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
executable file
·40 lines (36 loc) · 1.27 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
<?php /* Search */
get_header(); ?>
<section class="post no_hero">
<div class="container">
<div class="ten columns offset-by-one">
<div class="content">
<h1><?php printf( __( 'Search Results for: %s', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
</div>
</div>
</div>
<div class="container">
<div class="ten columns offset-by-one">
<div class="content">
<?php if ( have_posts() ) : // Show search results ?>
<?php while ( have_posts() ) : the_post(); ?>
<article class="search_item standard twelve columns">
<div class="item_content">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<div class="content">
<?php the_excerpt(); ?>
</div>
</div>
</article>
<?php endwhile; ?>
</div>
<?php numeric_posts_nav(); ?>
<?php else : // No search results found ?>
<article class="search_item">
<h2>No Results Found</h1>
<p>Sorry, but nothing matched your search criteria. Please try again with some different keywords and/or search criteria.</p>
</article>
<?php endif; wp_reset_query(); ?>
</div>
</div>
</section>
<?php get_footer(); ?>