1 | <?php get_header(); ?>
|
---|
2 |
|
---|
3 | <!-- BEGIN content -->
|
---|
4 | <div id="content"><div class="head"><div class="foot">
|
---|
5 |
|
---|
6 | <h2 class="atitle">Search Results for <strong><?php the_search_query(); ?></strong></h2>
|
---|
7 |
|
---|
8 | <?php
|
---|
9 | if (have_posts()) : $first = true;
|
---|
10 | while (have_posts()) : the_post();
|
---|
11 | $arc_year = get_the_time('Y');
|
---|
12 | $arc_month = get_the_time('m');
|
---|
13 | $arc_day = get_the_time('d');
|
---|
14 | ?>
|
---|
15 |
|
---|
16 | <!-- begin post -->
|
---|
17 | <div class="<?php if ($first) echo 'first '; ?>post">
|
---|
18 | <div class="l">
|
---|
19 | <a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a>
|
---|
20 | </div>
|
---|
21 | <div class="r">
|
---|
22 | <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
|
---|
23 | <p><?php echo dp_clean($post->post_content, 300); ?></p>
|
---|
24 | <p class="details"><a href="<?php echo get_day_link("$arc_year", "$arc_month", "$arc_day"); ?>"><?php the_time('m.j.Y') ?></a> | <?php the_category(', ') ?> | <?php the_author_posts_link(); ?></p>
|
---|
25 | <p class="comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
|
---|
26 | </div>
|
---|
27 | </div>
|
---|
28 | <!-- end post -->
|
---|
29 |
|
---|
30 | <?php $first = false; endwhile; else : ?>
|
---|
31 | <div class="notfound">
|
---|
32 | <h2>Not Found</h2>
|
---|
33 | <p>Sorry, but you are looking for something that is not here.</p>
|
---|
34 | </div>
|
---|
35 | <?php endif; ?>
|
---|
36 |
|
---|
37 | <?php include("bottom.php"); ?>
|
---|
38 |
|
---|
39 | <!-- begin post navigation -->
|
---|
40 | <div class="postnav">
|
---|
41 | <?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>
|
---|
42 | </div>
|
---|
43 | <!-- end post navigation -->
|
---|
44 |
|
---|
45 | <div class="break"></div>
|
---|
46 |
|
---|
47 | </div></div></div>
|
---|
48 | <!-- END content -->
|
---|
49 |
|
---|
50 | <?php get_sidebar(); get_footer(); ?>
|
---|