forked from EddieRingle/wicketpixie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
73 lines (57 loc) · 2.07 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
* WicketPixie v2.0
* (c) 2006-2009 Eddie Ringle,
* Chris J. Davis,
* Dave Bates
* Provided by Chris Pirillo
*
* Licensed under the New BSD License.
*/
get_header(); ?>
<!-- content -->
<div id="content">
<?php if (have_posts()) : ?>
<?php $hit_count = $wp_query->found_posts; ?>
<p style="margin:0 20px 1.8em;">Your search for "<span class="hilite"><?php the_search_query(); ?></span>" returned <?php echo $hit_count . ' results'; ?>.</p>
<?php $adsense_counter = 0; ?>
<?php while (have_posts()) : the_post(); ?>
<!-- post -->
<div class="post">
<h2 style="margin-bottom:0;"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="post-author">
<p><strong><?php the_time('l, F jS, Y') ?></strong> at <?php the_time('g:ia') ?></p>
</div>
<div class="clearer"></div>
<div class="KonaBody">
<?php the_excerpt(); ?>
</div>
</div>
<!-- /post -->
<?php if ($adsense_counter == 0 && is_enabled_adsense() == true) { ?>
<div align="center" style="margin: 15px 0 30px 0">
<?php $adsense->wp_adsense('blog_post_bottom'); ?>
</div>
<?php } else {
$adsense_counter++;
}?>
<?php endwhile; ?>
<div class="navigation">
<div class="left"><?php next_posts_link('<span> </span>Older Posts'); ?> </div>
<div class="right"><?php previous_posts_link('<span> </span>Newer Posts') ?></div>
</div>
<?php else : ?>
<!-- post -->
<div class="post">
<h1>Search Results</h1>
<?php $hit_count = $wp_query->found_posts; ?>
<p>Your search for "<span class="hilite"><?php the_search_query(); ?></span>" returned no results.</p>
</div>
<!-- /post -->
<?php endif; ?>
</div>
<!-- content -->
<!-- sidebar -->
<?php get_sidebar(); ?>
<!-- sidebar -->
<?php get_footer(); ?>