-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
46 lines (30 loc) · 1.25 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 get_header(); ?>
<div class="container">
<div id="content" class="twelve columns clearfix">
<h1>Search Results</h1>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post() ?>
<?php if ( has_post_thumbnail()) : ?>
<div class="newsthumb">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<img src="<?php the_post_thumbnail_url('medium'); ?>" alt="<?php the_title(); ?>">
</a>
</div>
<?php endif; ?>
<h3 class="blog-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<?php the_excerpt('Read the rest of this entry »'); ?>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
</div>
<?php else : ?>
<!-- here's where we'll put a search form if there're no posts -->
<p>No results for that keyword - please search again:</p>
<div id="searchwrapper">
<?php get_search_form(); ?>
</div>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>